Class RoomsResource
The "rooms" collection of methods.
Inheritance
Namespace: Google.Apis.Games.v1
Assembly: Google.Apis.Games.v1.dll
Syntax
public class RoomsResource : object
Constructors
RoomsResource(IClientService)
Constructs a new resource.
Declaration
public RoomsResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Methods
Create(RoomCreateRequest)
Create a room. For internal use by the Games SDK only. Calling this method directly is unsupported.
Declaration
public virtual RoomsResource.CreateRequest Create(RoomCreateRequest body)
Parameters
| Type | Name | Description |
|---|---|---|
| RoomCreateRequest | body | The body of the request. |
Returns
| Type | Description |
|---|---|
| RoomsResource.CreateRequest |
Decline(String)
Decline an invitation to join a room. For internal use by the Games SDK only. Calling this method directly is unsupported.
Declaration
public virtual RoomsResource.DeclineRequest Decline(string roomId)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | roomId | The ID of the room. |
Returns
| Type | Description |
|---|---|
| RoomsResource.DeclineRequest |
Dismiss(String)
Dismiss an invitation to join a room. For internal use by the Games SDK only. Calling this method directly is unsupported.
Declaration
public virtual RoomsResource.DismissRequest Dismiss(string roomId)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | roomId | The ID of the room. |
Returns
| Type | Description |
|---|---|
| RoomsResource.DismissRequest |
Get(String)
Get the data for a room.
Declaration
public virtual RoomsResource.GetRequest Get(string roomId)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | roomId | The ID of the room. |
Returns
| Type | Description |
|---|---|
| RoomsResource.GetRequest |
Join(RoomJoinRequest, String)
Join a room. For internal use by the Games SDK only. Calling this method directly is unsupported.
Declaration
public virtual RoomsResource.JoinRequest Join(RoomJoinRequest body, string roomId)
Parameters
| Type | Name | Description |
|---|---|---|
| RoomJoinRequest | body | The body of the request. |
| System.String | roomId | The ID of the room. |
Returns
| Type | Description |
|---|---|
| RoomsResource.JoinRequest |
Leave(RoomLeaveRequest, String)
Leave a room. For internal use by the Games SDK only. Calling this method directly is unsupported.
Declaration
public virtual RoomsResource.LeaveRequest Leave(RoomLeaveRequest body, string roomId)
Parameters
| Type | Name | Description |
|---|---|---|
| RoomLeaveRequest | body | The body of the request. |
| System.String | roomId | The ID of the room. |
Returns
| Type | Description |
|---|---|
| RoomsResource.LeaveRequest |
List()
Returns invitations to join rooms.
Declaration
public virtual RoomsResource.ListRequest List()
Returns
| Type | Description |
|---|---|
| RoomsResource.ListRequest |
ReportStatus(RoomP2PStatuses, String)
Updates sent by a client reporting the status of peers in a room. For internal use by the Games SDK only. Calling this method directly is unsupported.
Declaration
public virtual RoomsResource.ReportStatusRequest ReportStatus(RoomP2PStatuses body, string roomId)
Parameters
| Type | Name | Description |
|---|---|---|
| RoomP2PStatuses | body | The body of the request. |
| System.String | roomId | The ID of the room. |
Returns
| Type | Description |
|---|---|
| RoomsResource.ReportStatusRequest |