This is the codeAbility Sharing Platform! Learn more about the codeAbility Sharing Platform.

Skip to content
Snippets Groups Projects
file-info.model.ts 812 B
Newer Older
Lukas Kaltenbrunner's avatar
Lukas Kaltenbrunner committed
import {Moment} from "moment";

export interface IFileInfo {
  extension: string;
  content_type: string;
  created: Moment;
  last_modified: Moment;
  last_accessed: Moment;
  indexing_date: Moment;
  filesize: bigint;
  filename: string;
  url: string;
Lukas Kaltenbrunner's avatar
Lukas Kaltenbrunner committed
  file_format: string;
Lukas Kaltenbrunner's avatar
Lukas Kaltenbrunner committed
}

export class FileInfo implements IFileInfo {
  public constructor(public content_type: string,
                     public created: Moment,
                     public extension: string,
                     public filename: string,
                     public filesize: bigint,
                     public indexing_date: Moment,
                     public last_accessed: Moment,
                     public last_modified: Moment,
Lukas Kaltenbrunner's avatar
Lukas Kaltenbrunner committed
                     public url: string,
                     public file_format: string) {