Class LocationsResource.QuestionsResource.AnswersResource
The "answers" collection of methods.
Inherited Members
Namespace: Google.Apis.MyBusinessQA.v1
Assembly: Google.Apis.MyBusinessQA.v1.dll
Syntax
public class LocationsResource.QuestionsResource.AnswersResource
Constructors
AnswersResource(IClientService)
Constructs a new resource.
Declaration
public AnswersResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Delete(string)
Deletes the answer written by the current user to a question.
Declaration
public virtual LocationsResource.QuestionsResource.AnswersResource.DeleteRequest Delete(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the question to delete an answer for. |
Returns
Type | Description |
---|---|
LocationsResource.QuestionsResource.AnswersResource.DeleteRequest |
List(string)
Returns the paginated list of answers for a specified question.
Declaration
public virtual LocationsResource.QuestionsResource.AnswersResource.ListRequest List(string parent)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. The name of the question to fetch answers for. |
Returns
Type | Description |
---|---|
LocationsResource.QuestionsResource.AnswersResource.ListRequest |
Upsert(UpsertAnswerRequest, string)
Creates an answer or updates the existing answer written by the user for the specified question. A user can only create one answer per question.
Declaration
public virtual LocationsResource.QuestionsResource.AnswersResource.UpsertRequest Upsert(UpsertAnswerRequest body, string parent)
Parameters
Type | Name | Description |
---|---|---|
UpsertAnswerRequest | body | The body of the request. |
string | parent | Required. The name of the question to write an answer for. |
Returns
Type | Description |
---|---|
LocationsResource.QuestionsResource.AnswersResource.UpsertRequest |