Show / Hide Table of Contents

Class UsersResource.SpacesResource.UpdateSpaceReadStateRequest

Updates a user's read state within a space, used to identify read and unread messages. For an example, see Update a user's space read state. Requires user authentication with the authorization scope: - https://www.googleapis.com/auth/chat.users.readstate

Inheritance
object
ClientServiceRequest
ClientServiceRequest<SpaceReadState>
HangoutsChatBaseServiceRequest<SpaceReadState>
UsersResource.SpacesResource.UpdateSpaceReadStateRequest
Implements
IClientServiceRequest<SpaceReadState>
IClientServiceRequest
Inherited Members
HangoutsChatBaseServiceRequest<SpaceReadState>.Xgafv
HangoutsChatBaseServiceRequest<SpaceReadState>.AccessToken
HangoutsChatBaseServiceRequest<SpaceReadState>.Alt
HangoutsChatBaseServiceRequest<SpaceReadState>.Callback
HangoutsChatBaseServiceRequest<SpaceReadState>.Fields
HangoutsChatBaseServiceRequest<SpaceReadState>.Key
HangoutsChatBaseServiceRequest<SpaceReadState>.OauthToken
HangoutsChatBaseServiceRequest<SpaceReadState>.PrettyPrint
HangoutsChatBaseServiceRequest<SpaceReadState>.QuotaUser
HangoutsChatBaseServiceRequest<SpaceReadState>.UploadType
HangoutsChatBaseServiceRequest<SpaceReadState>.UploadProtocol
ClientServiceRequest<SpaceReadState>.Execute()
ClientServiceRequest<SpaceReadState>.ExecuteAsStream()
ClientServiceRequest<SpaceReadState>.ExecuteAsync()
ClientServiceRequest<SpaceReadState>.ExecuteAsync(CancellationToken)
ClientServiceRequest<SpaceReadState>.ExecuteAsStreamAsync()
ClientServiceRequest<SpaceReadState>.ExecuteAsStreamAsync(CancellationToken)
ClientServiceRequest<SpaceReadState>.CreateRequest(bool?)
ClientServiceRequest<SpaceReadState>.GenerateRequestUri()
ClientServiceRequest<SpaceReadState>.GetDefaultETagAction(string)
ClientServiceRequest<SpaceReadState>.ETagAction
ClientServiceRequest<SpaceReadState>.ModifyRequest
ClientServiceRequest<SpaceReadState>.ValidateParameters
ClientServiceRequest<SpaceReadState>.ApiVersion
ClientServiceRequest<SpaceReadState>.RequestParameters
ClientServiceRequest<SpaceReadState>.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 UsersResource.SpacesResource.UpdateSpaceReadStateRequest : HangoutsChatBaseServiceRequest<SpaceReadState>, IClientServiceRequest<SpaceReadState>, IClientServiceRequest

Constructors

UpdateSpaceReadStateRequest(IClientService, SpaceReadState, string)

Constructs a new UpdateSpaceReadState request.

Declaration
public UpdateSpaceReadStateRequest(IClientService service, SpaceReadState body, string name)
Parameters
Type Name Description
IClientService service
SpaceReadState body
string name

Properties

HttpMethod

Gets the HTTP method.

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

MethodName

Gets the method name.

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

Name

Resource name of the space read state. Format: users/{user}/spaces/{space}/spaceReadState

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
ClientServiceRequest<SpaceReadState>.RestPath

UpdateMask

Required. The field paths to update. Currently supported field paths: - last_read_time When the last_read_time is before the latest message create time, the space appears as unread in the UI. To mark the space as read, set last_read_time to any value later (larger) than the latest message create time. The last_read_time is coerced to match the latest message create time. Note that the space read state only affects the read state of messages that are visible in the space's top-level conversation. Replies in threads are unaffected by this timestamp, and instead rely on the thread read state.

Declaration
[RequestParameter("updateMask", RequestParameterType.Query)]
public virtual object UpdateMask { get; set; }
Property Value
Type Description
object

Methods

GetBody()

Returns the body of the request.

Declaration
protected override object GetBody()
Returns
Type Description
object
Overrides
ClientServiceRequest<SpaceReadState>.GetBody()

InitParameters()

Initializes UpdateSpaceReadState parameter list.

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

Implements

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