Class SpacesResource.MessagesResource.ReplaceCardsRequest
Replaces the cards included in a message. A Chat app can only replace cards on a human-created message
if the message already contains cards, and the cards were created by the app. If the app replaces the
cards with an empty list, the cards are removed. After removing the cards, the app cannot add cards back
to the message. Requires app
authentication with the
authorization
scope: -
https://www.googleapis.com/auth/chat.bot
Inheritance
SpacesResource.MessagesResource.ReplaceCardsRequest
Inherited Members
Namespace: Google.Apis.HangoutsChat.v1
Assembly: Google.Apis.HangoutsChat.v1.dll
Syntax
public class SpacesResource.MessagesResource.ReplaceCardsRequest : HangoutsChatBaseServiceRequest<ReplaceMessageCardsResponse>, IClientServiceRequest<ReplaceMessageCardsResponse>, IClientServiceRequest
Constructors
ReplaceCardsRequest(IClientService, ReplaceMessageCardsRequest, string)
Constructs a new ReplaceCards request.
Declaration
public ReplaceCardsRequest(IClientService service, ReplaceMessageCardsRequest body, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| ReplaceMessageCardsRequest | body | |
| string | name |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
Name
Required. The resource name of the message. Format: spaces/{space}/messages/{message}
Declaration
[RequestParameter("name", RequestParameterType.Path)]
public virtual string Name { get; }
Property Value
| Type | Description |
|---|---|
| string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
| Type | Description |
|---|---|
| object |
Overrides
InitParameters()
Initializes ReplaceCards parameter list.
Declaration
protected override void InitParameters()