Class DmsResource.ConversationsResource.MessagesRequest
Legacy path for creating message. Calling these will result in a BadRequest response.
Inheritance
Inherited Members
Namespace: Google.Apis.HangoutsChat.v1
Assembly: Google.Apis.HangoutsChat.v1.dll
Syntax
public class MessagesRequest : HangoutsChatBaseServiceRequest<Message>, IClientServiceRequest<Message>, IClientServiceRequest
Constructors
MessagesRequest(IClientService, Message, String)
Constructs a new Messages request.
Declaration
public MessagesRequest(IClientService service, Message body, string parent)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
Message | body | |
System.String | parent |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
MessageId
Optional. A custom name for a Chat message assigned at creation. Must start with client-
and
contain only lowercase letters, numbers, and hyphens up to 63 characters in length. Specify this
field to get, update, or delete the message with the specified value. For example usage, see Name a
created
message.
Declaration
[RequestParameter("messageId", RequestParameterType.Query)]
public virtual string MessageId { get; set; }
Property Value
Type | Description |
---|---|
System.String |
MessageReplyOption
Optional. Specifies whether a message starts a thread or replies to one. Only supported in named spaces.
Declaration
[RequestParameter("messageReplyOption", RequestParameterType.Query)]
public virtual DmsResource.ConversationsResource.MessagesRequest.MessageReplyOptionEnum? MessageReplyOption { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<DmsResource.ConversationsResource.MessagesRequest.MessageReplyOptionEnum> |
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
Parent
Required. The resource name of the space in which to create a message. Format: spaces/{space}
Declaration
[RequestParameter("parent", RequestParameterType.Path)]
public virtual string Parent { get; }
Property Value
Type | Description |
---|---|
System.String |
RequestId
Optional. A unique request ID for this message. Specifying an existing request ID returns the message created with that ID instead of creating a new message.
Declaration
[RequestParameter("requestId", RequestParameterType.Query)]
public virtual string RequestId { get; set; }
Property Value
Type | Description |
---|---|
System.String |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
ThreadKey
Optional. Deprecated: Use thread.thread_key instead. Opaque thread identifier. To start or add to a
thread, create a message and specify a threadKey
or the thread.name. For example usage, see Start
or reply to a message thread.
Declaration
[RequestParameter("threadKey", RequestParameterType.Query)]
public virtual string ThreadKey { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
System.Object |
Overrides
InitParameters()
Initializes Messages parameter list.
Declaration
protected override void InitParameters()