Skip to content

Commit 3ec54fb

Browse files
committed
Updated GamesManagement.php
1 parent e4e67e5 commit 3ec54fb

File tree

1 file changed

+88
-0
lines changed

1 file changed

+88
-0
lines changed

src/Google/Service/GamesManagement.php

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,16 @@ public function __construct(Google_Client $client)
7676
'path' => 'achievements/reset',
7777
'httpMethod' => 'POST',
7878
'parameters' => array(),
79+
),'resetForAllPlayers' => array(
80+
'path' => 'achievements/{achievementId}/resetForAllPlayers',
81+
'httpMethod' => 'POST',
82+
'parameters' => array(
83+
'achievementId' => array(
84+
'location' => 'path',
85+
'type' => 'string',
86+
'required' => true,
87+
),
88+
),
7989
),
8090
)
8191
)
@@ -178,6 +188,16 @@ public function __construct(Google_Client $client)
178188
'required' => true,
179189
),
180190
),
191+
),'resetForAllPlayers' => array(
192+
'path' => 'leaderboards/{leaderboardId}/scores/resetForAllPlayers',
193+
'httpMethod' => 'POST',
194+
'parameters' => array(
195+
'leaderboardId' => array(
196+
'location' => 'path',
197+
'type' => 'string',
198+
'required' => true,
199+
),
200+
),
181201
),
182202
)
183203
)
@@ -241,6 +261,21 @@ public function resetAll($optParams = array())
241261
$params = array_merge($params, $optParams);
242262
return $this->call('resetAll', array($params), "Google_Service_GamesManagement_AchievementResetAllResponse");
243263
}
264+
/**
265+
* Resets the achievement with the given ID for the all players. This method is
266+
* only available to user accounts for your developer console. Only draft
267+
* achievements can be reset. (achievements.resetForAllPlayers)
268+
*
269+
* @param string $achievementId
270+
* The ID of the achievement used by this method.
271+
* @param array $optParams Optional parameters.
272+
*/
273+
public function resetForAllPlayers($achievementId, $optParams = array())
274+
{
275+
$params = array('achievementId' => $achievementId);
276+
$params = array_merge($params, $optParams);
277+
return $this->call('resetForAllPlayers', array($params));
278+
}
244279
}
245280

246281
/**
@@ -379,6 +414,21 @@ public function reset($leaderboardId, $optParams = array())
379414
$params = array_merge($params, $optParams);
380415
return $this->call('reset', array($params), "Google_Service_GamesManagement_PlayerScoreResetResponse");
381416
}
417+
/**
418+
* Reset scores for the specified leaderboard for all players. This method is
419+
* only available to user accounts for your developer console. Only draft
420+
* leaderboards can be reset. (scores.resetForAllPlayers)
421+
*
422+
* @param string $leaderboardId
423+
* The ID of the leaderboard.
424+
* @param array $optParams Optional parameters.
425+
*/
426+
public function resetForAllPlayers($leaderboardId, $optParams = array())
427+
{
428+
$params = array('leaderboardId' => $leaderboardId);
429+
$params = array_merge($params, $optParams);
430+
return $this->call('resetForAllPlayers', array($params));
431+
}
382432
}
383433

384434
/**
@@ -593,6 +643,8 @@ class Google_Service_GamesManagement_Player extends Google_Model
593643
public $kind;
594644
protected $lastPlayedWithType = 'Google_Service_GamesManagement_GamesPlayedResource';
595645
protected $lastPlayedWithDataType = '';
646+
protected $nameType = 'Google_Service_GamesManagement_PlayerName';
647+
protected $nameDataType = '';
596648
public $playerId;
597649

598650
public function setAvatarImageUrl($avatarImageUrl)
@@ -635,6 +687,16 @@ public function getLastPlayedWith()
635687
return $this->lastPlayedWith;
636688
}
637689

690+
public function setName(Google_Service_GamesManagement_PlayerName $name)
691+
{
692+
$this->name = $name;
693+
}
694+
695+
public function getName()
696+
{
697+
return $this->name;
698+
}
699+
638700
public function setPlayerId($playerId)
639701
{
640702
$this->playerId = $playerId;
@@ -646,6 +708,32 @@ public function getPlayerId()
646708
}
647709
}
648710

711+
class Google_Service_GamesManagement_PlayerName extends Google_Model
712+
{
713+
public $familyName;
714+
public $givenName;
715+
716+
public function setFamilyName($familyName)
717+
{
718+
$this->familyName = $familyName;
719+
}
720+
721+
public function getFamilyName()
722+
{
723+
return $this->familyName;
724+
}
725+
726+
public function setGivenName($givenName)
727+
{
728+
$this->givenName = $givenName;
729+
}
730+
731+
public function getGivenName()
732+
{
733+
return $this->givenName;
734+
}
735+
}
736+
649737
class Google_Service_GamesManagement_PlayerScoreResetResponse extends Google_Collection
650738
{
651739
public $kind;

0 commit comments

Comments
 (0)