@@ -117,6 +117,7 @@ interface BaseMessage {
117117 channelUrl : string ;
118118 messageId : number ;
119119 createdAt : number ;
120+ updatedAt : number ;
120121 channelType : string ;
121122 messageType : string ;
122123 customType : string ;
@@ -181,18 +182,32 @@ interface BaseChannel {
181182 createMessageListQuery ( ) : MessageListQuery ;
182183
183184 /* SendMessage */
184- sendFileMessage ( file : any , callback : Function ) : void ;
185- sendFileMessage ( file : any , data : string , callback : Function ) : void ;
186- sendFileMessage ( file : any , data : string , customType : string , callback : Function ) : void ;
187- sendFileMessage ( file : any , data : string , customType : string , thumbnailSizes : [ ThumbnailSize ] , callback : Function ) : void ;
188- sendFileMessage ( file : any , name : string , type : string , size : number , data : string , callback : Function ) : void ;
189- sendFileMessage ( file : any , name : string , type : string , size : number , data : string , customType : string , callback : Function ) : void ;
190- sendFileMessage ( file : any , name : string , type : string , size : number , data : string , customType : string , thumbnailSizes : [ ThumbnailSize ] , callback : Function ) : void ;
191-
192- sendUserMessage ( message : string , callback : Function ) : void ;
193- sendUserMessage ( message : string , data : string , callback : Function ) : void ;
194- sendUserMessage ( message : string , data : string , customType : string , callback : Function ) : void ;
195- sendUserMessage ( message : string , data : string , customType : string , targetLanguages : [ string ] , callback : Function ) : void ;
185+ sendFileMessage ( file : any , callback : Function ) : FileMessage ;
186+ sendFileMessage ( file : any , progressHandler : Function , callback : Function ) : FileMessage ;
187+ sendFileMessage ( file : any , data : string , callback : Function ) : FileMessage ;
188+ sendFileMessage ( file : any , data : string , progressHandler : Function , callback : Function ) : FileMessage ;
189+ sendFileMessage ( file : any , data : string , customType : string , callback : Function ) : FileMessage ;
190+ sendFileMessage ( file : any , data : string , customType : string , progressHandler : Function , callback : Function ) : FileMessage ;
191+ sendFileMessage ( file : any , data : string , customType : string , thumbnailSizes : [ ThumbnailSize ] , callback : Function ) : FileMessage ;
192+ sendFileMessage ( file : any , data : string , customType : string , thumbnailSizes : [ ThumbnailSize ] , progressHandler : Function , callback : Function ) : FileMessage ;
193+ sendFileMessage ( file : any , name : string , type : string , size : number , data : string , callback : Function ) : FileMessage ;
194+ sendFileMessage ( file : any , name : string , type : string , size : number , data : string , progressHandler : Function , callback : Function ) : FileMessage ;
195+ sendFileMessage ( file : any , name : string , type : string , size : number , data : string , customType : string , callback : Function ) : FileMessage ;
196+ sendFileMessage ( file : any , name : string , type : string , size : number , data : string , customType : string , progressHandler : Function , callback : Function ) : FileMessage ;
197+ sendFileMessage ( file : any , name : string , type : string , size : number , data : string , customType : string , thumbnailSizes : [ ThumbnailSize ] , callback : Function ) : FileMessage ;
198+ sendFileMessage ( file : any , name : string , type : string , size : number , data : string , customType : string , thumbnailSizes : [ ThumbnailSize ] , progressHandler : Function , callback : Function ) : FileMessage ;
199+
200+ sendUserMessage ( message : string , callback : Function ) : UserMessage ;
201+ sendUserMessage ( message : string , data : string , callback : Function ) : UserMessage ;
202+ sendUserMessage ( message : string , data : string , customType : string , callback : Function ) : UserMessage ;
203+ sendUserMessage ( message : string , data : string , customType : string , targetLanguages : [ string ] , callback : Function ) : UserMessage ;
204+
205+ /* UpdateMessage */
206+ updateUserMessage ( messageId : number , message : string , data : string , customType : string , callback : Function ) : void ;
207+ updateFileMessage ( messageId : number , data : string , customType : string , callback : Function ) : void ;
208+
209+ /* Cancel File Upload */
210+ cancelUploadingFileMessage ( messageReqId : string , callback : Function ) : void ;
196211
197212 /* MetaCounter */
198213 createMetaCounters ( metaCounterMap : Object , callback : Function ) : void ;
@@ -315,7 +330,7 @@ interface GroupChannelListQuery {
315330
316331interface GroupChannel extends BaseChannel {
317332 createChannel ( users : [ User ] , isDistinct : boolean , callback : Function ) : void ;
318- createChannel ( users : [ User ] , isDistinct : boolean , callback : Function ) : void ;
333+ createChannel ( users : [ User ] , isDistinct : boolean , name : string , coverUrl : string , data : any , callback : Function ) : void ;
319334 createChannelWithUserIds ( userIds : [ string ] , isDistinct : boolean , name : string , coverUrl : string , data : any , callback : Function ) : void ;
320335 createChannelWithUserIds ( userIds : [ string ] , isDistinct : boolean , name : string , coverUrl : string , data : any , customType : string , callback : Function ) : void ;
321336 createChannelWithUserIds ( userIds : [ string ] , isDistinct : boolean , name : string , coverImageFile : Object , data : any , callback : Function ) : void ;
0 commit comments