diff --git a/projects/ucap-webmessenger-protocol-buddy/src/lib/services/buddy-protocol.service.ts b/projects/ucap-webmessenger-protocol-buddy/src/lib/services/buddy-protocol.service.ts index 0816eb01..01f79dcd 100644 --- a/projects/ucap-webmessenger-protocol-buddy/src/lib/services/buddy-protocol.service.ts +++ b/projects/ucap-webmessenger-protocol-buddy/src/lib/services/buddy-protocol.service.ts @@ -15,17 +15,20 @@ import { import { BuddyAddRequest, encodeBuddyAdd, - decodeBuddyAdd + decodeBuddyAdd, + BuddyAddResponse } from '../models/buddy-add'; import { BuddyDelRequest, encodeBuddyDel, - decodeBuddyDel + decodeBuddyDel, + BuddyDelResponse } from '../models/buddy-del'; import { BuddyUpdateRequest, decodeBuddyUpdate, - encodeBuddyUpdate + encodeBuddyUpdate, + BuddyUpdateResponse } from '../models/buddy-update'; @Injectable({ @@ -34,19 +37,19 @@ import { export class BuddyProtocolService { constructor(private protocolService: ProtocolService) {} - public buddyAdd(req: BuddyAddRequest): Observable { + public buddyAdd(req: BuddyAddRequest): Observable { return this.protocolService .call(SVC_TYPE_BUDDY, SSVC_TYPE_BUDDY_ADD_REQ, ...encodeBuddyAdd(req)) .pipe(map(res => decodeBuddyAdd(res))); } - public buddyDel(req: BuddyDelRequest): Observable { + public buddyDel(req: BuddyDelRequest): Observable { return this.protocolService .call(SVC_TYPE_BUDDY, SSVC_TYPE_BUDDY_DEL_REQ, ...encodeBuddyDel(req)) .pipe(map(res => decodeBuddyDel(res))); } - public buddyUpdate(req: BuddyUpdateRequest): Observable { + public buddyUpdate(req: BuddyUpdateRequest): Observable { return this.protocolService .call(SVC_TYPE_BUDDY, SSVC_TYPE_BUDDY_UPD_REQ, ...encodeBuddyUpdate(req)) .pipe(map(res => decodeBuddyUpdate(res))); diff --git a/projects/ucap-webmessenger-protocol-group/src/lib/services/group-protocol.service.ts b/projects/ucap-webmessenger-protocol-group/src/lib/services/group-protocol.service.ts index 59667652..a89df3d1 100644 --- a/projects/ucap-webmessenger-protocol-group/src/lib/services/group-protocol.service.ts +++ b/projects/ucap-webmessenger-protocol-group/src/lib/services/group-protocol.service.ts @@ -7,7 +7,8 @@ import { ProtocolService } from '@ucap-webmessenger/protocol'; import { GroupAddRequest, encodeGroupAdd, - decodeGroupAdd + decodeGroupAdd, + GroupAddResponse } from '../models/group-add'; import { SVC_TYPE_GROUP, @@ -19,14 +20,16 @@ import { import { GroupDelRequest, encodeGroupDel, - decodeGroupDel + decodeGroupDel, + GroupDelResponse } from '../models/group-del'; import { GroupUpdateRequest, encodeGroupUpdate, decodeGroupUpdate, encodeGroupUpdate2, - decodeGroupUpdate2 + decodeGroupUpdate2, + GroupUpdateResponse } from '../models/group-update'; @Injectable({ providedIn: 'root' @@ -34,25 +37,27 @@ import { export class GroupProtocolService { constructor(private protocolService: ProtocolService) {} - public groupAdd(req: GroupAddRequest): Observable { + public groupAdd(req: GroupAddRequest): Observable { return this.protocolService .call(SVC_TYPE_GROUP, SSVC_TYPE_GROUP_ADD_REQ, ...encodeGroupAdd(req)) .pipe(map(res => decodeGroupAdd(res))); } - public groupDel(req: GroupDelRequest): Observable { + public groupDel(req: GroupDelRequest): Observable { return this.protocolService .call(SVC_TYPE_GROUP, SSVC_TYPE_GROUP_DEL_REQ, ...encodeGroupDel(req)) .pipe(map(res => decodeGroupDel(res))); } - public groupUpdate(req: GroupUpdateRequest): Observable { + public groupUpdate(req: GroupUpdateRequest): Observable { return this.protocolService .call(SVC_TYPE_GROUP, SSVC_TYPE_GROUP_UPD_REQ, ...encodeGroupUpdate(req)) .pipe(map(res => decodeGroupUpdate(res))); } - public groupUpdate2(req: GroupUpdateRequest): Observable { + public groupUpdate2( + req: GroupUpdateRequest + ): Observable { return this.protocolService .call( SVC_TYPE_GROUP,