@@ -140,6 +140,11 @@ interface FileMessage extends BaseMessage {
140140 data : string ;
141141}
142142
143+ interface ThumbnailSize {
144+ maxWidth : number ;
145+ maxHeight : number ;
146+ }
147+
143148interface MessageListQuery {
144149 next ( messageTimestamp : number , limit : number , reverse : boolean , callback : Function ) : void ;
145150 prev ( messageTimestamp : number , limit : number , reverse : boolean , callback : Function ) : void ;
@@ -174,8 +179,10 @@ interface BaseChannel {
174179 sendFileMessage ( file : any , callback : Function ) : void ;
175180 sendFileMessage ( file : any , data : string , callback : Function ) : void ;
176181 sendFileMessage ( file : any , data : string , customType : string , callback : Function ) : void ;
182+ sendFileMessage ( file : any , data : string , customType : string , thumbnailSizes : [ ThumbnailSize ] , callback : Function ) : void ;
177183 sendFileMessage ( file : any , name : string , type : string , size : number , data : string , callback : Function ) : void ;
178184 sendFileMessage ( file : any , name : string , type : string , size : number , data : string , customType : string , callback : Function ) : void ;
185+ sendFileMessage ( file : any , name : string , type : string , size : number , data : string , customType : string , thumbnailSizes : [ ThumbnailSize ] , callback : Function ) : void ;
179186
180187 sendUserMessage ( message : string , callback : Function ) : void ;
181188 sendUserMessage ( message : string , data : string , callback : Function ) : void ;
0 commit comments