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.
Inheritance
Inherited Members
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
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
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
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
InitParameters()
Initializes UpdateSpaceReadState parameter list.
Declaration
protected override void InitParameters()