This commit is contained in:
tiago.kayaya
2021-01-22 17:12:39 +01:00
parent d49e51a986
commit bbfb82c4e9
189 changed files with 934 additions and 15558 deletions
@@ -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;