@likeminds.community/feed-js
Version:
LikeMinds Javascript SDK for chat APIs
80 lines (79 loc) • 3.58 kB
TypeScript
import { PollMultipleSelectState, PollType } from "src/poll/enums";
import { AttachmentMeta, WidgetMeta } from "../../types/models/attachment";
declare class LMFeedPostAttachmentMeta implements AttachmentMeta {
name?: string;
url?: string;
format?: string;
size?: number;
duration?: number;
pageCount?: number;
ogTags?: any;
coverImageUrl?: string;
title?: string;
body?: string;
thumbnailUrl?: string;
pollQuestion?: string;
expiryTime?: number;
options?: string[];
multipleSelectState?: PollMultipleSelectState;
pollType?: PollType;
multipleSelectNumber?: number;
isAnonymous?: boolean;
allowAddOption?: boolean;
entityId?: string;
widgetMeta?: WidgetMeta;
height?: number;
width?: number;
constructor(name?: string, url?: string, format?: string, size?: number, duration?: number, pageCount?: number, ogTags?: any, coverImageUrl?: string, title?: string, pollQuestion?: string, expiryTime?: number, options?: string[], multipleSelectState?: PollMultipleSelectState, pollType?: PollType, multipleSelectNumber?: number, isAnonymous?: boolean, allowAddOption?: boolean, body?: string, thumbnailUrl?: string, entityId?: string, widgetMeta?: WidgetMeta, height?: number, width?: number);
static builder(): AttachmentMetaBuilder;
}
export declare class AttachmentMetaBuilder {
private name?;
private url?;
private format?;
private size?;
private duration?;
private pageCount?;
private ogTags;
private title?;
coverImageUrl?: string | undefined;
body?: string | undefined;
thumbnailUrl?: string | undefined;
pollQuestion?: string | undefined;
expiryTime?: number | undefined;
options?: string[] | undefined;
multipleSelectState?: PollMultipleSelectState | undefined;
pollType?: PollType | undefined;
multipleSelectNumber?: number | undefined;
isAnonymous?: boolean | undefined;
allowAddOption?: boolean | undefined;
entityId?: string | undefined;
widgetMeta?: WidgetMeta;
height?: number | undefined;
width?: number | undefined;
setName(name: string): AttachmentMetaBuilder;
setThumbnailUrl(url: string): AttachmentMetaBuilder;
setUrl(url: string): AttachmentMetaBuilder;
setFormat(format: string): AttachmentMetaBuilder;
setSize(size: number): AttachmentMetaBuilder;
setDuration(duration: number): AttachmentMetaBuilder;
setPageCount(pageCount: number): AttachmentMetaBuilder;
setOgTags(ogTags: any): AttachmentMetaBuilder;
setTitle(title: string): AttachmentMetaBuilder;
setBody(body: string): AttachmentMetaBuilder;
setCoverImageUrl(coverImageUrl: string): AttachmentMetaBuilder;
setPollQuestion(pollQuestion: string): AttachmentMetaBuilder;
setExpiryTime(expiryTime: number): AttachmentMetaBuilder;
setOptions(options: string[]): AttachmentMetaBuilder;
setMultipleSelectState(multipleSelectState: PollMultipleSelectState): AttachmentMetaBuilder;
setPollType(pollType: PollType): AttachmentMetaBuilder;
setHeight(height: number): AttachmentMetaBuilder;
setWidth(width: number): AttachmentMetaBuilder;
setMultipleSelectNumber(multipleSelectNumber: number): AttachmentMetaBuilder;
setIsAnonymous(isAnonymous: boolean): AttachmentMetaBuilder;
setAllowAddOption(allowAddOption: boolean): AttachmentMetaBuilder;
setEntityId(entityId: string): AttachmentMetaBuilder;
setWidgetMeta(widgetMeta: WidgetMeta | null): AttachmentMetaBuilder;
build(): AttachmentMeta;
}
export default LMFeedPostAttachmentMeta;