Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Poll

Hierarchy

  • VirtualClass<{ id: long; closed?: boolean; publicVoters?: boolean; multipleChoice?: boolean; quiz?: boolean; question: string; answers: TypePollAnswer[]; closePeriod?: int; closeDate?: int }>
    • Poll

Index

Properties

CONSTRUCTOR_ID: number
SUBCLASS_OF_ID: number
className: string
classType: "constructor" | "request"
originalArgs: { id: BigInteger; closed?: boolean; publicVoters?: boolean; multipleChoice?: boolean; quiz?: boolean; question: string; answers: PollAnswer[]; closePeriod?: number; closeDate?: number }

Type declaration

  • id: BigInteger
  • Optional closed?: boolean
  • Optional publicVoters?: boolean
  • Optional multipleChoice?: boolean
  • Optional quiz?: boolean
  • question: string
  • answers: PollAnswer[]
  • Optional closePeriod?: number
  • Optional closeDate?: number
CONSTRUCTOR_ID: 2262925665
SUBCLASS_OF_ID: 613307771
classType: "constructor"
className: "Poll"
id: BigInteger
closed?: boolean
publicVoters?: boolean
multipleChoice?: boolean
quiz?: boolean
question: string
answers: PollAnswer[]
closePeriod?: number
closeDate?: number

Methods

  • serializeBytes(data: string | Buffer): Buffer
  • serializeDate(date: number | Date): Buffer
  • getBytes(): Buffer
  • toJSON(): { id: BigInteger; closed?: boolean; publicVoters?: boolean; multipleChoice?: boolean; quiz?: boolean; question: string; answers: PollAnswer[]; closePeriod?: number; closeDate?: number }
  • Returns { id: BigInteger; closed?: boolean; publicVoters?: boolean; multipleChoice?: boolean; quiz?: boolean; question: string; answers: PollAnswer[]; closePeriod?: number; closeDate?: number }

    • id: BigInteger
    • Optional closed?: boolean
    • Optional publicVoters?: boolean
    • Optional multipleChoice?: boolean
    • Optional quiz?: boolean
    • question: string
    • answers: PollAnswer[]
    • Optional closePeriod?: number
    • Optional closeDate?: number
  • fromReader(reader: any): Poll

Constructors

  • new Poll(args: { id: BigInteger; closed?: boolean; publicVoters?: boolean; multipleChoice?: boolean; quiz?: boolean; question: string; answers: PollAnswer[]; closePeriod?: number; closeDate?: number }): Poll
  • Parameters

    • args: { id: BigInteger; closed?: boolean; publicVoters?: boolean; multipleChoice?: boolean; quiz?: boolean; question: string; answers: PollAnswer[]; closePeriod?: number; closeDate?: number }
      • id: BigInteger
      • Optional closed?: boolean
      • Optional publicVoters?: boolean
      • Optional multipleChoice?: boolean
      • Optional quiz?: boolean
      • question: string
      • answers: PollAnswer[]
      • Optional closePeriod?: number
      • Optional closeDate?: number

    Returns Poll

Generated using TypeDoc