target.apidocs.com.google.api.services.chat.v1.HangoutsChat.Users.Spaces.html Maven / Gradle / Ivy
HangoutsChat.Users.Spaces (Google Chat API v1-rev20240829-2.0.0)
com.google.api.services.chat.v1
Class HangoutsChat.Users.Spaces
- java.lang.Object
-
- com.google.api.services.chat.v1.HangoutsChat.Users.Spaces
-
- Enclosing class:
- HangoutsChat.Users
public class HangoutsChat.Users.Spaces
extends Object
The "spaces" collection of methods.
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
HangoutsChat.Users.Spaces.GetSpaceReadState
class
HangoutsChat.Users.Spaces.Threads
The "threads" collection of methods.
class
HangoutsChat.Users.Spaces.UpdateSpaceReadState
-
Constructor Summary
Constructors
Constructor and Description
Spaces()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
HangoutsChat.Users.Spaces.GetSpaceReadState
getSpaceReadState(String name)
Returns details about a user's read state within a space, used to identify read and unread
messages.
HangoutsChat.Users.Spaces.Threads
threads()
An accessor for creating requests from the Threads collection.
HangoutsChat.Users.Spaces.UpdateSpaceReadState
updateSpaceReadState(String name,
SpaceReadState content)
Updates a user's read state within a space, used to identify read and unread messages.
-
-
Method Detail
-
getSpaceReadState
public HangoutsChat.Users.Spaces.GetSpaceReadState getSpaceReadState(String name)
throws IOException
Returns details about a user's read state within a space, used to identify read and unread
messages. For an example, see [Get details about a user's space read
state](https://developers.google.com/workspace/chat/get-space-read-state). Requires [user
authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
Create a request for the method "spaces.getSpaceReadState".
This request holds the parameters needed by the chat server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
name
- Required. Resource name of the space read state to retrieve. Only supports getting read state for
the calling user. To refer to the calling user, set one of the following: - The `me`
alias. For example, `users/me/spaces/{space}/spaceReadState`. - Their Workspace email
address. For example, `users/[email protected]/spaces/{space}/spaceReadState`. - Their user
id. For example, `users/123456789/spaces/{space}/spaceReadState`. Format:
users/{user}/spaces/{space}/spaceReadState
- Returns:
- the request
- Throws:
IOException
-
updateSpaceReadState
public HangoutsChat.Users.Spaces.UpdateSpaceReadState updateSpaceReadState(String name,
SpaceReadState content)
throws IOException
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](https://developers.google.com/workspace/chat/update-space-read-state). Requires [user
authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
Create a request for the method "spaces.updateSpaceReadState".
This request holds the parameters needed by the chat server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote
operation.
- Parameters:
name
- Resource name of the space read state. Format: `users/{user}/spaces/{space}/spaceReadState`
content
- the SpaceReadState
- Returns:
- the request
- Throws:
IOException
-
threads
public HangoutsChat.Users.Spaces.Threads threads()
An accessor for creating requests from the Threads collection.
The typical use is:
HangoutsChat chat = new HangoutsChat(...);
HangoutsChat.Threads.List request = chat.threads().list(parameters ...)
- Returns:
- the resource collection
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2024 Weber Informatics LLC | Privacy Policy