diff --git a/README.md b/README.md index 33e0743c8..c3a340cb7 100644 --- a/README.md +++ b/README.md @@ -58,9 +58,9 @@ var QB2 = new QuickBlox(); # Browsers support -| IE | Firefox | Chrome | Safari | Opera | Android Browser | Blackberry Browser | Opera Mobile | Chrome for Android | Firefox for Android | -|:----:|:-------:|:------:|:------:|:-----:|:---------------:|:------------------:|:------------:|:------------------:|:------------------------:| -| 10+ | 4+ | 13+ | 6+ | 12+ | 4.4+ | 10+ | 12+ | 35+ | 30+ | +| IE | Firefox | Chrome | Safari | Opera | Node.js | +|:----:|:-------:|:------:|:------:|:-----:|:-------:| +| 10+ | 30+ | 30+ | 7.1+ | 23+ | 4+ | # Documentation diff --git a/docs/QB.chat.dialog.html b/docs/QB.chat.dialog.html new file mode 100644 index 000000000..349b9f2d5 --- /dev/null +++ b/docs/QB.chat.dialog.html @@ -0,0 +1,1055 @@ + + + + + Namespace: dialog + + + + + + + + + + + + + + + + + +
+ + +
+

Namespace: dialog

+ + + + +
+ +
+

+ QB.chat. + + dialog +

+ +
+ +
+
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+ + + + + + + + + + + + + + +

Methods

+ +
+ +
+
+

+ + staticQB.chat.dialog.create(params, callback) +

+ + +
+ modules/qbChat.js, line 2021 +
+ +
+ + +
+
+ + +
+ Create new dialog. More info. +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
params + + +Object + + + + + + Object of parameters.
callback + + +createDialogCallback + + + + + + The callback function.
+ + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
+ + + +
+
+

+ + staticQB.chat.dialog.delete(id, params_or_callback, callback) +

+ + +
+ modules/qbChat.js, line 2073 +
+ +
+ + +
+
+ + +
+ Delete a dialog or dialogs. More info. +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
id + + +Array + + + + + + The dialog IDs array.
params_or_callback + + +Object +| + +function + + + + + + Object of parameters or callback function.
callback + + +deleteDialogCallback + + + + + + The callback function.
+ + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
+ + + +
+
+

+ + staticQB.chat.dialog.list(params, callback) +

+ + +
+ modules/qbChat.js, line 1994 +
+ +
+ + +
+
+ + +
+ Retrieve list of dialogs. More info. +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
params + + +Object + + + + + + Some filters to get only chat dialogs you need.
callback + + +listDialogCallback + + + + + + The callback function.
+ + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
+ + + +
+
+

+ + staticQB.chat.dialog.update(id, params, callback) +

+ + +
+ modules/qbChat.js, line 2049 +
+ +
+ + +
+
+ + +
+ Update group dialog. More info. +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
id + + +String + + + + + + The dialog ID.
params + + +Object + + + + + + Object of parameters.
callback + + +updateDialogCallback + + + + + + The callback function.
+ + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
+ +
+ + + + + +
+ +
+ + + + + + + + +
+
+ + + + \ No newline at end of file diff --git a/docs/QB.chat.helpers.html b/docs/QB.chat.helpers.html new file mode 100644 index 000000000..eefcc7df6 --- /dev/null +++ b/docs/QB.chat.helpers.html @@ -0,0 +1,2246 @@ + + + + + Namespace: helpers + + + + + + + + + + + + + + + + + +
+ + +
+

Namespace: helpers

+ + + + +
+ +
+

+ QB.chat. + + helpers +

+ +
+ +
+
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+ + + + + + + + + + + + +

Members

+ +
+ +
+
+

staticQB.chat.helpers.getUniqueId

+
+ + +
+
+ +
+ Get unique id. +
+ + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ +
+ + + +

Methods

+ +
+ +
+
+

+ + staticQB.chat.helpers.getBsonObjectId(){String} +

+ + +
+ modules/qbChat.js, line 2391 +
+ +
+ + +
+
+ + +
+ Get the room jid from dialog id. +
+ + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + +
Returns:
+ + + + + + + + + + + + + + + + + + + + +
TypeDescription
+ + String + + + BsonObjectId - The bson object id.
+ + + + +
+ + + +
+
+

+ + staticQB.chat.helpers.getDialogIdFromNode(jid){String} +

+ + +
+ modules/qbChat.js, line 2348 +
+ +
+ + +
+
+ + +
+ Get the dialog id from jid. +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
jid + + +String + + + + + + The dialog jid.
+ + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + +
Returns:
+ + + + + + + + + + + + + + + + + + + + +
TypeDescription
+ + String + + + dialogId - The dialog id.
+ + + + +
+ + + +
+
+

+ + staticQB.chat.helpers.getIdFromNode(jid){Number} +

+ + +
+ modules/qbChat.js, line 2337 +
+ +
+ + +
+
+ + +
+ Get the User id from jid. +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
jid + + +String + + + + + + The user jid.
+ + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + +
Returns:
+ + + + + + + + + + + + + + + + + + + + +
TypeDescription
+ + Number + + + id - The user id.
+ + + + +
+ + + +
+
+

