Initial commit

This commit is contained in:
Local Administrator
2025-04-18 10:32:42 +02:00
commit b83134aca3
29643 changed files with 3045897 additions and 0 deletions

View File

@@ -0,0 +1,61 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GamesManagement;
class AchievementResetAllResponse extends \Google\Collection
{
protected $collection_key = 'results';
/**
* @var string
*/
public $kind;
protected $resultsType = AchievementResetResponse::class;
protected $resultsDataType = 'array';
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param AchievementResetResponse[]
*/
public function setResults($results)
{
$this->results = $results;
}
/**
* @return AchievementResetResponse[]
*/
public function getResults()
{
return $this->results;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AchievementResetAllResponse::class, 'Google_Service_GamesManagement_AchievementResetAllResponse');

View File

@@ -0,0 +1,66 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GamesManagement;
class AchievementResetMultipleForAllRequest extends \Google\Collection
{
protected $collection_key = 'achievement_ids';
protected $internal_gapi_mappings = [
"achievementIds" => "achievement_ids",
];
/**
* @var string[]
*/
public $achievementIds;
/**
* @var string
*/
public $kind;
/**
* @param string[]
*/
public function setAchievementIds($achievementIds)
{
$this->achievementIds = $achievementIds;
}
/**
* @return string[]
*/
public function getAchievementIds()
{
return $this->achievementIds;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AchievementResetMultipleForAllRequest::class, 'Google_Service_GamesManagement_AchievementResetMultipleForAllRequest');

View File

@@ -0,0 +1,98 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GamesManagement;
class AchievementResetResponse extends \Google\Model
{
/**
* @var string
*/
public $currentState;
/**
* @var string
*/
public $definitionId;
/**
* @var string
*/
public $kind;
/**
* @var bool
*/
public $updateOccurred;
/**
* @param string
*/
public function setCurrentState($currentState)
{
$this->currentState = $currentState;
}
/**
* @return string
*/
public function getCurrentState()
{
return $this->currentState;
}
/**
* @param string
*/
public function setDefinitionId($definitionId)
{
$this->definitionId = $definitionId;
}
/**
* @return string
*/
public function getDefinitionId()
{
return $this->definitionId;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param bool
*/
public function setUpdateOccurred($updateOccurred)
{
$this->updateOccurred = $updateOccurred;
}
/**
* @return bool
*/
public function getUpdateOccurred()
{
return $this->updateOccurred;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AchievementResetResponse::class, 'Google_Service_GamesManagement_AchievementResetResponse');

View File

@@ -0,0 +1,66 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GamesManagement;
class EventsResetMultipleForAllRequest extends \Google\Collection
{
protected $collection_key = 'event_ids';
protected $internal_gapi_mappings = [
"eventIds" => "event_ids",
];
/**
* @var string[]
*/
public $eventIds;
/**
* @var string
*/
public $kind;
/**
* @param string[]
*/
public function setEventIds($eventIds)
{
$this->eventIds = $eventIds;
}
/**
* @return string[]
*/
public function getEventIds()
{
return $this->eventIds;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EventsResetMultipleForAllRequest::class, 'Google_Service_GamesManagement_EventsResetMultipleForAllRequest');

View File

@@ -0,0 +1,94 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GamesManagement;
class GamesPlayerExperienceInfoResource extends \Google\Model
{
/**
* @var string
*/
public $currentExperiencePoints;
protected $currentLevelType = GamesPlayerLevelResource::class;
protected $currentLevelDataType = '';
/**
* @var string
*/
public $lastLevelUpTimestampMillis;
protected $nextLevelType = GamesPlayerLevelResource::class;
protected $nextLevelDataType = '';
/**
* @param string
*/
public function setCurrentExperiencePoints($currentExperiencePoints)
{
$this->currentExperiencePoints = $currentExperiencePoints;
}
/**
* @return string
*/
public function getCurrentExperiencePoints()
{
return $this->currentExperiencePoints;
}
/**
* @param GamesPlayerLevelResource
*/
public function setCurrentLevel(GamesPlayerLevelResource $currentLevel)
{
$this->currentLevel = $currentLevel;
}
/**
* @return GamesPlayerLevelResource
*/
public function getCurrentLevel()
{
return $this->currentLevel;
}
/**
* @param string
*/
public function setLastLevelUpTimestampMillis($lastLevelUpTimestampMillis)
{
$this->lastLevelUpTimestampMillis = $lastLevelUpTimestampMillis;
}
/**
* @return string
*/
public function getLastLevelUpTimestampMillis()
{
return $this->lastLevelUpTimestampMillis;
}
/**
* @param GamesPlayerLevelResource
*/
public function setNextLevel(GamesPlayerLevelResource $nextLevel)
{
$this->nextLevel = $nextLevel;
}
/**
* @return GamesPlayerLevelResource
*/
public function getNextLevel()
{
return $this->nextLevel;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GamesPlayerExperienceInfoResource::class, 'Google_Service_GamesManagement_GamesPlayerExperienceInfoResource');

View File

@@ -0,0 +1,80 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GamesManagement;
class GamesPlayerLevelResource extends \Google\Model
{
/**
* @var int
*/
public $level;
/**
* @var string
*/
public $maxExperiencePoints;
/**
* @var string
*/
public $minExperiencePoints;
/**
* @param int
*/
public function setLevel($level)
{
$this->level = $level;
}
/**
* @return int
*/
public function getLevel()
{
return $this->level;
}
/**
* @param string
*/
public function setMaxExperiencePoints($maxExperiencePoints)
{
$this->maxExperiencePoints = $maxExperiencePoints;
}
/**
* @return string
*/
public function getMaxExperiencePoints()
{
return $this->maxExperiencePoints;
}
/**
* @param string
*/
public function setMinExperiencePoints($minExperiencePoints)
{
$this->minExperiencePoints = $minExperiencePoints;
}
/**
* @return string
*/
public function getMinExperiencePoints()
{
return $this->minExperiencePoints;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GamesPlayerLevelResource::class, 'Google_Service_GamesManagement_GamesPlayerLevelResource');

View File

@@ -0,0 +1,78 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GamesManagement;
class HiddenPlayer extends \Google\Model
{
/**
* @var string
*/
public $hiddenTimeMillis;
/**
* @var string
*/
public $kind;
protected $playerType = Player::class;
protected $playerDataType = '';
/**
* @param string
*/
public function setHiddenTimeMillis($hiddenTimeMillis)
{
$this->hiddenTimeMillis = $hiddenTimeMillis;
}
/**
* @return string
*/
public function getHiddenTimeMillis()
{
return $this->hiddenTimeMillis;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param Player
*/
public function setPlayer(Player $player)
{
$this->player = $player;
}
/**
* @return Player
*/
public function getPlayer()
{
return $this->player;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HiddenPlayer::class, 'Google_Service_GamesManagement_HiddenPlayer');

View File

@@ -0,0 +1,79 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GamesManagement;
class HiddenPlayerList extends \Google\Collection
{
protected $collection_key = 'items';
protected $itemsType = HiddenPlayer::class;
protected $itemsDataType = 'array';
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $nextPageToken;
/**
* @param HiddenPlayer[]
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return HiddenPlayer[]
*/
public function getItems()
{
return $this->items;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HiddenPlayerList::class, 'Google_Service_GamesManagement_HiddenPlayerList');

View File

@@ -0,0 +1,218 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GamesManagement;
class Player extends \Google\Model
{
/**
* @var string
*/
public $avatarImageUrl;
/**
* @var string
*/
public $bannerUrlLandscape;
/**
* @var string
*/
public $bannerUrlPortrait;
/**
* @var string
*/
public $displayName;
protected $experienceInfoType = GamesPlayerExperienceInfoResource::class;
protected $experienceInfoDataType = '';
/**
* @var string
*/
public $kind;
protected $nameType = PlayerName::class;
protected $nameDataType = '';
/**
* @var string
*/
public $originalPlayerId;
/**
* @var string
*/
public $playerId;
protected $profileSettingsType = ProfileSettings::class;
protected $profileSettingsDataType = '';
/**
* @var string
*/
public $title;
/**
* @param string
*/
public function setAvatarImageUrl($avatarImageUrl)
{
$this->avatarImageUrl = $avatarImageUrl;
}
/**
* @return string
*/
public function getAvatarImageUrl()
{
return $this->avatarImageUrl;
}
/**
* @param string
*/
public function setBannerUrlLandscape($bannerUrlLandscape)
{
$this->bannerUrlLandscape = $bannerUrlLandscape;
}
/**
* @return string
*/
public function getBannerUrlLandscape()
{
return $this->bannerUrlLandscape;
}
/**
* @param string
*/
public function setBannerUrlPortrait($bannerUrlPortrait)
{
$this->bannerUrlPortrait = $bannerUrlPortrait;
}
/**
* @return string
*/
public function getBannerUrlPortrait()
{
return $this->bannerUrlPortrait;
}
/**
* @param string
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* @param GamesPlayerExperienceInfoResource
*/
public function setExperienceInfo(GamesPlayerExperienceInfoResource $experienceInfo)
{
$this->experienceInfo = $experienceInfo;
}
/**
* @return GamesPlayerExperienceInfoResource
*/
public function getExperienceInfo()
{
return $this->experienceInfo;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param PlayerName
*/
public function setName(PlayerName $name)
{
$this->name = $name;
}
/**
* @return PlayerName
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setOriginalPlayerId($originalPlayerId)
{
$this->originalPlayerId = $originalPlayerId;
}
/**
* @return string
*/
public function getOriginalPlayerId()
{
return $this->originalPlayerId;
}
/**
* @param string
*/
public function setPlayerId($playerId)
{
$this->playerId = $playerId;
}
/**
* @return string
*/
public function getPlayerId()
{
return $this->playerId;
}
/**
* @param ProfileSettings
*/
public function setProfileSettings(ProfileSettings $profileSettings)
{
$this->profileSettings = $profileSettings;
}
/**
* @return ProfileSettings
*/
public function getProfileSettings()
{
return $this->profileSettings;
}
/**
* @param string
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Player::class, 'Google_Service_GamesManagement_Player');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GamesManagement;
class PlayerName extends \Google\Model
{
/**
* @var string
*/
public $familyName;
/**
* @var string
*/
public $givenName;
/**
* @param string
*/
public function setFamilyName($familyName)
{
$this->familyName = $familyName;
}
/**
* @return string
*/
public function getFamilyName()
{
return $this->familyName;
}
/**
* @param string
*/
public function setGivenName($givenName)
{
$this->givenName = $givenName;
}
/**
* @return string
*/
public function getGivenName()
{
return $this->givenName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PlayerName::class, 'Google_Service_GamesManagement_PlayerName');

View File

@@ -0,0 +1,61 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GamesManagement;
class PlayerScoreResetAllResponse extends \Google\Collection
{
protected $collection_key = 'results';
/**
* @var string
*/
public $kind;
protected $resultsType = PlayerScoreResetResponse::class;
protected $resultsDataType = 'array';
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param PlayerScoreResetResponse[]
*/
public function setResults($results)
{
$this->results = $results;
}
/**
* @return PlayerScoreResetResponse[]
*/
public function getResults()
{
return $this->results;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PlayerScoreResetAllResponse::class, 'Google_Service_GamesManagement_PlayerScoreResetAllResponse');

View File

@@ -0,0 +1,81 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GamesManagement;
class PlayerScoreResetResponse extends \Google\Collection
{
protected $collection_key = 'resetScoreTimeSpans';
/**
* @var string
*/
public $definitionId;
/**
* @var string
*/
public $kind;
/**
* @var string[]
*/
public $resetScoreTimeSpans;
/**
* @param string
*/
public function setDefinitionId($definitionId)
{
$this->definitionId = $definitionId;
}
/**
* @return string
*/
public function getDefinitionId()
{
return $this->definitionId;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string[]
*/
public function setResetScoreTimeSpans($resetScoreTimeSpans)
{
$this->resetScoreTimeSpans = $resetScoreTimeSpans;
}
/**
* @return string[]
*/
public function getResetScoreTimeSpans()
{
return $this->resetScoreTimeSpans;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PlayerScoreResetResponse::class, 'Google_Service_GamesManagement_PlayerScoreResetResponse');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GamesManagement;
class ProfileSettings extends \Google\Model
{
/**
* @var string
*/
public $kind;
/**
* @var bool
*/
public $profileVisible;
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param bool
*/
public function setProfileVisible($profileVisible)
{
$this->profileVisible = $profileVisible;
}
/**
* @return bool
*/
public function getProfileVisible()
{
return $this->profileVisible;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProfileSettings::class, 'Google_Service_GamesManagement_ProfileSettings');

View File

@@ -0,0 +1,112 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GamesManagement\Resource;
use Google\Service\GamesManagement\AchievementResetAllResponse;
use Google\Service\GamesManagement\AchievementResetMultipleForAllRequest;
use Google\Service\GamesManagement\AchievementResetResponse;
/**
* The "achievements" collection of methods.
* Typical usage is:
* <code>
* $gamesManagementService = new Google\Service\GamesManagement(...);
* $achievements = $gamesManagementService->achievements;
* </code>
*/
class Achievements extends \Google\Service\Resource
{
/**
* Resets the achievement with the given ID for the currently authenticated
* player. This method is only accessible to whitelisted tester accounts for
* your application. (achievements.reset)
*
* @param string $achievementId The ID of the achievement used by this method.
* @param array $optParams Optional parameters.
* @return AchievementResetResponse
* @throws \Google\Service\Exception
*/
public function reset($achievementId, $optParams = [])
{
$params = ['achievementId' => $achievementId];
$params = array_merge($params, $optParams);
return $this->call('reset', [$params], AchievementResetResponse::class);
}
/**
* Resets all achievements for the currently authenticated player for your
* application. This method is only accessible to whitelisted tester accounts
* for your application. (achievements.resetAll)
*
* @param array $optParams Optional parameters.
* @return AchievementResetAllResponse
* @throws \Google\Service\Exception
*/
public function resetAll($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('resetAll', [$params], AchievementResetAllResponse::class);
}
/**
* Resets all draft achievements for all players. This method is only available
* to user accounts for your developer console.
* (achievements.resetAllForAllPlayers)
*
* @param array $optParams Optional parameters.
* @throws \Google\Service\Exception
*/
public function resetAllForAllPlayers($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('resetAllForAllPlayers', [$params]);
}
/**
* Resets the achievement with the given ID for all players. This method is only
* available to user accounts for your developer console. Only draft
* achievements can be reset. (achievements.resetForAllPlayers)
*
* @param string $achievementId The ID of the achievement used by this method.
* @param array $optParams Optional parameters.
* @throws \Google\Service\Exception
*/
public function resetForAllPlayers($achievementId, $optParams = [])
{
$params = ['achievementId' => $achievementId];
$params = array_merge($params, $optParams);
return $this->call('resetForAllPlayers', [$params]);
}
/**
* Resets achievements with the given IDs for all players. This method is only
* available to user accounts for your developer console. Only draft
* achievements may be reset. (achievements.resetMultipleForAllPlayers)
*
* @param AchievementResetMultipleForAllRequest $postBody
* @param array $optParams Optional parameters.
* @throws \Google\Service\Exception
*/
public function resetMultipleForAllPlayers(AchievementResetMultipleForAllRequest $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('resetMultipleForAllPlayers', [$params]);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Achievements::class, 'Google_Service_GamesManagement_Resource_Achievements');

View File

@@ -0,0 +1,57 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GamesManagement\Resource;
use Google\Service\GamesManagement\HiddenPlayerList;
/**
* The "applications" collection of methods.
* Typical usage is:
* <code>
* $gamesManagementService = new Google\Service\GamesManagement(...);
* $applications = $gamesManagementService->applications;
* </code>
*/
class Applications extends \Google\Service\Resource
{
/**
* Get the list of players hidden from the given application. This method is
* only available to user accounts for your developer console.
* (applications.listHidden)
*
* @param string $applicationId The application ID from the Google Play
* developer console.
* @param array $optParams Optional parameters.
*
* @opt_param int maxResults The maximum number of player resources to return in
* the response, used for paging. For any response, the actual number of player
* resources returned may be less than the specified `maxResults`.
* @opt_param string pageToken The token returned by the previous request.
* @return HiddenPlayerList
* @throws \Google\Service\Exception
*/
public function listHidden($applicationId, $optParams = [])
{
$params = ['applicationId' => $applicationId];
$params = array_merge($params, $optParams);
return $this->call('listHidden', [$params], HiddenPlayerList::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Applications::class, 'Google_Service_GamesManagement_Resource_Applications');

View File

@@ -0,0 +1,107 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GamesManagement\Resource;
use Google\Service\GamesManagement\EventsResetMultipleForAllRequest;
/**
* The "events" collection of methods.
* Typical usage is:
* <code>
* $gamesManagementService = new Google\Service\GamesManagement(...);
* $events = $gamesManagementService->events;
* </code>
*/
class Events extends \Google\Service\Resource
{
/**
* Resets all player progress on the event with the given ID for the currently
* authenticated player. This method is only accessible to whitelisted tester
* accounts for your application. (events.reset)
*
* @param string $eventId The ID of the event.
* @param array $optParams Optional parameters.
* @throws \Google\Service\Exception
*/
public function reset($eventId, $optParams = [])
{
$params = ['eventId' => $eventId];
$params = array_merge($params, $optParams);
return $this->call('reset', [$params]);
}
/**
* Resets all player progress on all events for the currently authenticated
* player. This method is only accessible to whitelisted tester accounts for
* your application. (events.resetAll)
*
* @param array $optParams Optional parameters.
* @throws \Google\Service\Exception
*/
public function resetAll($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('resetAll', [$params]);
}
/**
* Resets all draft events for all players. This method is only available to
* user accounts for your developer console. (events.resetAllForAllPlayers)
*
* @param array $optParams Optional parameters.
* @throws \Google\Service\Exception
*/
public function resetAllForAllPlayers($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('resetAllForAllPlayers', [$params]);
}
/**
* Resets the event with the given ID for all players. This method is only
* available to user accounts for your developer console. Only draft events can
* be reset. (events.resetForAllPlayers)
*
* @param string $eventId The ID of the event.
* @param array $optParams Optional parameters.
* @throws \Google\Service\Exception
*/
public function resetForAllPlayers($eventId, $optParams = [])
{
$params = ['eventId' => $eventId];
$params = array_merge($params, $optParams);
return $this->call('resetForAllPlayers', [$params]);
}
/**
* Resets events with the given IDs for all players. This method is only
* available to user accounts for your developer console. Only draft events may
* be reset. (events.resetMultipleForAllPlayers)
*
* @param EventsResetMultipleForAllRequest $postBody
* @param array $optParams Optional parameters.
* @throws \Google\Service\Exception
*/
public function resetMultipleForAllPlayers(EventsResetMultipleForAllRequest $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('resetMultipleForAllPlayers', [$params]);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Events::class, 'Google_Service_GamesManagement_Resource_Events');

View File

@@ -0,0 +1,69 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GamesManagement\Resource;
/**
* The "players" collection of methods.
* Typical usage is:
* <code>
* $gamesManagementService = new Google\Service\GamesManagement(...);
* $players = $gamesManagementService->players;
* </code>
*/
class Players extends \Google\Service\Resource
{
/**
* Hide the given player's leaderboard scores from the given application. This
* method is only available to user accounts for your developer console.
* (players.hide)
*
* @param string $applicationId The application ID from the Google Play
* developer console.
* @param string $playerId A player ID. A value of `me` may be used in place of
* the authenticated player's ID.
* @param array $optParams Optional parameters.
* @throws \Google\Service\Exception
*/
public function hide($applicationId, $playerId, $optParams = [])
{
$params = ['applicationId' => $applicationId, 'playerId' => $playerId];
$params = array_merge($params, $optParams);
return $this->call('hide', [$params]);
}
/**
* Unhide the given player's leaderboard scores from the given application. This
* method is only available to user accounts for your developer console.
* (players.unhide)
*
* @param string $applicationId The application ID from the Google Play
* developer console.
* @param string $playerId A player ID. A value of `me` may be used in place of
* the authenticated player's ID.
* @param array $optParams Optional parameters.
* @throws \Google\Service\Exception
*/
public function unhide($applicationId, $playerId, $optParams = [])
{
$params = ['applicationId' => $applicationId, 'playerId' => $playerId];
$params = array_merge($params, $optParams);
return $this->call('unhide', [$params]);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Players::class, 'Google_Service_GamesManagement_Resource_Players');

View File

@@ -0,0 +1,112 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GamesManagement\Resource;
use Google\Service\GamesManagement\PlayerScoreResetAllResponse;
use Google\Service\GamesManagement\PlayerScoreResetResponse;
use Google\Service\GamesManagement\ScoresResetMultipleForAllRequest;
/**
* The "scores" collection of methods.
* Typical usage is:
* <code>
* $gamesManagementService = new Google\Service\GamesManagement(...);
* $scores = $gamesManagementService->scores;
* </code>
*/
class Scores extends \Google\Service\Resource
{
/**
* Resets scores for the leaderboard with the given ID for the currently
* authenticated player. This method is only accessible to whitelisted tester
* accounts for your application. (scores.reset)
*
* @param string $leaderboardId The ID of the leaderboard.
* @param array $optParams Optional parameters.
* @return PlayerScoreResetResponse
* @throws \Google\Service\Exception
*/
public function reset($leaderboardId, $optParams = [])
{
$params = ['leaderboardId' => $leaderboardId];
$params = array_merge($params, $optParams);
return $this->call('reset', [$params], PlayerScoreResetResponse::class);
}
/**
* Resets all scores for all leaderboards for the currently authenticated
* players. This method is only accessible to whitelisted tester accounts for
* your application. (scores.resetAll)
*
* @param array $optParams Optional parameters.
* @return PlayerScoreResetAllResponse
* @throws \Google\Service\Exception
*/
public function resetAll($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('resetAll', [$params], PlayerScoreResetAllResponse::class);
}
/**
* Resets scores for all draft leaderboards for all players. This method is only
* available to user accounts for your developer console.
* (scores.resetAllForAllPlayers)
*
* @param array $optParams Optional parameters.
* @throws \Google\Service\Exception
*/
public function resetAllForAllPlayers($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('resetAllForAllPlayers', [$params]);
}
/**
* Resets scores for the leaderboard with the given ID for all players. This
* method is only available to user accounts for your developer console. Only
* draft leaderboards can be reset. (scores.resetForAllPlayers)
*
* @param string $leaderboardId The ID of the leaderboard.
* @param array $optParams Optional parameters.
* @throws \Google\Service\Exception
*/
public function resetForAllPlayers($leaderboardId, $optParams = [])
{
$params = ['leaderboardId' => $leaderboardId];
$params = array_merge($params, $optParams);
return $this->call('resetForAllPlayers', [$params]);
}
/**
* Resets scores for the leaderboards with the given IDs for all players. This
* method is only available to user accounts for your developer console. Only
* draft leaderboards may be reset. (scores.resetMultipleForAllPlayers)
*
* @param ScoresResetMultipleForAllRequest $postBody
* @param array $optParams Optional parameters.
* @throws \Google\Service\Exception
*/
public function resetMultipleForAllPlayers(ScoresResetMultipleForAllRequest $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('resetMultipleForAllPlayers', [$params]);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Scores::class, 'Google_Service_GamesManagement_Resource_Scores');

View File

@@ -0,0 +1,66 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\GamesManagement;
class ScoresResetMultipleForAllRequest extends \Google\Collection
{
protected $collection_key = 'leaderboard_ids';
protected $internal_gapi_mappings = [
"leaderboardIds" => "leaderboard_ids",
];
/**
* @var string
*/
public $kind;
/**
* @var string[]
*/
public $leaderboardIds;
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string[]
*/
public function setLeaderboardIds($leaderboardIds)
{
$this->leaderboardIds = $leaderboardIds;
}
/**
* @return string[]
*/
public function getLeaderboardIds()
{
return $this->leaderboardIds;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ScoresResetMultipleForAllRequest::class, 'Google_Service_GamesManagement_ScoresResetMultipleForAllRequest');