Skip to content

Commit 395a607

Browse files
committed
Updated Games.php
1 parent 6333ad0 commit 395a607

1 file changed

Lines changed: 160 additions & 0 deletions

File tree

src/Google/Service/Games.php

Lines changed: 160 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,24 @@ public function __construct(Google_Client $client)
269269
'required' => true,
270270
),
271271
),
272+
),'list' => array(
273+
'path' => 'players/me/players/{collection}',
274+
'httpMethod' => 'GET',
275+
'parameters' => array(
276+
'collection' => array(
277+
'location' => 'path',
278+
'type' => 'string',
279+
'required' => true,
280+
),
281+
'pageToken' => array(
282+
'location' => 'query',
283+
'type' => 'string',
284+
),
285+
'maxResults' => array(
286+
'location' => 'query',
287+
'type' => 'integer',
288+
),
289+
),
272290
),
273291
)
274292
)
@@ -1048,6 +1066,28 @@ public function get($playerId, $optParams = array())
10481066
$params = array_merge($params, $optParams);
10491067
return $this->call('get', array($params), "Google_Service_Games_Player");
10501068
}
1069+
/**
1070+
* Get the collection of players for the currently authenticated user.
1071+
* (players.listPlayers)
1072+
*
1073+
* @param string $collection
1074+
* Collection of players being retrieved
1075+
* @param array $optParams Optional parameters.
1076+
*
1077+
* @opt_param string pageToken
1078+
* The token returned by the previous request.
1079+
* @opt_param int maxResults
1080+
* The maximum number of player resources to return in the response, used for paging. For any
1081+
* response, the actual number of player resources returned may be less than the specified
1082+
* maxResults.
1083+
* @return Google_Service_Games_PlayerListResponse
1084+
*/
1085+
public function listPlayers($collection, $optParams = array())
1086+
{
1087+
$params = array('collection' => $collection);
1088+
$params = array_merge($params, $optParams);
1089+
return $this->call('list', array($params), "Google_Service_Games_PlayerListResponse");
1090+
}
10511091
}
10521092

