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 FileTalkShareRequest extends APIRequest {
|
|
|
|
userSeq: string;
|
|
|
|
deviceType: DeviceType;
|
|
|
|
token: string;
|
|
|
|
attachmentsSeq?: string;
|
|
|
|
roomId?: string;
|
|
|
|
synapKey?: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface FileTalkShareResponse extends APIResponse {
|
|
|
|
RoomID?: string;
|
|
|
|
FileName?: string;
|
|
|
|
FileExt?: string;
|
|
|
|
FileType?: string;
|
|
|
|
ThumbURL?: string;
|
|
|
|
AttSEQ?: string;
|
|
|
|
AttSize?: string;
|
|
|
|
AttRegDate?: string;
|
|
|
|
CompanyCode?: string;
|
|
|
|
SynapKey?: string;
|
|
|
|
}
|
2019-09-20 11:39:09 +09:00
|
|
|
|
|
|
|
const fileTalkShareEncodeMap = {};
|
|
|
|
|
|
|
|
export const encodeFileTalkShare: APIEncoder<FileTalkShareRequest> = (
|
|
|
|
req: FileTalkShareRequest
|
|
|
|
) => {
|
|
|
|
return ParameterUtil.encode(fileTalkShareEncodeMap, req);
|
|
|
|
};
|
|
|
|
|
|
|
|
export const decodeFileTalkShare: APIDecoder<FileTalkShareResponse> = (
|
|
|
|
res: any
|
|
|
|
) => {
|
|
|
|
return {} as FileTalkShareResponse;
|
|
|
|
};
|