Class SpacesResource.MessagePinsResource
The "messagePins" collection of methods.
Inherited Members
Namespace: Google.Apis.HangoutsChat.v1
Assembly: Google.Apis.HangoutsChat.v1.dll
Syntax
public class SpacesResource.MessagePinsResource
Constructors
MessagePinsResource(IClientService)
Constructs a new resource.
Declaration
public MessagePinsResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Methods
Create(MessagePin, string)
Creates a message pin. Requires user
authentication with one
of the following authorization
scopes: -
https://www.googleapis.com/auth/chat.spaces.pins - https://www.googleapis.com/auth/chat.spaces
Declaration
public virtual SpacesResource.MessagePinsResource.CreateRequest Create(MessagePin body, string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| MessagePin | body | The body of the request. |
| string | parent | Required. The parent space in which to create the message pin. Format: spaces/{space} |
Returns
| Type | Description |
|---|---|
| SpacesResource.MessagePinsResource.CreateRequest |
Delete(string)
Deletes a message pin. Requires user
authentication with one
of the following authorization
scopes: -
https://www.googleapis.com/auth/chat.spaces.pins - https://www.googleapis.com/auth/chat.spaces
Declaration
public virtual SpacesResource.MessagePinsResource.DeleteRequest Delete(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Required. The resource name of the message pin to remove. Format: spaces/{space}/messagePins/{message_pin} |
Returns
| Type | Description |
|---|---|
| SpacesResource.MessagePinsResource.DeleteRequest |
List(string)
Lists message pins in a space. Users can pin important messages in spaces for easy access. For more
information, see Pin or unpin a conversation in Google
Chat. Requires user
authentication with one
of the following authorization
scopes: -
https://www.googleapis.com/auth/chat.spaces.pins.readonly -
https://www.googleapis.com/auth/chat.spaces.pins -
https://www.googleapis.com/auth/chat.spaces.readonly - https://www.googleapis.com/auth/chat.spaces
Declaration
public virtual SpacesResource.MessagePinsResource.ListRequest List(string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| string | parent | Required. The parent space which owns the collection of pinned items Format: |
Returns
| Type | Description |
|---|---|
| SpacesResource.MessagePinsResource.ListRequest |