All Downloads are FREE. Search and download functionalities are using the official Maven repository.

target.apidocs.com.google.api.services.chat.v1.HangoutsChat.Users.Spaces.html Maven / Gradle / Ivy

There is a newer version: v1-rev20241217-2.0.0
Show newest version






HangoutsChat.Users.Spaces (Google Chat API v1-rev20240829-2.0.0)












com.google.api.services.chat.v1

Class HangoutsChat.Users.Spaces

  • Enclosing class:
    HangoutsChat.Users


    public class HangoutsChat.Users.Spaces
    extends Object
    The "spaces" collection of methods.
    • Constructor Detail

      • Spaces

        public Spaces()
    • 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