diff --git a/projects/ucap-webmessenger-protocol-buddy/src/lib/models/buddy-update.ts b/projects/ucap-webmessenger-protocol-buddy/src/lib/models/buddy-update.ts index 395362a6..66c7fa13 100644 --- a/projects/ucap-webmessenger-protocol-buddy/src/lib/models/buddy-update.ts +++ b/projects/ucap-webmessenger-protocol-buddy/src/lib/models/buddy-update.ts @@ -13,14 +13,14 @@ export interface BuddyUpdateRequest extends ProtocolRequest { // 0. 사용자SEQ(n) userSeq: number; // 1. 즐겨찾기여부(y) - favorit: boolean; + isFavorit: boolean; } export interface BuddyUpdateResponse extends ProtocolResponse { // 0. 사용자SEQ(n) userSeq: number; // 1. 즐겨찾기여부(y) - favorit: boolean; + isFavorit: boolean; } export const encodeBuddyUpdate: ProtocolEncoder = ( @@ -31,7 +31,7 @@ export const encodeBuddyUpdate: ProtocolEncoder = ( bodyList.push({ type: PacketBodyValue.Integer, value: req.userSeq }); bodyList.push({ type: PacketBodyValue.String, - value: req.favorit ? 'Y' : 'N' + value: req.isFavorit ? 'Y' : 'N' }); return bodyList; @@ -42,6 +42,6 @@ export const decodeBuddyUpdate: ProtocolDecoder = ( ) => { return { userSeq: message.bodyList[0], - favorit: message.bodyList[1] === 'Y' ? true : false + isFavorit: message.bodyList[1] === 'Y' ? true : false } as BuddyUpdateResponse; }; diff --git a/projects/ucap-webmessenger-protocol-buddy/src/public-api.ts b/projects/ucap-webmessenger-protocol-buddy/src/public-api.ts index 24173dd5..90da4389 100644 --- a/projects/ucap-webmessenger-protocol-buddy/src/public-api.ts +++ b/projects/ucap-webmessenger-protocol-buddy/src/public-api.ts @@ -1,6 +1,9 @@ /* * Public API Surface of ucap-webmessenger-protocol-buddy */ +export * from './lib/models/buddy-add'; +export * from './lib/models/buddy-del'; +export * from './lib/models/buddy-update'; export * from './lib/services/buddy-protocol.service';