bug fixed

This commit is contained in:
richard-loafle 2020-02-19 13:38:15 +09:00
parent cb121b3612
commit 715cc00de5
5 changed files with 14 additions and 14 deletions

View File

@ -29,16 +29,16 @@ export const decodeFileEventJson: EventJsonDecoder<FileEventJson> = (
return { return {
statusCode: json.StatusCode, statusCode: json.StatusCode,
errorMessage: json.ErrorMessage, errorMessage: json.ErrorMessage,
roomSeq: json.RoomID, roomSeq: Number(json.RoomID),
fileName: json.FileName, fileName: json.FileName,
fileExt: json.FileExt, fileExt: json.FileExt,
fileType: json.FileType, fileType: json.FileType,
thumbUrl: json.ThumbURL, thumbUrl: json.ThumbURL,
attachmentSeq: json.AttSEQ, attachmentSeq: Number(json.AttSEQ),
attachmentSize: json.AttSize, attachmentSize: Number(json.AttSize),
attachmentRegDate: json.AttRegDate, attachmentRegDate: json.AttRegDate,
imageWidth: json.ImageWidth, imageWidth: Number(json.ImageWidth),
imageHeight: json.ImageHeight, imageHeight: Number(json.ImageHeight),
companyCode: json.CompanyCode, companyCode: json.CompanyCode,
voiceTime: json.VoiceTime, voiceTime: json.VoiceTime,
synappKey: json.SynappKey synappKey: json.SynappKey

View File

@ -19,8 +19,8 @@ export const decodeMassTextEventJson: EventJsonDecoder<MassTextEventJson> = (
return { return {
statusCode: json.StatusCode, statusCode: json.StatusCode,
errorMessage: json.ErrorMessage, errorMessage: json.ErrorMessage,
roomSeq: json.RoomID, roomSeq: Number(json.RoomID),
massSeq: json.EventMassSeq, massSeq: Number(json.EventMassSeq),
regDate: json.RegDate, regDate: json.RegDate,
content: json.Content content: json.Content
} as MassTextEventJson; } as MassTextEventJson;

View File

@ -12,18 +12,18 @@ export interface MassTranslationEventJson {
translation?: string; translation?: string;
} }
export const decodeMassTranslationEventJson: EventJsonDecoder< export const decodeMassTranslationEventJson: EventJsonDecoder<MassTranslationEventJson> = (
MassTranslationEventJson message: string
> = (message: string) => { ) => {
try { try {
const json = JsonAnalization.receiveAnalization(message); const json = JsonAnalization.receiveAnalization(message);
return { return {
statusCode: json.StatusCode, statusCode: json.StatusCode,
errorMessage: json.ErrorMessage, errorMessage: json.ErrorMessage,
translationSeq: json.EventTransSeq, translationSeq: Number(json.EventTransSeq),
destLocale: json.DestLocale, destLocale: json.DestLocale,
roomSeq: json.RoomID, roomSeq: Number(json.RoomID),
regDate: json.RegDate, regDate: json.RegDate,
original: json.Original, original: json.Original,
translation: json.Translation translation: json.Translation

View File

@ -21,7 +21,7 @@ export const decodePlanEventJson: EventJsonDecoder<PlanEventJson> = (
try { try {
const json = JsonAnalization.receiveAnalization(message); const json = JsonAnalization.receiveAnalization(message);
return { return {
planSeq: json.planSeq, planSeq: Number(json.planSeq),
title: json.title, title: json.title,
contents: json.contents, contents: json.contents,
date: json.date, date: json.date,

View File

@ -19,7 +19,7 @@ export const decodeVideoConferenceEventJson: EventJsonDecoder<VideoConferenceEve
const json = JsonAnalization.receiveAnalization(message); const json = JsonAnalization.receiveAnalization(message);
return { return {
conferenceSeq: json.confSeq, conferenceSeq: Number(json.confSeq),
title: json.title, title: json.title,
contents: json.contents, contents: json.contents,
startDate: json.startDate, startDate: json.startDate,