mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-21 05:45:50 +00:00
save
This commit is contained in:
+21
@@ -235,6 +235,11 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
||||
}
|
||||
/* GROUPS */
|
||||
|
||||
}, {
|
||||
key: "addGroup",
|
||||
value: function addGroup(body) {
|
||||
return this.http.post(src_environments_environment__WEBPACK_IMPORTED_MODULE_6__["environment"].apiChatUrl + 'groups.create', body, this.options);
|
||||
}
|
||||
}, {
|
||||
key: "getGroupMembers",
|
||||
value: function getGroupMembers(roomId) {
|
||||
@@ -303,6 +308,22 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
||||
value: function deleteChannel(body) {
|
||||
return this.http.post(src_environments_environment__WEBPACK_IMPORTED_MODULE_6__["environment"].apiChatUrl + 'channels.delete', body, this.options);
|
||||
}
|
||||
}, {
|
||||
key: "addUserToGroup",
|
||||
value: function addUserToGroup(body) {
|
||||
return this.http.post(src_environments_environment__WEBPACK_IMPORTED_MODULE_6__["environment"].apiChatUrl + 'groups.invite', body, this.options);
|
||||
}
|
||||
}, {
|
||||
key: "getGroupInfo",
|
||||
value: function getGroupInfo(roomId) {
|
||||
var params = new _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpParams"]();
|
||||
params = params.set("roomId", roomId);
|
||||
var opts = {
|
||||
headers: this.headers,
|
||||
params: params
|
||||
};
|
||||
return this.http.get(src_environments_environment__WEBPACK_IMPORTED_MODULE_6__["environment"].apiChatUrl + 'groups.info', opts);
|
||||
}
|
||||
}]);
|
||||
|
||||
return ChatService;
|
||||
|
||||
Reference in New Issue
Block a user