+ + staticQB.chat.helpers.getIdFromResource(jid){String} +

+ + +
+ modules/qbChat.js, line 2379 +
+ +
+ + +
+
+ + +
+ Get the room jid from the dialog id. +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
jid + + +String + + + + + + resourse jid.
+ + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + +
Returns:
+ + + + + + + + + + + + + + + + + + + + +
TypeDescription
+ + String + + + jid - The room jid.
+ + + + +
+ + + +
+
+

+ + staticQB.chat.helpers.getRecipientId(occupantsIds, UserId){Number} +

+ + +
+ modules/qbChat.js, line 2297 +
+ +
+ + +
+
+ + +
+ Get the recipint id. +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
occupantsIds + + +Array + + + + + + Array of user ids.
UserId + + +Number + + + + + + Jid or user id.
+ + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + +
Returns:
+ + + + + + + + + + + + + + + + + + + + +
TypeDescription
+ + Number + + + recipient - recipient id.
+ + + + +
+ + + +
+
+

+ + staticQB.chat.helpers.getRoomJid(jid){String} +

+ + +
+ modules/qbChat.js, line 2369 +
+ +
+ + +
+
+ + +
+ Get the room jid from dialog id. +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
jid + + +String + + + + + + The dialog jid.
+ + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + +
Returns:
+ + + + + + + + + + + + + + + + + + + + +
TypeDescription
+ + String + + + jid - The room jid.
+ + + + +
+ + + +
+
+

+ + staticQB.chat.helpers.getRoomJidFromDialogId(dialogId){String} +

+ + +
+ modules/qbChat.js, line 2359 +
+ +
+ + +
+
+ + +
+ Get the room jid from dialog id. +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
dialogId + + +String + + + + + + The dialog id.
+ + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + +
Returns:
+ + + + + + + + + + + + + + + + + + + + +
TypeDescription
+ + String + + + jid - The dialog jid.
+ + + + +
+ + + +
+
+

+ + staticQB.chat.helpers.getUserIdFromRoomJid(jid){String} +

+ + +
+ modules/qbChat.js, line 2401 +
+ +
+ + +
+
+ + +
+ Get the user id from the room jid. +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
jid + + +String + + + + + + resourse jid.
+ + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + +
Returns:
+ + + + + + + + + + + + + + + + + + + + +
TypeDescription
+ + String + + + userId - The user id.
+ + + + +
+ + + +
+
+

+ + staticQB.chat.helpers.getUserJid(UserId, appId){String} +

+ + +
+ modules/qbChat.js, line 2314 +
+ +
+ + +
+
+ + +
+ Get the User jid id. +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
UserId + + +Number + + + + + + The user id.
appId + + +Number + + + + + + The application id.
+ + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + +
Returns:
+ + + + + + + + + + + + + + + + + + + + +
TypeDescription
+ + String + + + jid - The user jid.
+ + + + +
+ + + +
+
+

+ + staticQB.chat.helpers.getUserNickWithMucDomain(UserId){String} +

+ + +
+ modules/qbChat.js, line 2327 +
+ +
+ + +
+
+ + +
+ Get the User nick with the muc domain. +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
UserId + + +Number + + + + + + The user id.
+ + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + +
Returns:
+ + + + + + + + + + + + + + + + + + + + +
TypeDescription
+ + String + + + mucDomainWithNick - The mac domain with he nick.
+ + + + +
+ + + +
+
+

+ + staticQB.chat.helpers.jidOrUserId(jid_or_user_id){String} +

+ + +
+ modules/qbChat.js, line 2260 +
+ +
+ + +
+
+ + +
+ Get unique id. +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
jid_or_user_id + + +String +| + +Number + + + + + + Jid or user id.
+ + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + +
Returns:
+ + + + + + + + + + + + + + + + + + + + +
TypeDescription
+ + String + + + - jid.
+ + + + +
+ + + +
+
+

+ + staticQB.chat.helpers.typeChat(jid_or_user_id){String} +

+ + +
+ modules/qbChat.js, line 2278 +
+ +
+ + +
+
+ + +
+ Get the chat type. +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
jid_or_user_id + + +String +| + +Number + + + + + + Jid or user id.
+ + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + +
Returns:
+ + + + + + + + + + + + + + + + + + + + +
TypeDescription
+ + String + + + - jid.
+ + + + +
+ +
+ + + + + +
+ +
+ + + + + + + + +
+
+ + + + \ No newline at end of file diff --git a/docs/QB.chat.html b/docs/QB.chat.html index be3d6cf10..9e0d60063 100644 --- a/docs/QB.chat.html +++ b/docs/QB.chat.html @@ -138,6 +138,121 @@

QuickBlox JavaScript SDK +
  • + + QB.chat.dialog + + static + + + + + + +
  • + +
  • + + QB.chat.helpers + + static + + + + + + +
  • + +
  • + + QB.chat.message + + static + + + + + + +
  • +
  • QB.chat.muc @@ -153,6 +268,51 @@

    QuickBlox JavaScript SDK +
      + +
    +

  • + +
  • + + QB.chat.privacylist + + static + + + + +