export interface IFileListRequest { files : string [ ] ; } export class FileListRequest { public static signature : string = 'FileListRequest' ; public signature : string = FileListRequest . signature ; public files : string [ ] ; constructor ( params ) { if ( typeof params !== 'object' || params === null ) { throw new Error ( `Incorrect parameters for FileListRequest message` ) ; } if ( ! ( params . files instanceof Array ) ) { throw new Error ( `Field "files" should of type <string[]>` ) ; } params . files . forEach ( ( file ) => { if ( typeof file !== 'string' || file . trim ( ) === '' ) { throw new Error ( `Elements of files should be of type <string>` ) ; } } ) ; this . files = params . files ; } }