mirror of
https://github.com/pierre42100/ComunicWeb
synced 2025-09-19 05:49:07 +00:00
Can get information about multiple groups and cache them.
This commit is contained in:
@@ -1013,6 +1013,13 @@ var ComunicWeb = {
|
||||
utils: {
|
||||
//TODO : implement
|
||||
},
|
||||
|
||||
/**
|
||||
* Groups information
|
||||
*/
|
||||
info: {
|
||||
//TODO : implement
|
||||
},
|
||||
},
|
||||
|
||||
/**
|
||||
|
@@ -150,4 +150,24 @@ function openConversation(id){
|
||||
*/
|
||||
function notify(message, type, duration, title){
|
||||
ComunicWeb.common.notificationSystem.showNotification(message, type, duration, title)
|
||||
}
|
||||
|
||||
/**
|
||||
* Get information about a single group
|
||||
*
|
||||
* @param {Number} id The ID of the group to fetch
|
||||
* @param {Function} callback
|
||||
*/
|
||||
function getInfoGroup(id, callback){
|
||||
ComunicWeb.components.groups.info.getInfo(id, callback);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get information about multiple groups
|
||||
*
|
||||
* @param {Array} IDs The IDs of the groups to get information about
|
||||
* @param {Function} callback Callback to call once we have information about the group
|
||||
*/
|
||||
function getInfoMultipleGroups(IDs, callback){
|
||||
ComunicWeb.components.groups.info.getInfoMultiple(IDs, callback);
|
||||
}
|
Reference in New Issue
Block a user