Class PlayersResource
The "players" collection of methods.
Inherited Members
Namespace: Google.Apis.Games.v1
Assembly: Google.Apis.Games.v1.dll
Syntax
public class PlayersResource
Constructors
PlayersResource(IClientService)
Constructs a new resource.
Declaration
public PlayersResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Get(string)
Retrieves the Player resource with the given ID. To retrieve the player for the currently authenticated
user, set playerId
to me
.
Declaration
public virtual PlayersResource.GetRequest Get(string playerId)
Parameters
Type | Name | Description |
---|---|---|
string | playerId | A player ID. A value of |
Returns
Type | Description |
---|---|
PlayersResource.GetRequest |
GetMultipleApplicationPlayerIds()
Get the application player ids for the currently authenticated player across all requested games by the same developer as the calling application. This will only return ids for players that actually have an id (scoped or otherwise) with that game.
Declaration
public virtual PlayersResource.GetMultipleApplicationPlayerIdsRequest GetMultipleApplicationPlayerIds()
Returns
Type | Description |
---|---|
PlayersResource.GetMultipleApplicationPlayerIdsRequest |
GetScopedPlayerIds()
Retrieves scoped player identifiers for currently authenticated user.
Declaration
public virtual PlayersResource.GetScopedPlayerIdsRequest GetScopedPlayerIds()
Returns
Type | Description |
---|---|
PlayersResource.GetScopedPlayerIdsRequest |
List(CollectionEnum)
Get the collection of players for the currently authenticated user.
Declaration
public virtual PlayersResource.ListRequest List(PlayersResource.ListRequest.CollectionEnum collection)
Parameters
Type | Name | Description |
---|---|---|
PlayersResource.ListRequest.CollectionEnum | collection | Collection of players being retrieved |
Returns
Type | Description |
---|---|
PlayersResource.ListRequest |