Show / Hide Table of Contents

Class SpacesResource.FindDirectMessageRequest

Returns the existing direct message with the specified user. If no direct message space is found, returns a 404 NOT_FOUND error. For an example, see Find a direct message. With app authentication, returns the direct message space between the specified user and the calling Chat app. With user authentication, returns the direct message space between the specified user and the authenticated user. Supports the following types of authentication: - App authentication with the authorization scope: - https://www.googleapis.com/auth/chat.bot - User authentication with one of the following authorization scopes: - https://www.googleapis.com/auth/chat.spaces.readonly - https://www.googleapis.com/auth/chat.spaces

Inheritance
object
ClientServiceRequest
ClientServiceRequest<Space>
HangoutsChatBaseServiceRequest<Space>
SpacesResource.FindDirectMessageRequest
Implements
IClientServiceRequest<Space>
IClientServiceRequest
Inherited Members
HangoutsChatBaseServiceRequest<Space>.Xgafv
HangoutsChatBaseServiceRequest<Space>.AccessToken
HangoutsChatBaseServiceRequest<Space>.Alt
HangoutsChatBaseServiceRequest<Space>.Callback
HangoutsChatBaseServiceRequest<Space>.Fields
HangoutsChatBaseServiceRequest<Space>.Key
HangoutsChatBaseServiceRequest<Space>.OauthToken
HangoutsChatBaseServiceRequest<Space>.PrettyPrint
HangoutsChatBaseServiceRequest<Space>.QuotaUser
HangoutsChatBaseServiceRequest<Space>.UploadType
HangoutsChatBaseServiceRequest<Space>.UploadProtocol
ClientServiceRequest<Space>.Execute()
ClientServiceRequest<Space>.ExecuteAsStream()
ClientServiceRequest<Space>.ExecuteAsync()
ClientServiceRequest<Space>.ExecuteAsync(CancellationToken)
ClientServiceRequest<Space>.ExecuteAsStreamAsync()
ClientServiceRequest<Space>.ExecuteAsStreamAsync(CancellationToken)
ClientServiceRequest<Space>.CreateRequest(bool?)
ClientServiceRequest<Space>.GenerateRequestUri()
ClientServiceRequest<Space>.GetBody()
ClientServiceRequest<Space>.GetDefaultETagAction(string)
ClientServiceRequest<Space>.ETagAction
ClientServiceRequest<Space>.ModifyRequest
ClientServiceRequest<Space>.ValidateParameters
ClientServiceRequest<Space>.ApiVersion
ClientServiceRequest<Space>.RequestParameters
ClientServiceRequest<Space>.Service
ClientServiceRequest._unsuccessfulResponseHandlers
ClientServiceRequest._exceptionHandlers
ClientServiceRequest._executeInterceptors
ClientServiceRequest.AddUnsuccessfulResponseHandler(IHttpUnsuccessfulResponseHandler)
ClientServiceRequest.AddExceptionHandler(IHttpExceptionHandler)
ClientServiceRequest.AddExecuteInterceptor(IHttpExecuteInterceptor)
ClientServiceRequest.Credential
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.HangoutsChat.v1
Assembly: Google.Apis.HangoutsChat.v1.dll
Syntax
public class SpacesResource.FindDirectMessageRequest : HangoutsChatBaseServiceRequest<Space>, IClientServiceRequest<Space>, IClientServiceRequest

Constructors

FindDirectMessageRequest(IClientService)

Constructs a new FindDirectMessage request.

Declaration
public FindDirectMessageRequest(IClientService service)
Parameters
Type Name Description
IClientService service

Properties

HttpMethod

Gets the HTTP method.

Declaration
public override string HttpMethod { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<Space>.HttpMethod

MethodName

Gets the method name.

Declaration
public override string MethodName { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<Space>.MethodName

Name

Required. Resource name of the user to find direct message with. Format: users/{user}, where {user} is either the id for the person from the People API, or the id for the user in the Directory API. For example, if the People API profile ID is 123456789, you can find a direct message with that person by using users/123456789 as the name. When authenticated as a user, you can use the email as an alias for {user}. For example, users/example@gmail.com where example@gmail.com is the email of the Google Chat user.

Declaration
[RequestParameter("name", RequestParameterType.Query)]
public virtual string Name { get; set; }
Property Value
Type Description
string

RestPath

Gets the REST path.

Declaration
public override string RestPath { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<Space>.RestPath

Methods

InitParameters()

Initializes FindDirectMessage parameter list.

Declaration
protected override void InitParameters()
Overrides
HangoutsChatBaseServiceRequest<Space>.InitParameters()

Implements

IClientServiceRequest<TResponse>
IClientServiceRequest
In this article
Back to top Generated by DocFX