diff --git a/projects/ucap-webmessenger-protocol-event/src/lib/protocols/event-json/file.event-json.ts b/projects/ucap-webmessenger-protocol-event/src/lib/protocols/event-json/file.event-json.ts index 70e86442..713a3a18 100644 --- a/projects/ucap-webmessenger-protocol-event/src/lib/protocols/event-json/file.event-json.ts +++ b/projects/ucap-webmessenger-protocol-event/src/lib/protocols/event-json/file.event-json.ts @@ -29,16 +29,16 @@ export const decodeFileEventJson: EventJsonDecoder = ( return { statusCode: json.StatusCode, errorMessage: json.ErrorMessage, - roomSeq: json.RoomID, + roomSeq: Number(json.RoomID), fileName: json.FileName, fileExt: json.FileExt, fileType: json.FileType, thumbUrl: json.ThumbURL, - attachmentSeq: json.AttSEQ, - attachmentSize: json.AttSize, + attachmentSeq: Number(json.AttSEQ), + attachmentSize: Number(json.AttSize), attachmentRegDate: json.AttRegDate, - imageWidth: json.ImageWidth, - imageHeight: json.ImageHeight, + imageWidth: Number(json.ImageWidth), + imageHeight: Number(json.ImageHeight), companyCode: json.CompanyCode, voiceTime: json.VoiceTime, synappKey: json.SynappKey diff --git a/projects/ucap-webmessenger-protocol-event/src/lib/protocols/event-json/mass-text.event-json.ts b/projects/ucap-webmessenger-protocol-event/src/lib/protocols/event-json/mass-text.event-json.ts index 51ef4859..ffb99041 100644 --- a/projects/ucap-webmessenger-protocol-event/src/lib/protocols/event-json/mass-text.event-json.ts +++ b/projects/ucap-webmessenger-protocol-event/src/lib/protocols/event-json/mass-text.event-json.ts @@ -19,8 +19,8 @@ export const decodeMassTextEventJson: EventJsonDecoder = ( return { statusCode: json.StatusCode, errorMessage: json.ErrorMessage, - roomSeq: json.RoomID, - massSeq: json.EventMassSeq, + roomSeq: Number(json.RoomID), + massSeq: Number(json.EventMassSeq), regDate: json.RegDate, content: json.Content } as MassTextEventJson; diff --git a/projects/ucap-webmessenger-protocol-event/src/lib/protocols/event-json/mass-translation.event-json.ts b/projects/ucap-webmessenger-protocol-event/src/lib/protocols/event-json/mass-translation.event-json.ts index f3298401..1997c307 100644 --- a/projects/ucap-webmessenger-protocol-event/src/lib/protocols/event-json/mass-translation.event-json.ts +++ b/projects/ucap-webmessenger-protocol-event/src/lib/protocols/event-json/mass-translation.event-json.ts @@ -12,18 +12,18 @@ export interface MassTranslationEventJson { translation?: string; } -export const decodeMassTranslationEventJson: EventJsonDecoder< - MassTranslationEventJson -> = (message: string) => { +export const decodeMassTranslationEventJson: EventJsonDecoder = ( + message: string +) => { try { const json = JsonAnalization.receiveAnalization(message); return { statusCode: json.StatusCode, errorMessage: json.ErrorMessage, - translationSeq: json.EventTransSeq, + translationSeq: Number(json.EventTransSeq), destLocale: json.DestLocale, - roomSeq: json.RoomID, + roomSeq: Number(json.RoomID), regDate: json.RegDate, original: json.Original, translation: json.Translation diff --git a/projects/ucap-webmessenger-protocol-event/src/lib/protocols/event-json/plan.event-json.ts b/projects/ucap-webmessenger-protocol-event/src/lib/protocols/event-json/plan.event-json.ts index dc496388..bba03094 100644 --- a/projects/ucap-webmessenger-protocol-event/src/lib/protocols/event-json/plan.event-json.ts +++ b/projects/ucap-webmessenger-protocol-event/src/lib/protocols/event-json/plan.event-json.ts @@ -21,7 +21,7 @@ export const decodePlanEventJson: EventJsonDecoder = ( try { const json = JsonAnalization.receiveAnalization(message); return { - planSeq: json.planSeq, + planSeq: Number(json.planSeq), title: json.title, contents: json.contents, date: json.date, diff --git a/projects/ucap-webmessenger-protocol-event/src/lib/protocols/event-json/video-conference.event-json.ts b/projects/ucap-webmessenger-protocol-event/src/lib/protocols/event-json/video-conference.event-json.ts index c1c4186a..5aa209e2 100644 --- a/projects/ucap-webmessenger-protocol-event/src/lib/protocols/event-json/video-conference.event-json.ts +++ b/projects/ucap-webmessenger-protocol-event/src/lib/protocols/event-json/video-conference.event-json.ts @@ -19,7 +19,7 @@ export const decodeVideoConferenceEventJson: EventJsonDecoder