@@ -117,6 +117,7 @@ interface BaseMessage {
117
117
channelUrl : string ;
118
118
messageId : number ;
119
119
createdAt : number ;
120
+ updatedAt : number ;
120
121
channelType : string ;
121
122
messageType : string ;
122
123
customType : string ;
@@ -181,18 +182,32 @@ interface BaseChannel {
181
182
createMessageListQuery ( ) : MessageListQuery ;
182
183
183
184
/* 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 ;
196
211
197
212
/* MetaCounter */
198
213
createMetaCounters ( metaCounterMap : Object , callback : Function ) : void ;
@@ -315,7 +330,7 @@ interface GroupChannelListQuery {
315
330
316
331
interface GroupChannel extends BaseChannel {
317
332
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 ;
319
334
createChannelWithUserIds ( userIds : [ string ] , isDistinct : boolean , name : string , coverUrl : string , data : any , callback : Function ) : void ;
320
335
createChannelWithUserIds ( userIds : [ string ] , isDistinct : boolean , name : string , coverUrl : string , data : any , customType : string , callback : Function ) : void ;
321
336
createChannelWithUserIds ( userIds : [ string ] , isDistinct : boolean , name : string , coverImageFile : Object , data : any , callback : Function ) : void ;
0 commit comments