@@ -56,6 +56,10 @@ interface SendBird_Instance {
56
56
createUserListQuery ( ) : UserListQuery ;
57
57
createBlockedUserListQuery ( ) : UserListQuery ;
58
58
59
+ // Background/Foreground Appstate for push notifications in React Native / Ionic
60
+ setBackgroundState ( ) : void ;
61
+ setForegroundState ( ) : void ;
62
+
59
63
currentUser : User ;
60
64
GroupChannel : GroupChannel ;
61
65
OpenChannel : OpenChannel ;
@@ -105,6 +109,7 @@ interface BaseMessage {
105
109
createdAt : number ;
106
110
channelType : string ;
107
111
messageType : string ;
112
+ customType : string ;
108
113
}
109
114
110
115
interface AdminMessage extends BaseMessage {
@@ -154,6 +159,7 @@ interface BaseChannel {
154
159
coverUrl : string ;
155
160
createdAt : number ;
156
161
data : string ;
162
+ customType : string ;
157
163
158
164
createPreviousMessageListQuery ( ) : PreviousMessageListQuery ;
159
165
createMessageListQuery ( ) : MessageListQuery ;
@@ -189,6 +195,15 @@ interface BaseChannel {
189
195
deleteAllMetaData ( callback : Function ) : void ;
190
196
191
197
deleteMessage ( message : FileMessage | UserMessage , callback : Function ) : void ;
198
+
199
+ /* GetMessages */
200
+ getNextMessagesByTimestamp ( ts : number , isInclusive : boolean , nextResultSize : number , shouldReverse :boolean , messageType : string , customType : string , callback : Function ) : void ;
201
+ getPreviousMessagesByTimestamp ( ts : number , isInclusive : boolean , prevtResultSize : number , shouldReverse :boolean , messageType : string , customType : string , callback : Function ) : void ;
202
+ getPreviousAndNextMessagesByTimestamp ( ts : number , prevtResultSize : number , nextResultSize : number , shouldReverse :boolean , messageType : string , customType : string , callback : Function ) : void ;
203
+ getNextMessagesByID ( messageId : number , isInclusive : boolean , nextResultSize : number , shouldReverse :boolean , messageType : string , customType : string , callback : Function ) : void ;
204
+ getPreviousMessagesByID ( messageId : number , isInclusive : boolean , prevtResultSize : number , shouldReverse :boolean , messageType : string , customType : string , callback : Function ) : void ;
205
+ getPreviousAndNextMessagesByID ( messageId : number , prevtResultSize : number , nextResultSize : number , shouldReverse :boolean , messageType : string , customType : string , callback : Function ) : void ;
206
+
192
207
}
193
208
194
209
interface ChannelHandlerFactory {
@@ -197,7 +212,7 @@ interface ChannelHandlerFactory {
197
212
198
213
interface ChannelHandler_Instance {
199
214
onMessageReceived ( channel : GroupChannel | OpenChannel , message : AdminMessage | UserMessage ) : void ;
200
- onMessageDeleted ( channel : GroupChannel , messageId : string ) : void ;
215
+ onMessageDeleted ( channel : GroupChannel , messageId : number ) : void ;
201
216
onReadReceiptUpdated ( channel : GroupChannel ) : void ;
202
217
onTypingStatusUpdated ( channel : GroupChannel ) : void ;
203
218
onTypingStatusUpdated ( channel : GroupChannel ) : void ;
@@ -224,6 +239,7 @@ interface OpenChannel extends BaseChannel {
224
239
createChannel ( callback : Function ) : void ;
225
240
createChannel ( name : string , coverUrl : string , data : any , callback : Function ) : void ;
226
241
createChannel ( name : string , coverUrl : string , data : any , operatorUserIds : any , callback : Function ) : void ;
242
+ createChannel ( name : string , coverUrl : string , data : any , operatorUserIds : any , customType : Function , callback : Function ) : void ;
227
243
228
244
enter ( callback : Function ) : void ;
229
245
exit ( callback : Function ) : void ;
@@ -283,7 +299,9 @@ interface GroupChannel extends BaseChannel {
283
299
createChannel ( users : [ User ] , isDistinct : boolean , callback : Function ) : void ;
284
300
createChannel ( users : [ User ] , isDistinct : boolean , callback : Function ) : void ;
285
301
createChannelWithUserIds ( userIds : [ string ] , isDistinct : boolean , name : string , coverUrl : string , data : any , callback : Function ) : void ;
302
+ createChannelWithUserIds ( userIds : [ string ] , isDistinct : boolean , name : string , coverUrl : string , data : any , customType : string , callback : Function ) : void ;
286
303
createChannelWithUserIds ( userIds : [ string ] , isDistinct : boolean , name : string , coverImageFile : Object , data : any , callback : Function ) : void ;
304
+ createChannelWithUserIds ( userIds : [ string ] , isDistinct : boolean , name : string , coverImageFile : Object , data : any , customType : string , callback : Function ) : void ;
287
305
288
306
getChannel ( channelUrl : string , callback : Function ) : void ;
289
307
0 commit comments