import { ACTION, baseParamsType, ChannelMediaLinkState, ICOMMAND, IKeyMaybeValue, IRESPONSE, MayHaveChannelId, RESULT } from "../cmd-protocol"; import { channelIdType } from "./channel"; import { CMDC_CMSG, MediaFile, MediaPrice, MessageId, MessageParams, MessageReadOnlyParams } from "./message"; /** * Frontent command for media purchase. Will be forwarded to users pool B2B backend with additional infos */ export declare class CMDP_SMEDIAPURCHASE implements ICOMMAND { action: ACTION; params: baseParamsType & channelIdType & /** the message id of related media offer */ MessageId & /** MediaPrice is added to proxy call from Cmdontrol to B2B backend */ MediaPrice & /** MediaFile is added to proxy call from CmdControl to B2B backend */ MediaFile; } /** * Response command for CMDP_SMEDIAPURCHASE. */ export declare class CMDP_SMEDIAPURCHASE_RESPONSE extends CMDP_SMEDIAPURCHASE implements IRESPONSE { result: RESULT; commands: ICOMMAND[]; values: IKeyMaybeValue; } /** * Inform the Session about purchase */ export declare class CMDC_MEDIAPURCHASED extends CMDC_CMSG { action: ACTION; params: MessageParams & MessageReadOnlyParams & MediaFile & MediaPrice & MayHaveChannelId & { linkState?: ChannelMediaLinkState; } & IKeyMaybeValue; }