Can get information about multiple groups and cache them.

This commit is contained in:
Pierre HUBERT
2018-07-20 09:07:00 +02:00
parent 61a20e8708
commit cc1e4dd22a
5 changed files with 156 additions and 0 deletions

View File

@@ -1013,6 +1013,13 @@ var ComunicWeb = {
utils: {
//TODO : implement
},
/**
* Groups information
*/
info: {
//TODO : implement
},
},
/**

View File

@@ -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);
}