Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Question

import type { Question } from "https://googleapis.deno.dev/v1/mybusinessqanda:v1.ts";

Represents a single question and some of its answers.

interface Question {
readonly author?: Author;
readonly createTime?: Date;
name?: string;
text?: string;
readonly topAnswers?: Answer[];
readonly totalAnswerCount?: number;
readonly updateTime?: Date;
readonly upvoteCount?: number;
}

§Properties

§
readonly author?: Author
[src]

Output only. The author of the question.

§
readonly createTime?: Date
[src]

Output only. The timestamp for when the question was written.

§
name?: string
[src]

Immutable. The unique name for the question. locations//questions/ This field will be ignored if set during question creation.

§
text?: string
[src]

Required. The text of the question. It should contain at least three words and the total length should be greater than or equal to 10 characters. The maximum length is 4096 characters.

§
readonly topAnswers?: Answer[]
[src]

Output only. A list of answers to the question, sorted by upvotes. This may not be a complete list of answers depending on the request parameters (answers_per_question)

§
readonly totalAnswerCount?: number
[src]

Output only. The total number of answers posted for this question.

§
readonly updateTime?: Date
[src]

Output only. The timestamp for when the question was last modified.

§
readonly upvoteCount?: number
[src]

Output only. The number of upvotes for the question.