Class UsersResource.SpacesResource.ThreadsResource.UpdateThreadReadStateRequest
Updates a user's read state within a thread, used to identify read and unread messages. For an
example, see Update a user's thread read
state. Requires user
authentication with
the authorization
scope: -
https://www.googleapis.com/auth/chat.users.readstate
Inheritance
Inherited Members
Namespace: Google.Apis.HangoutsChat.v1
Assembly: Google.Apis.HangoutsChat.v1.dll
Syntax
public class UsersResource.SpacesResource.ThreadsResource.UpdateThreadReadStateRequest : HangoutsChatBaseServiceRequest<ThreadReadState>, IClientServiceRequest<ThreadReadState>, IClientServiceRequest
Constructors
UpdateThreadReadStateRequest(IClientService, ThreadReadState, string)
Constructs a new UpdateThreadReadState request.
Declaration
public UpdateThreadReadStateRequest(IClientService service, ThreadReadState body, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| ThreadReadState | 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
Resource name of the thread read state. Format:
users/{user}/spaces/{space}/threads/{thread}/threadReadState
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
UpdateMask
Required. The field paths to update. Currently supported field paths: - last_read_time When
last_read_time is before the latest message create time, the thread appears as unread in the
UI. To mark the thread as read, set last_read_time to a timestamp equal to or later than the
latest message create time. Future timestamps are coerced to the current request time. Setting a
negative timestamp (before 1970-01-01T00:00:00Z) returns an INVALID_ARGUMENT error.
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
InitParameters()
Initializes UpdateThreadReadState parameter list.
Declaration
protected override void InitParameters()