Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Question

The equivalent of Type question.
This object represents a Question on one of the Stack Exchange sites.
This object is heavily inspired by the Question page itself, and can optionally return Comments and Answers accordingly.

Hierarchy

  • Question

Index

Constructors

constructor

Properties

acceptedAnswerId

acceptedAnswerId: number | null

May be absent, in which case it is set to null

answerCount

answerCount: number | null

answers

answers: Answer[] | null

May be absent, in which case it is set to null

body

body: string | null

bodyMarkdown

bodyMarkdown: string | null

bountyAmount

bountyAmount: number | null

May be absent, in which case it is set to null

bountyClosesDate

bountyClosesDate: Date | null

May be absent, in which case it is set to null

bountyUser

bountyUser: ShallowUser | null

May be absent, in which case it is set to null

canClose

canClose: boolean | null

canFlag

canFlag: boolean | null

closeVoteCount

closeVoteCount: number | null

closedDate

closedDate: Date | null

May be absent, in which case it is set to null

closedDetails

closedDetails: ClosedDetails | null

May be absent, in which case it is set to null

closedReason

closedReason: string | null

May be absent, in which case it is set to null

commentCount

commentCount: number | null

comments

comments: Comment[] | null

May be absent, in which case it is set to null

communityOwnedDate

communityOwnedDate: Date | null

May be absent, in which case it is set to null

creationDate

creationDate: Date | null

deleteVoteCount

deleteVoteCount: number | null

downVoteCount

downVoteCount: number | null

downvoted

downvoted: boolean | null

favoriteCount

favoriteCount: number | null

favorited

favorited: boolean | null

isAnswered

isAnswered: boolean | null

lastActivityDate

lastActivityDate: Date | null

lastEditDate

lastEditDate: Date | null

May be absent, in which case it is set to null

lastEditor

lastEditor: ShallowUser | null

link

link: string | null

lockedDate

lockedDate: Date | null

May be absent, in which case it is set to null

migratedFrom

migratedFrom: MigrationInfo | null

May be absent, in which case it is set to null

migratedTo

migratedTo: MigrationInfo | null

May be absent, in which case it is set to null

notice

notice: Notice | null

owner

owner: ShallowUser | null

May be absent, in which case it is set to null

protectedDate

protectedDate: Date | null

May be absent, in which case it is set to null

questionId

questionId: number | null

Refers to a Question

reopenVoteCount

reopenVoteCount: number | null

score

score: number | null

shareLink

shareLink: string | null

tags

tags: string[] | null

title

title: string | null

upVoteCount

upVoteCount: number | null

upvoted

upvoted: boolean | null

viewCount

viewCount: number | null

Made by Horyus. Documentation generated by TypeDoc.