@ebenos/viber-elements
Version:
Elements Library for the Ebony framework.
56 lines • 1.86 kB
TypeScript
import { IRichMediaOptions, IPictureOptions, ActionType, TextVAlign, TextHAlign, TextSize, ISerializedRichMedia, MediaType, ScaleType, OpenURLType, IInternalBrowser, ICoordinates, IFrame, IMediaPlayer, IButtonOptions, OpenURLMediaType, ISerializedButton } from './interfaces';
import { ISerializable } from '@ebenos/framework';
/**Viber RichMedia Button */
export declare class Button implements ISerializable {
Columns: number;
Rows: number;
ActionType: ActionType;
ActionBody: string;
Image?: string;
Text?: string;
TextSize: TextSize;
TextVAlign: TextVAlign;
TextHAlign: TextHAlign;
Silent: boolean;
BgColor?: string;
BgMediaType?: MediaType;
BgMedia?: string;
BgMediaScaleType?: ScaleType;
ImageScaleType?: ScaleType;
BgLoop: boolean;
TextPaddings?: number[];
TextOpacity: number;
OpenURLType: OpenURLType;
OpenURLMediaType: OpenURLMediaType;
TextBgGradientColor?: string;
TextShouldFit: boolean;
InternalBrowser?: IInternalBrowser;
Map?: ICoordinates;
Frame?: IFrame;
MediaPlayer?: IMediaPlayer;
constructor(o: IButtonOptions);
serialize(): ISerializedButton;
}
/** Viber RichMedia Attachment */
export declare class RichMedia implements ISerializable {
ButtonsGroupColumns?: number;
ButtonsGroupRows?: number;
BgColor?: string;
Buttons: Button[];
HeightScale: number;
constructor(options: IRichMediaOptions);
serialize(): ISerializedRichMedia;
}
/** Viber Image Attachment */
export declare class Picture implements ISerializable {
media: string;
thumbnail?: string;
/**
*
* @param media - (Required) URL of the image
* @param thumbnail - URL of a reduced size image
*/
constructor(options: IPictureOptions);
serialize(): any;
}
//# sourceMappingURL=attachments.d.ts.map