10531093
/**
@@ -3387,11 +3427,50 @@ public function getUnreliableChannel()
33873427
}
33883428
}
33893429

3430+
class Google_Service_Games_Played extends Google_Model
3431+
{
3432+
public $autoMatched;
3433+
public $kind;
3434+
public $timeMillis;
3435+
3436+
public function setAutoMatched($autoMatched)
3437+
{
3438+
$this->autoMatched = $autoMatched;
3439+
}
3440+
3441+
public function getAutoMatched()
3442+
{
3443+
return $this->autoMatched;
3444+
}
3445+
3446+
public function setKind($kind)
3447+
{
3448+
$this->kind = $kind;
3449+
}
3450+
3451+
public function getKind()
3452+
{
3453+
return $this->kind;
3454+
}
3455+
3456+
public function setTimeMillis($timeMillis)
3457+
{
3458+
$this->timeMillis = $timeMillis;
3459+
}
3460+
3461+
public function getTimeMillis()
3462+
{
3463+
return $this->timeMillis;
3464+
}
3465+
}
3466+
33903467
class Google_Service_Games_Player extends Google_Model
33913468
{
33923469
public $avatarImageUrl;
33933470
public $displayName;
33943471
public $kind;
3472+
protected $lastPlayedWithType = 'Google_Service_Games_Played';
3473+
protected $lastPlayedWithDataType = '';
33953474
public $playerId;
33963475

33973476
public function setAvatarImageUrl($avatarImageUrl)
@@ -3424,6 +3503,16 @@ public function getKind()
34243503
return $this->kind;
34253504
}
34263505

3506+
public function setLastPlayedWith(Google_Service_Games_Played $lastPlayedWith)
3507+
{
3508+
$this->lastPlayedWith = $lastPlayedWith;
3509+
}
3510+
3511+
public function getLastPlayedWith()
3512+
{
3513+
return $this->lastPlayedWith;
3514+
}
3515+
34273516
public function setPlayerId($playerId)
34283517
{
34293518
$this->playerId = $playerId;
@@ -3698,6 +3787,44 @@ public function getPlayer()
36983787
}
36993788
}
37003789

3790+
class Google_Service_Games_PlayerListResponse extends Google_Collection
3791+
{
3792+
protected $itemsType = 'Google_Service_Games_Player';
3793+
protected $itemsDataType = 'array';
3794+
public $kind;
3795+
public $nextPageToken;
3796+
3797+
public function setItems($items)
3798+
{
3799+
$this->items = $items;
3800+
}
3801+
3802+
public function getItems()
3803+
{
3804+
return $this->items;
3805+
}
3806+
3807+
public function setKind($kind)
3808+
{
3809+
$this->kind = $kind;
3810+
}
3811+
3812+
public function getKind()
3813+
{
3814+
return $this->kind;
3815+
}
3816+
3817+
public function setNextPageToken($nextPageToken)
3818+
{
3819+
$this->nextPageToken = $nextPageToken;
3820+
}
3821+
3822+
public function getNextPageToken()
3823+
{
3824+
return $this->nextPageToken;
3825+
}
3826+
}
3827+
37013828
class Google_Service_Games_PlayerScore extends Google_Model
37023829
{
37033830
public $formattedScore;
@@ -4171,6 +4298,7 @@ class Google_Service_Games_RoomCreateRequest extends Google_Collection
41714298
public $kind;
41724299
protected $networkDiagnosticsType = 'Google_Service_Games_NetworkDiagnostics';
41734300
protected $networkDiagnosticsDataType = '';
4301+
public $requestId;
41744302
public $variant;
41754303

41764304
public function setAutoMatchingCriteria(Google_Service_Games_RoomAutoMatchingCriteria $autoMatchingCriteria)
@@ -4233,6 +4361,16 @@ public function getNetworkDiagnostics()
42334361
return $this->networkDiagnostics;
42344362
}
42354363

4364+
public function setRequestId($requestId)
4365+
{
4366+
$this->requestId = $requestId;
4367+
}
4368+
4369+
public function getRequestId()
4370+
{
4371+
return $this->requestId;
4372+
}
4373+
42364374
public function setVariant($variant)
42374375
{
42384376
$this->variant = $variant;
@@ -4577,6 +4715,7 @@ public function getUpdates()
45774715

45784716
class Google_Service_Games_RoomParticipant extends Google_Collection
45794717
{
4718+
public $autoMatched;
45804719
protected $autoMatchedPlayerType = 'Google_Service_Games_AnonymousPlayer';
45814720
protected $autoMatchedPlayerDataType = '';
45824721
public $capabilities;
@@ -4590,6 +4729,16 @@ class Google_Service_Games_RoomParticipant extends Google_Collection
45904729
protected $playerDataType = '';
45914730
public $status;
45924731

4732+
public function setAutoMatched($autoMatched)
4733+
{
4734+
$this->autoMatched = $autoMatched;
4735+
}
4736+
4737+
public function getAutoMatched()
4738+
{
4739+
return $this->autoMatched;
4740+
}
4741+
45934742
public function setAutoMatchedPlayer(Google_Service_Games_AnonymousPlayer $autoMatchedPlayer)
45944743
{
45954744
$this->autoMatchedPlayer = $autoMatchedPlayer;
@@ -5247,6 +5396,7 @@ public function getParticipantId()
52475396

52485397
class Google_Service_Games_TurnBasedMatchParticipant extends Google_Model
52495398
{
5399+
public $autoMatched;
52505400
protected $autoMatchedPlayerType = 'Google_Service_Games_AnonymousPlayer';
52515401
protected $autoMatchedPlayerDataType = '';
52525402
public $id;
@@ -5255,6 +5405,16 @@ class Google_Service_Games_TurnBasedMatchParticipant extends Google_Model
52555405
protected $playerDataType = '';
52565406
public $status;
52575407

5408+
public function setAutoMatched($autoMatched)
5409+
{
5410+
$this->autoMatched = $autoMatched;
5411+
}
5412+
5413+
public function getAutoMatched()
5414+
{
5415+
return $this->autoMatched;
5416+
}
5417+
52585418
public function setAutoMatchedPlayer(Google_Service_Games_AnonymousPlayer $autoMatchedPlayer)
52595419
{
52605420
$this->autoMatchedPlayer = $autoMatchedPlayer;

0 commit comments

Comments
 (0)