Merge branch 'master' of https://git.loafle.net/ucap-web/next-ucap-messenger
This commit is contained in:
commit
b19548688a
|
@ -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
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user