2019-09-18 15:02:21 +09:00
|
|
|
import { DeviceType } from '@ucap-webmessenger/core';
|
2019-09-20 11:39:09 +09:00
|
|
|
import {
|
|
|
|
APIRequest,
|
|
|
|
APIResponse,
|
|
|
|
APIEncoder,
|
|
|
|
APIDecoder,
|
|
|
|
ParameterUtil
|
|
|
|
} from '@ucap-webmessenger/api';
|
2019-09-18 15:02:21 +09:00
|
|
|
|
|
|
|
export interface FileTalkSaveRequest extends APIRequest {
|
|
|
|
userSeq: string;
|
|
|
|
deviceType: DeviceType;
|
|
|
|
token: string;
|
|
|
|
file?: File;
|
|
|
|
fileName?: string;
|
|
|
|
thumb?: File;
|
|
|
|
voice?: boolean;
|
|
|
|
voiceTime?: string;
|
|
|
|
roomId?: string;
|
|
|
|
type?: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface FileTalkSaveResponse extends APIResponse {
|
|
|
|
RoomID?: string;
|
|
|
|
FileName?: string;
|
|
|
|
FileExt?: string;
|
|
|
|
FileType?: string;
|
|
|
|
ThumbURL?: string;
|
|
|
|
AttSEQ?: string;
|
|
|
|
AttSize?: string;
|
|
|
|
AttRegDate?: string;
|
|
|
|
ImageWidth?: string;
|
|
|
|
ImageHeight?: string;
|
|
|
|
CompanyCode?: string;
|
|
|
|
VoiceTime?: string;
|
|
|
|
SynapKey?: string;
|
|
|
|
}
|
2019-09-20 11:39:09 +09:00
|
|
|
|
|
|
|
const fileTalkSaveEncodeMap = {};
|
|
|
|
|
|
|
|
export const encodeFileTalkSave: APIEncoder<FileTalkSaveRequest> = (
|
|
|
|
req: FileTalkSaveRequest
|
|
|
|
) => {
|
|
|
|
return ParameterUtil.encode(fileTalkSaveEncodeMap, req);
|
|
|
|
};
|
|
|
|
|
|
|
|
export const decodeFileTalkSave: APIDecoder<FileTalkSaveResponse> = (
|
|
|
|
res: any
|
|
|
|
) => {
|
|
|
|
return {} as FileTalkSaveResponse;
|
|
|
|
};
|