Interface IPollAttachmentPayload

interface IPollAttachmentPayload {
    access_key?: string;
    anonymous?: number;
    answer_ids?: number[];
    answers?: {
        id: number;
        rate: number;
        text: string;
        votes: number;
    }[];
    author_id?: number;
    background?: {
        angle: number;
        color: string;
        height: number;
        id: number;
        images: undefined | IPhotoSize[];
        points: {
            color: string;
            position: number;
        }[];
        type: "gradient" | "tile";
        width: number;
    };
    can_edit?: number;
    can_report?: number;
    can_share?: number;
    can_vote?: number;
    closed?: number;
    created?: number;
    end_date?: number;
    friends?: number[];
    id: number;
    is_board?: number;
    multiple?: number;
    owner_id: number;
    photo?: IPhotoAttachmentPayload;
    question?: string;
    votes?: number;
}

Properties

access_key?: string
anonymous?: number
answer_ids?: number[]
answers?: {
    id: number;
    rate: number;
    text: string;
    votes: number;
}[]

Type declaration

  • id: number
  • rate: number
  • text: string
  • votes: number
author_id?: number
background?: {
    angle: number;
    color: string;
    height: number;
    id: number;
    images: undefined | IPhotoSize[];
    points: {
        color: string;
        position: number;
    }[];
    type: "gradient" | "tile";
    width: number;
}

Type declaration

  • angle: number
  • color: string
  • height: number
  • id: number
  • images: undefined | IPhotoSize[]
  • points: {
        color: string;
        position: number;
    }[]
  • type: "gradient" | "tile"
  • width: number
can_edit?: number
can_report?: number
can_share?: number
can_vote?: number
closed?: number
created?: number
end_date?: number
friends?: number[]
id: number
is_board?: number
multiple?: number
owner_id: number
question?: string
votes?: number

Generated using TypeDoc