Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Answer

The equivalent of Type answer.
This object represents an Answer to a Question on one of the Stack Exchange sites.
As on the Question page, it is possible to fetch the Comments on an Answer as part of a call; though this is not done by default.

Hierarchy

  • Answer

Index

Constructors

constructor

Properties

accepted

accepted: boolean | null

answerId

answerId: number | null

Refers to an Answer

awardedBountyAmount

awardedBountyAmount: number | null

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

awardedBountyUsers

awardedBountyUsers: ShallowUser[] | null

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

body

body: string | null

bodyMarkdown

bodyMarkdown: string | null

canFlag

canFlag: boolean | 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

downVoteCount

downVoteCount: number | null

downvoted

downvoted: boolean | null

isAccepted

isAccepted: 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

owner

owner: ShallowUser | null

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

questionId

questionId: number | null

Refers to a Question

score

score: number | null

shareLink

shareLink: string | null

tags

tags: string[] | null

title

title: string | null

upVoteCount

upVoteCount: number | null

upvoted

upvoted: boolean | null

Made by Horyus. Documentation generated by TypeDoc.