Class Question
Represents a single question and some of its answers.
Implements
Inherited Members
Namespace: Google.Apis.MyBusinessQA.v1.Data
Assembly: Google.Apis.MyBusinessQA.v1.dll
Syntax
public class Question : IDirectResponseSchema
Properties
Author
Output only. The author of the question.
Declaration
[JsonProperty("author")]
public virtual Author Author { get; set; }
Property Value
Type | Description |
---|---|
Author |
CreateTime
object representation of CreateTimeRaw.
Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use CreateTimeDateTimeOffset instead.")]
public virtual object CreateTime { get; set; }
Property Value
Type | Description |
---|---|
object |
CreateTimeDateTimeOffset
DateTimeOffset representation of CreateTimeRaw.
Declaration
[JsonIgnore]
public virtual DateTimeOffset? CreateTimeDateTimeOffset { get; set; }
Property Value
Type | Description |
---|---|
DateTimeOffset? |
CreateTimeRaw
Output only. The timestamp for when the question was written.
Declaration
[JsonProperty("createTime")]
public virtual string CreateTimeRaw { get; set; }
Property Value
Type | Description |
---|---|
string |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
Name
Immutable. The unique name for the question. locations//questions/ This field will be ignored if set during question creation.
Declaration
[JsonProperty("name")]
public virtual string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
Text
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.
Declaration
[JsonProperty("text")]
public virtual string Text { get; set; }
Property Value
Type | Description |
---|---|
string |
TopAnswers
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)
Declaration
[JsonProperty("topAnswers")]
public virtual IList<Answer> TopAnswers { get; set; }
Property Value
Type | Description |
---|---|
IList<Answer> |
TotalAnswerCount
Output only. The total number of answers posted for this question.
Declaration
[JsonProperty("totalAnswerCount")]
public virtual int? TotalAnswerCount { get; set; }
Property Value
Type | Description |
---|---|
int? |
UpdateTime
object representation of UpdateTimeRaw.
Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use UpdateTimeDateTimeOffset instead.")]
public virtual object UpdateTime { get; set; }
Property Value
Type | Description |
---|---|
object |
UpdateTimeDateTimeOffset
DateTimeOffset representation of UpdateTimeRaw.
Declaration
[JsonIgnore]
public virtual DateTimeOffset? UpdateTimeDateTimeOffset { get; set; }
Property Value
Type | Description |
---|---|
DateTimeOffset? |
UpdateTimeRaw
Output only. The timestamp for when the question was last modified.
Declaration
[JsonProperty("updateTime")]
public virtual string UpdateTimeRaw { get; set; }
Property Value
Type | Description |
---|---|
string |
UpvoteCount
Output only. The number of upvotes for the question.
Declaration
[JsonProperty("upvoteCount")]
public virtual int? UpvoteCount { get; set; }
Property Value
Type | Description |
---|---|
int? |