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,260 @@
<?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\Games;
class AchievementDefinition extends \Google\Model
{
/**
* @var string
*/
public $achievementType;
/**
* @var string
*/
public $description;
/**
* @var string
*/
public $experiencePoints;
/**
* @var string
*/
public $formattedTotalSteps;
/**
* @var string
*/
public $id;
/**
* @var string
*/
public $initialState;
/**
* @var bool
*/
public $isRevealedIconUrlDefault;
/**
* @var bool
*/
public $isUnlockedIconUrlDefault;
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $revealedIconUrl;
/**
* @var int
*/
public $totalSteps;
/**
* @var string
*/
public $unlockedIconUrl;
/**
* @param string
*/
public function setAchievementType($achievementType)
{
$this->achievementType = $achievementType;
}
/**
* @return string
*/
public function getAchievementType()
{
return $this->achievementType;
}
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string
*/
public function setExperiencePoints($experiencePoints)
{
$this->experiencePoints = $experiencePoints;
}
/**
* @return string
*/
public function getExperiencePoints()
{
return $this->experiencePoints;
}
/**
* @param string
*/
public function setFormattedTotalSteps($formattedTotalSteps)
{
$this->formattedTotalSteps = $formattedTotalSteps;
}
/**
* @return string
*/
public function getFormattedTotalSteps()
{
return $this->formattedTotalSteps;
}
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param string
*/
public function setInitialState($initialState)
{
$this->initialState = $initialState;
}
/**
* @return string
*/
public function getInitialState()
{
return $this->initialState;
}
/**
* @param bool
*/
public function setIsRevealedIconUrlDefault($isRevealedIconUrlDefault)
{
$this->isRevealedIconUrlDefault = $isRevealedIconUrlDefault;
}
/**
* @return bool
*/
public function getIsRevealedIconUrlDefault()
{
return $this->isRevealedIconUrlDefault;
}
/**
* @param bool
*/
public function setIsUnlockedIconUrlDefault($isUnlockedIconUrlDefault)
{
$this->isUnlockedIconUrlDefault = $isUnlockedIconUrlDefault;
}
/**
* @return bool
*/
public function getIsUnlockedIconUrlDefault()
{
return $this->isUnlockedIconUrlDefault;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setRevealedIconUrl($revealedIconUrl)
{
$this->revealedIconUrl = $revealedIconUrl;
}
/**
* @return string
*/
public function getRevealedIconUrl()
{
return $this->revealedIconUrl;
}
/**
* @param int
*/
public function setTotalSteps($totalSteps)
{
$this->totalSteps = $totalSteps;
}
/**
* @return int
*/
public function getTotalSteps()
{
return $this->totalSteps;
}
/**
* @param string
*/
public function setUnlockedIconUrl($unlockedIconUrl)
{
$this->unlockedIconUrl = $unlockedIconUrl;
}
/**
* @return string
*/
public function getUnlockedIconUrl()
{
return $this->unlockedIconUrl;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AchievementDefinition::class, 'Google_Service_Games_AchievementDefinition');

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\Games;
class AchievementDefinitionsListResponse extends \Google\Collection
{
protected $collection_key = 'items';
protected $itemsType = AchievementDefinition::class;
protected $itemsDataType = 'array';
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $nextPageToken;
/**
* @param AchievementDefinition[]
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return AchievementDefinition[]
*/
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(AchievementDefinitionsListResponse::class, 'Google_Service_Games_AchievementDefinitionsListResponse');

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\Games;
class AchievementIncrementResponse extends \Google\Model
{
/**
* @var int
*/
public $currentSteps;
/**
* @var string
*/
public $kind;
/**
* @var bool
*/
public $newlyUnlocked;
/**
* @param int
*/
public function setCurrentSteps($currentSteps)
{
$this->currentSteps = $currentSteps;
}
/**
* @return int
*/
public function getCurrentSteps()
{
return $this->currentSteps;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param bool
*/
public function setNewlyUnlocked($newlyUnlocked)
{
$this->newlyUnlocked = $newlyUnlocked;
}
/**
* @return bool
*/
public function getNewlyUnlocked()
{
return $this->newlyUnlocked;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AchievementIncrementResponse::class, 'Google_Service_Games_AchievementIncrementResponse');

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\Games;
class AchievementRevealResponse extends \Google\Model
{
/**
* @var string
*/
public $currentState;
/**
* @var string
*/
public $kind;
/**
* @param string
*/
public function setCurrentState($currentState)
{
$this->currentState = $currentState;
}
/**
* @return string
*/
public function getCurrentState()
{
return $this->currentState;
}
/**
* @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(AchievementRevealResponse::class, 'Google_Service_Games_AchievementRevealResponse');

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\Games;
class AchievementSetStepsAtLeastResponse extends \Google\Model
{
/**
* @var int
*/
public $currentSteps;
/**
* @var string
*/
public $kind;
/**
* @var bool
*/
public $newlyUnlocked;
/**
* @param int
*/
public function setCurrentSteps($currentSteps)
{
$this->currentSteps = $currentSteps;
}
/**
* @return int
*/
public function getCurrentSteps()
{
return $this->currentSteps;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param bool
*/
public function setNewlyUnlocked($newlyUnlocked)
{
$this->newlyUnlocked = $newlyUnlocked;
}
/**
* @return bool
*/
public function getNewlyUnlocked()
{
return $this->newlyUnlocked;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AchievementSetStepsAtLeastResponse::class, 'Google_Service_Games_AchievementSetStepsAtLeastResponse');

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\Games;
class AchievementUnlockResponse extends \Google\Model
{
/**
* @var string
*/
public $kind;
/**
* @var bool
*/
public $newlyUnlocked;
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param bool
*/
public function setNewlyUnlocked($newlyUnlocked)
{
$this->newlyUnlocked = $newlyUnlocked;
}
/**
* @return bool
*/
public function getNewlyUnlocked()
{
return $this->newlyUnlocked;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AchievementUnlockResponse::class, 'Google_Service_Games_AchievementUnlockResponse');

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\Games;
class AchievementUpdateMultipleRequest extends \Google\Collection
{
protected $collection_key = 'updates';
/**
* @var string
*/
public $kind;
protected $updatesType = AchievementUpdateRequest::class;
protected $updatesDataType = 'array';
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param AchievementUpdateRequest[]
*/
public function setUpdates($updates)
{
$this->updates = $updates;
}
/**
* @return AchievementUpdateRequest[]
*/
public function getUpdates()
{
return $this->updates;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AchievementUpdateMultipleRequest::class, 'Google_Service_Games_AchievementUpdateMultipleRequest');

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\Games;
class AchievementUpdateMultipleResponse extends \Google\Collection
{
protected $collection_key = 'updatedAchievements';
/**
* @var string
*/
public $kind;
protected $updatedAchievementsType = AchievementUpdateResponse::class;
protected $updatedAchievementsDataType = 'array';
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param AchievementUpdateResponse[]
*/
public function setUpdatedAchievements($updatedAchievements)
{
$this->updatedAchievements = $updatedAchievements;
}
/**
* @return AchievementUpdateResponse[]
*/
public function getUpdatedAchievements()
{
return $this->updatedAchievements;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AchievementUpdateMultipleResponse::class, 'Google_Service_Games_AchievementUpdateMultipleResponse');

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\Games;
class AchievementUpdateRequest extends \Google\Model
{
/**
* @var string
*/
public $achievementId;
protected $incrementPayloadType = GamesAchievementIncrement::class;
protected $incrementPayloadDataType = '';
/**
* @var string
*/
public $kind;
protected $setStepsAtLeastPayloadType = GamesAchievementSetStepsAtLeast::class;
protected $setStepsAtLeastPayloadDataType = '';
/**
* @var string
*/
public $updateType;
/**
* @param string
*/
public function setAchievementId($achievementId)
{
$this->achievementId = $achievementId;
}
/**
* @return string
*/
public function getAchievementId()
{
return $this->achievementId;
}
/**
* @param GamesAchievementIncrement
*/
public function setIncrementPayload(GamesAchievementIncrement $incrementPayload)
{
$this->incrementPayload = $incrementPayload;
}
/**
* @return GamesAchievementIncrement
*/
public function getIncrementPayload()
{
return $this->incrementPayload;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param GamesAchievementSetStepsAtLeast
*/
public function setSetStepsAtLeastPayload(GamesAchievementSetStepsAtLeast $setStepsAtLeastPayload)
{
$this->setStepsAtLeastPayload = $setStepsAtLeastPayload;
}
/**
* @return GamesAchievementSetStepsAtLeast
*/
public function getSetStepsAtLeastPayload()
{
return $this->setStepsAtLeastPayload;
}
/**
* @param string
*/
public function setUpdateType($updateType)
{
$this->updateType = $updateType;
}
/**
* @return string
*/
public function getUpdateType()
{
return $this->updateType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AchievementUpdateRequest::class, 'Google_Service_Games_AchievementUpdateRequest');

View File

@@ -0,0 +1,134 @@
<?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\Games;
class AchievementUpdateResponse extends \Google\Model
{
/**
* @var string
*/
public $achievementId;
/**
* @var string
*/
public $currentState;
/**
* @var int
*/
public $currentSteps;
/**
* @var string
*/
public $kind;
/**
* @var bool
*/
public $newlyUnlocked;
/**
* @var bool
*/
public $updateOccurred;
/**
* @param string
*/
public function setAchievementId($achievementId)
{
$this->achievementId = $achievementId;
}
/**
* @return string
*/
public function getAchievementId()
{
return $this->achievementId;
}
/**
* @param string
*/
public function setCurrentState($currentState)
{
$this->currentState = $currentState;
}
/**
* @return string
*/
public function getCurrentState()
{
return $this->currentState;
}
/**
* @param int
*/
public function setCurrentSteps($currentSteps)
{
$this->currentSteps = $currentSteps;
}
/**
* @return int
*/
public function getCurrentSteps()
{
return $this->currentSteps;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param bool
*/
public function setNewlyUnlocked($newlyUnlocked)
{
$this->newlyUnlocked = $newlyUnlocked;
}
/**
* @return bool
*/
public function getNewlyUnlocked()
{
return $this->newlyUnlocked;
}
/**
* @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(AchievementUpdateResponse::class, 'Google_Service_Games_AchievementUpdateResponse');

View File

@@ -0,0 +1,259 @@
<?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\Games;
class Application extends \Google\Collection
{
protected $collection_key = 'instances';
protected $internal_gapi_mappings = [
"achievementCount" => "achievement_count",
"leaderboardCount" => "leaderboard_count",
];
/**
* @var int
*/
public $achievementCount;
protected $assetsType = ImageAsset::class;
protected $assetsDataType = 'array';
/**
* @var string
*/
public $author;
protected $categoryType = ApplicationCategory::class;
protected $categoryDataType = '';
/**
* @var string
*/
public $description;
/**
* @var string[]
*/
public $enabledFeatures;
/**
* @var string
*/
public $id;
protected $instancesType = Instance::class;
protected $instancesDataType = 'array';
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $lastUpdatedTimestamp;
/**
* @var int
*/
public $leaderboardCount;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $themeColor;
/**
* @param int
*/
public function setAchievementCount($achievementCount)
{
$this->achievementCount = $achievementCount;
}
/**
* @return int
*/
public function getAchievementCount()
{
return $this->achievementCount;
}
/**
* @param ImageAsset[]
*/
public function setAssets($assets)
{
$this->assets = $assets;
}
/**
* @return ImageAsset[]
*/
public function getAssets()
{
return $this->assets;
}
/**
* @param string
*/
public function setAuthor($author)
{
$this->author = $author;
}
/**
* @return string
*/
public function getAuthor()
{
return $this->author;
}
/**
* @param ApplicationCategory
*/
public function setCategory(ApplicationCategory $category)
{
$this->category = $category;
}
/**
* @return ApplicationCategory
*/
public function getCategory()
{
return $this->category;
}
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string[]
*/
public function setEnabledFeatures($enabledFeatures)
{
$this->enabledFeatures = $enabledFeatures;
}
/**
* @return string[]
*/
public function getEnabledFeatures()
{
return $this->enabledFeatures;
}
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param Instance[]
*/
public function setInstances($instances)
{
$this->instances = $instances;
}
/**
* @return Instance[]
*/
public function getInstances()
{
return $this->instances;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setLastUpdatedTimestamp($lastUpdatedTimestamp)
{
$this->lastUpdatedTimestamp = $lastUpdatedTimestamp;
}
/**
* @return string
*/
public function getLastUpdatedTimestamp()
{
return $this->lastUpdatedTimestamp;
}
/**
* @param int
*/
public function setLeaderboardCount($leaderboardCount)
{
$this->leaderboardCount = $leaderboardCount;
}
/**
* @return int
*/
public function getLeaderboardCount()
{
return $this->leaderboardCount;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setThemeColor($themeColor)
{
$this->themeColor = $themeColor;
}
/**
* @return string
*/
public function getThemeColor()
{
return $this->themeColor;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Application::class, 'Google_Service_Games_Application');

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\Games;
class ApplicationCategory extends \Google\Model
{
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $primary;
/**
* @var string
*/
public $secondary;
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setPrimary($primary)
{
$this->primary = $primary;
}
/**
* @return string
*/
public function getPrimary()
{
return $this->primary;
}
/**
* @param string
*/
public function setSecondary($secondary)
{
$this->secondary = $secondary;
}
/**
* @return string
*/
public function getSecondary()
{
return $this->secondary;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ApplicationCategory::class, 'Google_Service_Games_ApplicationCategory');

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\Games;
class ApplicationPlayerId extends \Google\Model
{
/**
* @var string
*/
public $applicationId;
/**
* @var string
*/
public $playerId;
/**
* @param string
*/
public function setApplicationId($applicationId)
{
$this->applicationId = $applicationId;
}
/**
* @return string
*/
public function getApplicationId()
{
return $this->applicationId;
}
/**
* @param string
*/
public function setPlayerId($playerId)
{
$this->playerId = $playerId;
}
/**
* @return string
*/
public function getPlayerId()
{
return $this->playerId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ApplicationPlayerId::class, 'Google_Service_Games_ApplicationPlayerId');

View File

@@ -0,0 +1,84 @@
<?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\Games;
class ApplicationVerifyResponse extends \Google\Model
{
protected $internal_gapi_mappings = [
"alternatePlayerId" => "alternate_player_id",
"playerId" => "player_id",
];
/**
* @var string
*/
public $alternatePlayerId;
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $playerId;
/**
* @param string
*/
public function setAlternatePlayerId($alternatePlayerId)
{
$this->alternatePlayerId = $alternatePlayerId;
}
/**
* @return string
*/
public function getAlternatePlayerId()
{
return $this->alternatePlayerId;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setPlayerId($playerId)
{
$this->playerId = $playerId;
}
/**
* @return string
*/
public function getPlayerId()
{
return $this->playerId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ApplicationVerifyResponse::class, 'Google_Service_Games_ApplicationVerifyResponse');

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\Games;
class Category extends \Google\Model
{
/**
* @var string
*/
public $category;
/**
* @var string
*/
public $experiencePoints;
/**
* @var string
*/
public $kind;
/**
* @param string
*/
public function setCategory($category)
{
$this->category = $category;
}
/**
* @return string
*/
public function getCategory()
{
return $this->category;
}
/**
* @param string
*/
public function setExperiencePoints($experiencePoints)
{
$this->experiencePoints = $experiencePoints;
}
/**
* @return string
*/
public function getExperiencePoints()
{
return $this->experiencePoints;
}
/**
* @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(Category::class, 'Google_Service_Games_Category');

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\Games;
class CategoryListResponse extends \Google\Collection
{
protected $collection_key = 'items';
protected $itemsType = Category::class;
protected $itemsDataType = 'array';
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $nextPageToken;
/**
* @param Category[]
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return Category[]
*/
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(CategoryListResponse::class, 'Google_Service_Games_CategoryListResponse');

View File

@@ -0,0 +1,44 @@
<?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\Games;
class EndPoint extends \Google\Model
{
/**
* @var string
*/
public $url;
/**
* @param string
*/
public function setUrl($url)
{
$this->url = $url;
}
/**
* @return string
*/
public function getUrl()
{
return $this->url;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EndPoint::class, 'Google_Service_Games_EndPoint');

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\Games;
class EventBatchRecordFailure extends \Google\Model
{
/**
* @var string
*/
public $failureCause;
/**
* @var string
*/
public $kind;
protected $rangeType = EventPeriodRange::class;
protected $rangeDataType = '';
/**
* @param string
*/
public function setFailureCause($failureCause)
{
$this->failureCause = $failureCause;
}
/**
* @return string
*/
public function getFailureCause()
{
return $this->failureCause;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param EventPeriodRange
*/
public function setRange(EventPeriodRange $range)
{
$this->range = $range;
}
/**
* @return EventPeriodRange
*/
public function getRange()
{
return $this->range;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EventBatchRecordFailure::class, 'Google_Service_Games_EventBatchRecordFailure');

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\Games;
class EventChild extends \Google\Model
{
/**
* @var string
*/
public $childId;
/**
* @var string
*/
public $kind;
/**
* @param string
*/
public function setChildId($childId)
{
$this->childId = $childId;
}
/**
* @return string
*/
public function getChildId()
{
return $this->childId;
}
/**
* @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(EventChild::class, 'Google_Service_Games_EventChild');

View File

@@ -0,0 +1,169 @@
<?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\Games;
class EventDefinition extends \Google\Collection
{
protected $collection_key = 'childEvents';
protected $childEventsType = EventChild::class;
protected $childEventsDataType = 'array';
/**
* @var string
*/
public $description;
/**
* @var string
*/
public $displayName;
/**
* @var string
*/
public $id;
/**
* @var string
*/
public $imageUrl;
/**
* @var bool
*/
public $isDefaultImageUrl;
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $visibility;
/**
* @param EventChild[]
*/
public function setChildEvents($childEvents)
{
$this->childEvents = $childEvents;
}
/**
* @return EventChild[]
*/
public function getChildEvents()
{
return $this->childEvents;
}
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param string
*/
public function setImageUrl($imageUrl)
{
$this->imageUrl = $imageUrl;
}
/**
* @return string
*/
public function getImageUrl()
{
return $this->imageUrl;
}
/**
* @param bool
*/
public function setIsDefaultImageUrl($isDefaultImageUrl)
{
$this->isDefaultImageUrl = $isDefaultImageUrl;
}
/**
* @return bool
*/
public function getIsDefaultImageUrl()
{
return $this->isDefaultImageUrl;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setVisibility($visibility)
{
$this->visibility = $visibility;
}
/**
* @return string
*/
public function getVisibility()
{
return $this->visibility;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EventDefinition::class, 'Google_Service_Games_EventDefinition');

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\Games;
class EventDefinitionListResponse extends \Google\Collection
{
protected $collection_key = 'items';
protected $itemsType = EventDefinition::class;
protected $itemsDataType = 'array';
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $nextPageToken;
/**
* @param EventDefinition[]
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return EventDefinition[]
*/
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(EventDefinitionListResponse::class, 'Google_Service_Games_EventDefinitionListResponse');

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\Games;
class EventPeriodRange extends \Google\Model
{
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $periodEndMillis;
/**
* @var string
*/
public $periodStartMillis;
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setPeriodEndMillis($periodEndMillis)
{
$this->periodEndMillis = $periodEndMillis;
}
/**
* @return string
*/
public function getPeriodEndMillis()
{
return $this->periodEndMillis;
}
/**
* @param string
*/
public function setPeriodStartMillis($periodStartMillis)
{
$this->periodStartMillis = $periodStartMillis;
}
/**
* @return string
*/
public function getPeriodStartMillis()
{
return $this->periodStartMillis;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EventPeriodRange::class, 'Google_Service_Games_EventPeriodRange');

View File

@@ -0,0 +1,77 @@
<?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\Games;
class EventPeriodUpdate extends \Google\Collection
{
protected $collection_key = 'updates';
/**
* @var string
*/
public $kind;
protected $timePeriodType = EventPeriodRange::class;
protected $timePeriodDataType = '';
protected $updatesType = EventUpdateRequest::class;
protected $updatesDataType = 'array';
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param EventPeriodRange
*/
public function setTimePeriod(EventPeriodRange $timePeriod)
{
$this->timePeriod = $timePeriod;
}
/**
* @return EventPeriodRange
*/
public function getTimePeriod()
{
return $this->timePeriod;
}
/**
* @param EventUpdateRequest[]
*/
public function setUpdates($updates)
{
$this->updates = $updates;
}
/**
* @return EventUpdateRequest[]
*/
public function getUpdates()
{
return $this->updates;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EventPeriodUpdate::class, 'Google_Service_Games_EventPeriodUpdate');

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\Games;
class EventRecordFailure extends \Google\Model
{
/**
* @var string
*/
public $eventId;
/**
* @var string
*/
public $failureCause;
/**
* @var string
*/
public $kind;
/**
* @param string
*/
public function setEventId($eventId)
{
$this->eventId = $eventId;
}
/**
* @return string
*/
public function getEventId()
{
return $this->eventId;
}
/**
* @param string
*/
public function setFailureCause($failureCause)
{
$this->failureCause = $failureCause;
}
/**
* @return string
*/
public function getFailureCause()
{
return $this->failureCause;
}
/**
* @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(EventRecordFailure::class, 'Google_Service_Games_EventRecordFailure');

View File

@@ -0,0 +1,97 @@
<?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\Games;
class EventRecordRequest extends \Google\Collection
{
protected $collection_key = 'timePeriods';
/**
* @var string
*/
public $currentTimeMillis;
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $requestId;
protected $timePeriodsType = EventPeriodUpdate::class;
protected $timePeriodsDataType = 'array';
/**
* @param string
*/
public function setCurrentTimeMillis($currentTimeMillis)
{
$this->currentTimeMillis = $currentTimeMillis;
}
/**
* @return string
*/
public function getCurrentTimeMillis()
{
return $this->currentTimeMillis;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setRequestId($requestId)
{
$this->requestId = $requestId;
}
/**
* @return string
*/
public function getRequestId()
{
return $this->requestId;
}
/**
* @param EventPeriodUpdate[]
*/
public function setTimePeriods($timePeriods)
{
$this->timePeriods = $timePeriods;
}
/**
* @return EventPeriodUpdate[]
*/
public function getTimePeriods()
{
return $this->timePeriods;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EventRecordRequest::class, 'Google_Service_Games_EventRecordRequest');

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\Games;
class EventUpdateRequest extends \Google\Model
{
/**
* @var string
*/
public $definitionId;
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $updateCount;
/**
* @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 setUpdateCount($updateCount)
{
$this->updateCount = $updateCount;
}
/**
* @return string
*/
public function getUpdateCount()
{
return $this->updateCount;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EventUpdateRequest::class, 'Google_Service_Games_EventUpdateRequest');

View File

@@ -0,0 +1,93 @@
<?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\Games;
class EventUpdateResponse extends \Google\Collection
{
protected $collection_key = 'playerEvents';
protected $batchFailuresType = EventBatchRecordFailure::class;
protected $batchFailuresDataType = 'array';
protected $eventFailuresType = EventRecordFailure::class;
protected $eventFailuresDataType = 'array';
/**
* @var string
*/
public $kind;
protected $playerEventsType = PlayerEvent::class;
protected $playerEventsDataType = 'array';
/**
* @param EventBatchRecordFailure[]
*/
public function setBatchFailures($batchFailures)
{
$this->batchFailures = $batchFailures;
}
/**
* @return EventBatchRecordFailure[]
*/
public function getBatchFailures()
{
return $this->batchFailures;
}
/**
* @param EventRecordFailure[]
*/
public function setEventFailures($eventFailures)
{
$this->eventFailures = $eventFailures;
}
/**
* @return EventRecordFailure[]
*/
public function getEventFailures()
{
return $this->eventFailures;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param PlayerEvent[]
*/
public function setPlayerEvents($playerEvents)
{
$this->playerEvents = $playerEvents;
}
/**
* @return PlayerEvent[]
*/
public function getPlayerEvents()
{
return $this->playerEvents;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EventUpdateResponse::class, 'Google_Service_Games_EventUpdateResponse');

View File

@@ -0,0 +1,60 @@
<?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\Games;
class GamePlayerToken extends \Google\Model
{
/**
* @var string
*/
public $applicationId;
protected $recallTokenType = RecallToken::class;
protected $recallTokenDataType = '';
/**
* @param string
*/
public function setApplicationId($applicationId)
{
$this->applicationId = $applicationId;
}
/**
* @return string
*/
public function getApplicationId()
{
return $this->applicationId;
}
/**
* @param RecallToken
*/
public function setRecallToken(RecallToken $recallToken)
{
$this->recallToken = $recallToken;
}
/**
* @return RecallToken
*/
public function getRecallToken()
{
return $this->recallToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GamePlayerToken::class, 'Google_Service_Games_GamePlayerToken');

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\Games;
class GamesAchievementIncrement extends \Google\Model
{
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $requestId;
/**
* @var int
*/
public $steps;
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setRequestId($requestId)
{
$this->requestId = $requestId;
}
/**
* @return string
*/
public function getRequestId()
{
return $this->requestId;
}
/**
* @param int
*/
public function setSteps($steps)
{
$this->steps = $steps;
}
/**
* @return int
*/
public function getSteps()
{
return $this->steps;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GamesAchievementIncrement::class, 'Google_Service_Games_GamesAchievementIncrement');

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\Games;
class GamesAchievementSetStepsAtLeast extends \Google\Model
{
/**
* @var string
*/
public $kind;
/**
* @var int
*/
public $steps;
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param int
*/
public function setSteps($steps)
{
$this->steps = $steps;
}
/**
* @return int
*/
public function getSteps()
{
return $this->steps;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GamesAchievementSetStepsAtLeast::class, 'Google_Service_Games_GamesAchievementSetStepsAtLeast');

View File

@@ -0,0 +1,42 @@
<?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\Games;
class GeneratePlayGroupingApiTokenResponse extends \Google\Model
{
protected $tokenType = PlayGroupingApiToken::class;
protected $tokenDataType = '';
/**
* @param PlayGroupingApiToken
*/
public function setToken(PlayGroupingApiToken $token)
{
$this->token = $token;
}
/**
* @return PlayGroupingApiToken
*/
public function getToken()
{
return $this->token;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GeneratePlayGroupingApiTokenResponse::class, 'Google_Service_Games_GeneratePlayGroupingApiTokenResponse');

View File

@@ -0,0 +1,42 @@
<?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\Games;
class GenerateRecallPlayGroupingApiTokenResponse extends \Google\Model
{
protected $tokenType = PlayGroupingApiToken::class;
protected $tokenDataType = '';
/**
* @param PlayGroupingApiToken
*/
public function setToken(PlayGroupingApiToken $token)
{
$this->token = $token;
}
/**
* @return PlayGroupingApiToken
*/
public function getToken()
{
return $this->token;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GenerateRecallPlayGroupingApiTokenResponse::class, 'Google_Service_Games_GenerateRecallPlayGroupingApiTokenResponse');

View File

@@ -0,0 +1,43 @@
<?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\Games;
class GetMultipleApplicationPlayerIdsResponse extends \Google\Collection
{
protected $collection_key = 'playerIds';
protected $playerIdsType = ApplicationPlayerId::class;
protected $playerIdsDataType = 'array';
/**
* @param ApplicationPlayerId[]
*/
public function setPlayerIds($playerIds)
{
$this->playerIds = $playerIds;
}
/**
* @return ApplicationPlayerId[]
*/
public function getPlayerIds()
{
return $this->playerIds;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GetMultipleApplicationPlayerIdsResponse::class, 'Google_Service_Games_GetMultipleApplicationPlayerIdsResponse');

View File

@@ -0,0 +1,116 @@
<?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\Games;
class ImageAsset extends \Google\Model
{
/**
* @var int
*/
public $height;
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $url;
/**
* @var int
*/
public $width;
/**
* @param int
*/
public function setHeight($height)
{
$this->height = $height;
}
/**
* @return int
*/
public function getHeight()
{
return $this->height;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setUrl($url)
{
$this->url = $url;
}
/**
* @return string
*/
public function getUrl()
{
return $this->url;
}
/**
* @param int
*/
public function setWidth($width)
{
$this->width = $width;
}
/**
* @return int
*/
public function getWidth()
{
return $this->width;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ImageAsset::class, 'Google_Service_Games_ImageAsset');

View File

@@ -0,0 +1,182 @@
<?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\Games;
class Instance extends \Google\Model
{
/**
* @var string
*/
public $acquisitionUri;
protected $androidInstanceType = InstanceAndroidDetails::class;
protected $androidInstanceDataType = '';
protected $iosInstanceType = InstanceIosDetails::class;
protected $iosInstanceDataType = '';
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $platformType;
/**
* @var bool
*/
public $realtimePlay;
/**
* @var bool
*/
public $turnBasedPlay;
protected $webInstanceType = InstanceWebDetails::class;
protected $webInstanceDataType = '';
/**
* @param string
*/
public function setAcquisitionUri($acquisitionUri)
{
$this->acquisitionUri = $acquisitionUri;
}
/**
* @return string
*/
public function getAcquisitionUri()
{
return $this->acquisitionUri;
}
/**
* @param InstanceAndroidDetails
*/
public function setAndroidInstance(InstanceAndroidDetails $androidInstance)
{
$this->androidInstance = $androidInstance;
}
/**
* @return InstanceAndroidDetails
*/
public function getAndroidInstance()
{
return $this->androidInstance;
}
/**
* @param InstanceIosDetails
*/
public function setIosInstance(InstanceIosDetails $iosInstance)
{
$this->iosInstance = $iosInstance;
}
/**
* @return InstanceIosDetails
*/
public function getIosInstance()
{
return $this->iosInstance;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setPlatformType($platformType)
{
$this->platformType = $platformType;
}
/**
* @return string
*/
public function getPlatformType()
{
return $this->platformType;
}
/**
* @param bool
*/
public function setRealtimePlay($realtimePlay)
{
$this->realtimePlay = $realtimePlay;
}
/**
* @return bool
*/
public function getRealtimePlay()
{
return $this->realtimePlay;
}
/**
* @param bool
*/
public function setTurnBasedPlay($turnBasedPlay)
{
$this->turnBasedPlay = $turnBasedPlay;
}
/**
* @return bool
*/
public function getTurnBasedPlay()
{
return $this->turnBasedPlay;
}
/**
* @param InstanceWebDetails
*/
public function setWebInstance(InstanceWebDetails $webInstance)
{
$this->webInstance = $webInstance;
}
/**
* @return InstanceWebDetails
*/
public function getWebInstance()
{
return $this->webInstance;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Instance::class, 'Google_Service_Games_Instance');

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\Games;
class InstanceAndroidDetails extends \Google\Model
{
/**
* @var bool
*/
public $enablePiracyCheck;
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $packageName;
/**
* @var bool
*/
public $preferred;
/**
* @param bool
*/
public function setEnablePiracyCheck($enablePiracyCheck)
{
$this->enablePiracyCheck = $enablePiracyCheck;
}
/**
* @return bool
*/
public function getEnablePiracyCheck()
{
return $this->enablePiracyCheck;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setPackageName($packageName)
{
$this->packageName = $packageName;
}
/**
* @return string
*/
public function getPackageName()
{
return $this->packageName;
}
/**
* @param bool
*/
public function setPreferred($preferred)
{
$this->preferred = $preferred;
}
/**
* @return bool
*/
public function getPreferred()
{
return $this->preferred;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InstanceAndroidDetails::class, 'Google_Service_Games_InstanceAndroidDetails');

View File

@@ -0,0 +1,152 @@
<?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\Games;
class InstanceIosDetails extends \Google\Model
{
/**
* @var string
*/
public $bundleIdentifier;
/**
* @var string
*/
public $itunesAppId;
/**
* @var string
*/
public $kind;
/**
* @var bool
*/
public $preferredForIpad;
/**
* @var bool
*/
public $preferredForIphone;
/**
* @var bool
*/
public $supportIpad;
/**
* @var bool
*/
public $supportIphone;
/**
* @param string
*/
public function setBundleIdentifier($bundleIdentifier)
{
$this->bundleIdentifier = $bundleIdentifier;
}
/**
* @return string
*/
public function getBundleIdentifier()
{
return $this->bundleIdentifier;
}
/**
* @param string
*/
public function setItunesAppId($itunesAppId)
{
$this->itunesAppId = $itunesAppId;
}
/**
* @return string
*/
public function getItunesAppId()
{
return $this->itunesAppId;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param bool
*/
public function setPreferredForIpad($preferredForIpad)
{
$this->preferredForIpad = $preferredForIpad;
}
/**
* @return bool
*/
public function getPreferredForIpad()
{
return $this->preferredForIpad;
}
/**
* @param bool
*/
public function setPreferredForIphone($preferredForIphone)
{
$this->preferredForIphone = $preferredForIphone;
}
/**
* @return bool
*/
public function getPreferredForIphone()
{
return $this->preferredForIphone;
}
/**
* @param bool
*/
public function setSupportIpad($supportIpad)
{
$this->supportIpad = $supportIpad;
}
/**
* @return bool
*/
public function getSupportIpad()
{
return $this->supportIpad;
}
/**
* @param bool
*/
public function setSupportIphone($supportIphone)
{
$this->supportIphone = $supportIphone;
}
/**
* @return bool
*/
public function getSupportIphone()
{
return $this->supportIphone;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InstanceIosDetails::class, 'Google_Service_Games_InstanceIosDetails');

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\Games;
class InstanceWebDetails extends \Google\Model
{
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $launchUrl;
/**
* @var bool
*/
public $preferred;
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setLaunchUrl($launchUrl)
{
$this->launchUrl = $launchUrl;
}
/**
* @return string
*/
public function getLaunchUrl()
{
return $this->launchUrl;
}
/**
* @param bool
*/
public function setPreferred($preferred)
{
$this->preferred = $preferred;
}
/**
* @return bool
*/
public function getPreferred()
{
return $this->preferred;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InstanceWebDetails::class, 'Google_Service_Games_InstanceWebDetails');

View File

@@ -0,0 +1,134 @@
<?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\Games;
class Leaderboard extends \Google\Model
{
/**
* @var string
*/
public $iconUrl;
/**
* @var string
*/
public $id;
/**
* @var bool
*/
public $isIconUrlDefault;
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $order;
/**
* @param string
*/
public function setIconUrl($iconUrl)
{
$this->iconUrl = $iconUrl;
}
/**
* @return string
*/
public function getIconUrl()
{
return $this->iconUrl;
}
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param bool
*/
public function setIsIconUrlDefault($isIconUrlDefault)
{
$this->isIconUrlDefault = $isIconUrlDefault;
}
/**
* @return bool
*/
public function getIsIconUrlDefault()
{
return $this->isIconUrlDefault;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setOrder($order)
{
$this->order = $order;
}
/**
* @return string
*/
public function getOrder()
{
return $this->order;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Leaderboard::class, 'Google_Service_Games_Leaderboard');

View File

@@ -0,0 +1,186 @@
<?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\Games;
class LeaderboardEntry extends \Google\Model
{
/**
* @var string
*/
public $formattedScore;
/**
* @var string
*/
public $formattedScoreRank;
/**
* @var string
*/
public $kind;
protected $playerType = Player::class;
protected $playerDataType = '';
/**
* @var string
*/
public $scoreRank;
/**
* @var string
*/
public $scoreTag;
/**
* @var string
*/
public $scoreValue;
/**
* @var string
*/
public $timeSpan;
/**
* @var string
*/
public $writeTimestampMillis;
/**
* @param string
*/
public function setFormattedScore($formattedScore)
{
$this->formattedScore = $formattedScore;
}
/**
* @return string
*/
public function getFormattedScore()
{
return $this->formattedScore;
}
/**
* @param string
*/
public function setFormattedScoreRank($formattedScoreRank)
{
$this->formattedScoreRank = $formattedScoreRank;
}
/**
* @return string
*/
public function getFormattedScoreRank()
{
return $this->formattedScoreRank;
}
/**
* @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;
}
/**
* @param string
*/
public function setScoreRank($scoreRank)
{
$this->scoreRank = $scoreRank;
}
/**
* @return string
*/
public function getScoreRank()
{
return $this->scoreRank;
}
/**
* @param string
*/
public function setScoreTag($scoreTag)
{
$this->scoreTag = $scoreTag;
}
/**
* @return string
*/
public function getScoreTag()
{
return $this->scoreTag;
}
/**
* @param string
*/
public function setScoreValue($scoreValue)
{
$this->scoreValue = $scoreValue;
}
/**
* @return string
*/
public function getScoreValue()
{
return $this->scoreValue;
}
/**
* @param string
*/
public function setTimeSpan($timeSpan)
{
$this->timeSpan = $timeSpan;
}
/**
* @return string
*/
public function getTimeSpan()
{
return $this->timeSpan;
}
/**
* @param string
*/
public function setWriteTimestampMillis($writeTimestampMillis)
{
$this->writeTimestampMillis = $writeTimestampMillis;
}
/**
* @return string
*/
public function getWriteTimestampMillis()
{
return $this->writeTimestampMillis;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LeaderboardEntry::class, 'Google_Service_Games_LeaderboardEntry');

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\Games;
class LeaderboardListResponse extends \Google\Collection
{
protected $collection_key = 'items';
protected $itemsType = Leaderboard::class;
protected $itemsDataType = 'array';
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $nextPageToken;
/**
* @param Leaderboard[]
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return Leaderboard[]
*/
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(LeaderboardListResponse::class, 'Google_Service_Games_LeaderboardListResponse');

View File

@@ -0,0 +1,116 @@
<?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\Games;
class LeaderboardScoreRank extends \Google\Model
{
/**
* @var string
*/
public $formattedNumScores;
/**
* @var string
*/
public $formattedRank;
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $numScores;
/**
* @var string
*/
public $rank;
/**
* @param string
*/
public function setFormattedNumScores($formattedNumScores)
{
$this->formattedNumScores = $formattedNumScores;
}
/**
* @return string
*/
public function getFormattedNumScores()
{
return $this->formattedNumScores;
}
/**
* @param string
*/
public function setFormattedRank($formattedRank)
{
$this->formattedRank = $formattedRank;
}
/**
* @return string
*/
public function getFormattedRank()
{
return $this->formattedRank;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setNumScores($numScores)
{
$this->numScores = $numScores;
}
/**
* @return string
*/
public function getNumScores()
{
return $this->numScores;
}
/**
* @param string
*/
public function setRank($rank)
{
$this->rank = $rank;
}
/**
* @return string
*/
public function getRank()
{
return $this->rank;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LeaderboardScoreRank::class, 'Google_Service_Games_LeaderboardScoreRank');

View File

@@ -0,0 +1,131 @@
<?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\Games;
class LeaderboardScores extends \Google\Collection
{
protected $collection_key = 'items';
protected $itemsType = LeaderboardEntry::class;
protected $itemsDataType = 'array';
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $nextPageToken;
/**
* @var string
*/
public $numScores;
protected $playerScoreType = LeaderboardEntry::class;
protected $playerScoreDataType = '';
/**
* @var string
*/
public $prevPageToken;
/**
* @param LeaderboardEntry[]
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return LeaderboardEntry[]
*/
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;
}
/**
* @param string
*/
public function setNumScores($numScores)
{
$this->numScores = $numScores;
}
/**
* @return string
*/
public function getNumScores()
{
return $this->numScores;
}
/**
* @param LeaderboardEntry
*/
public function setPlayerScore(LeaderboardEntry $playerScore)
{
$this->playerScore = $playerScore;
}
/**
* @return LeaderboardEntry
*/
public function getPlayerScore()
{
return $this->playerScore;
}
/**
* @param string
*/
public function setPrevPageToken($prevPageToken)
{
$this->prevPageToken = $prevPageToken;
}
/**
* @return string
*/
public function getPrevPageToken()
{
return $this->prevPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LeaderboardScores::class, 'Google_Service_Games_LeaderboardScores');

View File

@@ -0,0 +1,152 @@
<?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\Games;
class LinkPersonaRequest extends \Google\Model
{
/**
* @var string
*/
public $cardinalityConstraint;
/**
* @var string
*/
public $conflictingLinksResolutionPolicy;
/**
* @var string
*/
public $expireTime;
/**
* @var string
*/
public $persona;
/**
* @var string
*/
public $sessionId;
/**
* @var string
*/
public $token;
/**
* @var string
*/
public $ttl;
/**
* @param string
*/
public function setCardinalityConstraint($cardinalityConstraint)
{
$this->cardinalityConstraint = $cardinalityConstraint;
}
/**
* @return string
*/
public function getCardinalityConstraint()
{
return $this->cardinalityConstraint;
}
/**
* @param string
*/
public function setConflictingLinksResolutionPolicy($conflictingLinksResolutionPolicy)
{
$this->conflictingLinksResolutionPolicy = $conflictingLinksResolutionPolicy;
}
/**
* @return string
*/
public function getConflictingLinksResolutionPolicy()
{
return $this->conflictingLinksResolutionPolicy;
}
/**
* @param string
*/
public function setExpireTime($expireTime)
{
$this->expireTime = $expireTime;
}
/**
* @return string
*/
public function getExpireTime()
{
return $this->expireTime;
}
/**
* @param string
*/
public function setPersona($persona)
{
$this->persona = $persona;
}
/**
* @return string
*/
public function getPersona()
{
return $this->persona;
}
/**
* @param string
*/
public function setSessionId($sessionId)
{
$this->sessionId = $sessionId;
}
/**
* @return string
*/
public function getSessionId()
{
return $this->sessionId;
}
/**
* @param string
*/
public function setToken($token)
{
$this->token = $token;
}
/**
* @return string
*/
public function getToken()
{
return $this->token;
}
/**
* @param string
*/
public function setTtl($ttl)
{
$this->ttl = $ttl;
}
/**
* @return string
*/
public function getTtl()
{
return $this->ttl;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LinkPersonaRequest::class, 'Google_Service_Games_LinkPersonaRequest');

View File

@@ -0,0 +1,44 @@
<?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\Games;
class LinkPersonaResponse extends \Google\Model
{
/**
* @var string
*/
public $state;
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LinkPersonaResponse::class, 'Google_Service_Games_LinkPersonaResponse');

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\Games;
class MetagameConfig extends \Google\Collection
{
protected $collection_key = 'playerLevels';
/**
* @var int
*/
public $currentVersion;
/**
* @var string
*/
public $kind;
protected $playerLevelsType = PlayerLevel::class;
protected $playerLevelsDataType = 'array';
/**
* @param int
*/
public function setCurrentVersion($currentVersion)
{
$this->currentVersion = $currentVersion;
}
/**
* @return int
*/
public function getCurrentVersion()
{
return $this->currentVersion;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param PlayerLevel[]
*/
public function setPlayerLevels($playerLevels)
{
$this->playerLevels = $playerLevels;
}
/**
* @return PlayerLevel[]
*/
public function getPlayerLevels()
{
return $this->playerLevels;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MetagameConfig::class, 'Google_Service_Games_MetagameConfig');

View File

@@ -0,0 +1,44 @@
<?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\Games;
class PlayGroupingApiToken extends \Google\Model
{
/**
* @var string
*/
public $tokenValue;
/**
* @param string
*/
public function setTokenValue($tokenValue)
{
$this->tokenValue = $tokenValue;
}
/**
* @return string
*/
public function getTokenValue()
{
return $this->tokenValue;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PlayGroupingApiToken::class, 'Google_Service_Games_PlayGroupingApiToken');

View File

@@ -0,0 +1,254 @@
<?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\Games;
class Player extends \Google\Model
{
/**
* @var string
*/
public $avatarImageUrl;
/**
* @var string
*/
public $bannerUrlLandscape;
/**
* @var string
*/
public $bannerUrlPortrait;
/**
* @var string
*/
public $displayName;
protected $experienceInfoType = PlayerExperienceInfo::class;
protected $experienceInfoDataType = '';
/**
* @var string
*/
public $friendStatus;
/**
* @var string
*/
public $gamePlayerId;
/**
* @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 PlayerExperienceInfo
*/
public function setExperienceInfo(PlayerExperienceInfo $experienceInfo)
{
$this->experienceInfo = $experienceInfo;
}
/**
* @return PlayerExperienceInfo
*/
public function getExperienceInfo()
{
return $this->experienceInfo;
}
/**
* @param string
*/
public function setFriendStatus($friendStatus)
{
$this->friendStatus = $friendStatus;
}
/**
* @return string
*/
public function getFriendStatus()
{
return $this->friendStatus;
}
/**
* @param string
*/
public function setGamePlayerId($gamePlayerId)
{
$this->gamePlayerId = $gamePlayerId;
}
/**
* @return string
*/
public function getGamePlayerId()
{
return $this->gamePlayerId;
}
/**
* @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_Games_Player');

View File

@@ -0,0 +1,152 @@
<?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\Games;
class PlayerAchievement extends \Google\Model
{
/**
* @var string
*/
public $achievementState;
/**
* @var int
*/
public $currentSteps;
/**
* @var string
*/
public $experiencePoints;
/**
* @var string
*/
public $formattedCurrentStepsString;
/**
* @var string
*/
public $id;
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $lastUpdatedTimestamp;
/**
* @param string
*/
public function setAchievementState($achievementState)
{
$this->achievementState = $achievementState;
}
/**
* @return string
*/
public function getAchievementState()
{
return $this->achievementState;
}
/**
* @param int
*/
public function setCurrentSteps($currentSteps)
{
$this->currentSteps = $currentSteps;
}
/**
* @return int
*/
public function getCurrentSteps()
{
return $this->currentSteps;
}
/**
* @param string
*/
public function setExperiencePoints($experiencePoints)
{
$this->experiencePoints = $experiencePoints;
}
/**
* @return string
*/
public function getExperiencePoints()
{
return $this->experiencePoints;
}
/**
* @param string
*/
public function setFormattedCurrentStepsString($formattedCurrentStepsString)
{
$this->formattedCurrentStepsString = $formattedCurrentStepsString;
}
/**
* @return string
*/
public function getFormattedCurrentStepsString()
{
return $this->formattedCurrentStepsString;
}
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setLastUpdatedTimestamp($lastUpdatedTimestamp)
{
$this->lastUpdatedTimestamp = $lastUpdatedTimestamp;
}
/**
* @return string
*/
public function getLastUpdatedTimestamp()
{
return $this->lastUpdatedTimestamp;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PlayerAchievement::class, 'Google_Service_Games_PlayerAchievement');

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\Games;
class PlayerAchievementListResponse extends \Google\Collection
{
protected $collection_key = 'items';
protected $itemsType = PlayerAchievement::class;
protected $itemsDataType = 'array';
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $nextPageToken;
/**
* @param PlayerAchievement[]
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return PlayerAchievement[]
*/
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(PlayerAchievementListResponse::class, 'Google_Service_Games_PlayerAchievementListResponse');

View File

@@ -0,0 +1,116 @@
<?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\Games;
class PlayerEvent extends \Google\Model
{
/**
* @var string
*/
public $definitionId;
/**
* @var string
*/
public $formattedNumEvents;
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $numEvents;
/**
* @var string
*/
public $playerId;
/**
* @param string
*/
public function setDefinitionId($definitionId)
{
$this->definitionId = $definitionId;
}
/**
* @return string
*/
public function getDefinitionId()
{
return $this->definitionId;
}
/**
* @param string
*/
public function setFormattedNumEvents($formattedNumEvents)
{
$this->formattedNumEvents = $formattedNumEvents;
}
/**
* @return string
*/
public function getFormattedNumEvents()
{
return $this->formattedNumEvents;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setNumEvents($numEvents)
{
$this->numEvents = $numEvents;
}
/**
* @return string
*/
public function getNumEvents()
{
return $this->numEvents;
}
/**
* @param string
*/
public function setPlayerId($playerId)
{
$this->playerId = $playerId;
}
/**
* @return string
*/
public function getPlayerId()
{
return $this->playerId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PlayerEvent::class, 'Google_Service_Games_PlayerEvent');

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\Games;
class PlayerEventListResponse extends \Google\Collection
{
protected $collection_key = 'items';
protected $itemsType = PlayerEvent::class;
protected $itemsDataType = 'array';
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $nextPageToken;
/**
* @param PlayerEvent[]
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return PlayerEvent[]
*/
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(PlayerEventListResponse::class, 'Google_Service_Games_PlayerEventListResponse');

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\Games;
class PlayerExperienceInfo extends \Google\Model
{
/**
* @var string
*/
public $currentExperiencePoints;
protected $currentLevelType = PlayerLevel::class;
protected $currentLevelDataType = '';
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $lastLevelUpTimestampMillis;
protected $nextLevelType = PlayerLevel::class;
protected $nextLevelDataType = '';
/**
* @param string
*/
public function setCurrentExperiencePoints($currentExperiencePoints)
{
$this->currentExperiencePoints = $currentExperiencePoints;
}
/**
* @return string
*/
public function getCurrentExperiencePoints()
{
return $this->currentExperiencePoints;
}
/**
* @param PlayerLevel
*/
public function setCurrentLevel(PlayerLevel $currentLevel)
{
$this->currentLevel = $currentLevel;
}
/**
* @return PlayerLevel
*/
public function getCurrentLevel()
{
return $this->currentLevel;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setLastLevelUpTimestampMillis($lastLevelUpTimestampMillis)
{
$this->lastLevelUpTimestampMillis = $lastLevelUpTimestampMillis;
}
/**
* @return string
*/
public function getLastLevelUpTimestampMillis()
{
return $this->lastLevelUpTimestampMillis;
}
/**
* @param PlayerLevel
*/
public function setNextLevel(PlayerLevel $nextLevel)
{
$this->nextLevel = $nextLevel;
}
/**
* @return PlayerLevel
*/
public function getNextLevel()
{
return $this->nextLevel;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PlayerExperienceInfo::class, 'Google_Service_Games_PlayerExperienceInfo');

View File

@@ -0,0 +1,203 @@
<?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\Games;
class PlayerLeaderboardScore extends \Google\Model
{
protected $internal_gapi_mappings = [
"leaderboardId" => "leaderboard_id",
];
protected $friendsRankType = LeaderboardScoreRank::class;
protected $friendsRankDataType = '';
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $leaderboardId;
protected $publicRankType = LeaderboardScoreRank::class;
protected $publicRankDataType = '';
/**
* @var string
*/
public $scoreString;
/**
* @var string
*/
public $scoreTag;
/**
* @var string
*/
public $scoreValue;
protected $socialRankType = LeaderboardScoreRank::class;
protected $socialRankDataType = '';
/**
* @var string
*/
public $timeSpan;
/**
* @var string
*/
public $writeTimestamp;
/**
* @param LeaderboardScoreRank
*/
public function setFriendsRank(LeaderboardScoreRank $friendsRank)
{
$this->friendsRank = $friendsRank;
}
/**
* @return LeaderboardScoreRank
*/
public function getFriendsRank()
{
return $this->friendsRank;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setLeaderboardId($leaderboardId)
{
$this->leaderboardId = $leaderboardId;
}
/**
* @return string
*/
public function getLeaderboardId()
{
return $this->leaderboardId;
}
/**
* @param LeaderboardScoreRank
*/
public function setPublicRank(LeaderboardScoreRank $publicRank)
{
$this->publicRank = $publicRank;
}
/**
* @return LeaderboardScoreRank
*/
public function getPublicRank()
{
return $this->publicRank;
}
/**
* @param string
*/
public function setScoreString($scoreString)
{
$this->scoreString = $scoreString;
}
/**
* @return string
*/
public function getScoreString()
{
return $this->scoreString;
}
/**
* @param string
*/
public function setScoreTag($scoreTag)
{
$this->scoreTag = $scoreTag;
}
/**
* @return string
*/
public function getScoreTag()
{
return $this->scoreTag;
}
/**
* @param string
*/
public function setScoreValue($scoreValue)
{
$this->scoreValue = $scoreValue;
}
/**
* @return string
*/
public function getScoreValue()
{
return $this->scoreValue;
}
/**
* @param LeaderboardScoreRank
*/
public function setSocialRank(LeaderboardScoreRank $socialRank)
{
$this->socialRank = $socialRank;
}
/**
* @return LeaderboardScoreRank
*/
public function getSocialRank()
{
return $this->socialRank;
}
/**
* @param string
*/
public function setTimeSpan($timeSpan)
{
$this->timeSpan = $timeSpan;
}
/**
* @return string
*/
public function getTimeSpan()
{
return $this->timeSpan;
}
/**
* @param string
*/
public function setWriteTimestamp($writeTimestamp)
{
$this->writeTimestamp = $writeTimestamp;
}
/**
* @return string
*/
public function getWriteTimestamp()
{
return $this->writeTimestamp;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PlayerLeaderboardScore::class, 'Google_Service_Games_PlayerLeaderboardScore');

View File

@@ -0,0 +1,95 @@
<?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\Games;
class PlayerLeaderboardScoreListResponse extends \Google\Collection
{
protected $collection_key = 'items';
protected $itemsType = PlayerLeaderboardScore::class;
protected $itemsDataType = 'array';
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $nextPageToken;
protected $playerType = Player::class;
protected $playerDataType = '';
/**
* @param PlayerLeaderboardScore[]
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return PlayerLeaderboardScore[]
*/
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;
}
/**
* @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(PlayerLeaderboardScoreListResponse::class, 'Google_Service_Games_PlayerLeaderboardScoreListResponse');

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\Games;
class PlayerLevel extends \Google\Model
{
/**
* @var string
*/
public $kind;
/**
* @var int
*/
public $level;
/**
* @var string
*/
public $maxExperiencePoints;
/**
* @var string
*/
public $minExperiencePoints;
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @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(PlayerLevel::class, 'Google_Service_Games_PlayerLevel');

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\Games;
class PlayerListResponse extends \Google\Collection
{
protected $collection_key = 'items';
protected $itemsType = Player::class;
protected $itemsDataType = 'array';
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $nextPageToken;
/**
* @param Player[]
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return Player[]
*/
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(PlayerListResponse::class, 'Google_Service_Games_PlayerListResponse');

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\Games;
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_Games_PlayerName');

View File

@@ -0,0 +1,116 @@
<?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\Games;
class PlayerScore extends \Google\Model
{
/**
* @var string
*/
public $formattedScore;
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $score;
/**
* @var string
*/
public $scoreTag;
/**
* @var string
*/
public $timeSpan;
/**
* @param string
*/
public function setFormattedScore($formattedScore)
{
$this->formattedScore = $formattedScore;
}
/**
* @return string
*/
public function getFormattedScore()
{
return $this->formattedScore;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setScore($score)
{
$this->score = $score;
}
/**
* @return string
*/
public function getScore()
{
return $this->score;
}
/**
* @param string
*/
public function setScoreTag($scoreTag)
{
$this->scoreTag = $scoreTag;
}
/**
* @return string
*/
public function getScoreTag()
{
return $this->scoreTag;
}
/**
* @param string
*/
public function setTimeSpan($timeSpan)
{
$this->timeSpan = $timeSpan;
}
/**
* @return string
*/
public function getTimeSpan()
{
return $this->timeSpan;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PlayerScore::class, 'Google_Service_Games_PlayerScore');

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\Games;
class PlayerScoreListResponse extends \Google\Collection
{
protected $collection_key = 'submittedScores';
/**
* @var string
*/
public $kind;
protected $submittedScoresType = PlayerScoreResponse::class;
protected $submittedScoresDataType = 'array';
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param PlayerScoreResponse[]
*/
public function setSubmittedScores($submittedScores)
{
$this->submittedScores = $submittedScores;
}
/**
* @return PlayerScoreResponse[]
*/
public function getSubmittedScores()
{
return $this->submittedScores;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PlayerScoreListResponse::class, 'Google_Service_Games_PlayerScoreListResponse');

View File

@@ -0,0 +1,133 @@
<?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\Games;
class PlayerScoreResponse extends \Google\Collection
{
protected $collection_key = 'unbeatenScores';
/**
* @var string[]
*/
public $beatenScoreTimeSpans;
/**
* @var string
*/
public $formattedScore;
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $leaderboardId;
/**
* @var string
*/
public $scoreTag;
protected $unbeatenScoresType = PlayerScore::class;
protected $unbeatenScoresDataType = 'array';
/**
* @param string[]
*/
public function setBeatenScoreTimeSpans($beatenScoreTimeSpans)
{
$this->beatenScoreTimeSpans = $beatenScoreTimeSpans;
}
/**
* @return string[]
*/
public function getBeatenScoreTimeSpans()
{
return $this->beatenScoreTimeSpans;
}
/**
* @param string
*/
public function setFormattedScore($formattedScore)
{
$this->formattedScore = $formattedScore;
}
/**
* @return string
*/
public function getFormattedScore()
{
return $this->formattedScore;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setLeaderboardId($leaderboardId)
{
$this->leaderboardId = $leaderboardId;
}
/**
* @return string
*/
public function getLeaderboardId()
{
return $this->leaderboardId;
}
/**
* @param string
*/
public function setScoreTag($scoreTag)
{
$this->scoreTag = $scoreTag;
}
/**
* @return string
*/
public function getScoreTag()
{
return $this->scoreTag;
}
/**
* @param PlayerScore[]
*/
public function setUnbeatenScores($unbeatenScores)
{
$this->unbeatenScores = $unbeatenScores;
}
/**
* @return PlayerScore[]
*/
public function getUnbeatenScores()
{
return $this->unbeatenScores;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PlayerScoreResponse::class, 'Google_Service_Games_PlayerScoreResponse');

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\Games;
class PlayerScoreSubmissionList extends \Google\Collection
{
protected $collection_key = 'scores';
/**
* @var string
*/
public $kind;
protected $scoresType = ScoreSubmission::class;
protected $scoresDataType = 'array';
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param ScoreSubmission[]
*/
public function setScores($scores)
{
$this->scores = $scores;
}
/**
* @return ScoreSubmission[]
*/
public function getScores()
{
return $this->scores;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PlayerScoreSubmissionList::class, 'Google_Service_Games_PlayerScoreSubmissionList');

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\Games;
class ProfileSettings extends \Google\Model
{
/**
* @var string
*/
public $friendsListVisibility;
/**
* @var string
*/
public $kind;
/**
* @var bool
*/
public $profileVisible;
/**
* @param string
*/
public function setFriendsListVisibility($friendsListVisibility)
{
$this->friendsListVisibility = $friendsListVisibility;
}
/**
* @return string
*/
public function getFriendsListVisibility()
{
return $this->friendsListVisibility;
}
/**
* @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_Games_ProfileSettings');

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\Games;
class RecallToken extends \Google\Model
{
/**
* @var string
*/
public $expireTime;
/**
* @var bool
*/
public $multiPlayerPersona;
/**
* @var string
*/
public $token;
/**
* @param string
*/
public function setExpireTime($expireTime)
{
$this->expireTime = $expireTime;
}
/**
* @return string
*/
public function getExpireTime()
{
return $this->expireTime;
}
/**
* @param bool
*/
public function setMultiPlayerPersona($multiPlayerPersona)
{
$this->multiPlayerPersona = $multiPlayerPersona;
}
/**
* @return bool
*/
public function getMultiPlayerPersona()
{
return $this->multiPlayerPersona;
}
/**
* @param string
*/
public function setToken($token)
{
$this->token = $token;
}
/**
* @return string
*/
public function getToken()
{
return $this->token;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RecallToken::class, 'Google_Service_Games_RecallToken');

View File

@@ -0,0 +1,44 @@
<?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\Games;
class ResetPersonaRequest extends \Google\Model
{
/**
* @var string
*/
public $persona;
/**
* @param string
*/
public function setPersona($persona)
{
$this->persona = $persona;
}
/**
* @return string
*/
public function getPersona()
{
return $this->persona;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ResetPersonaRequest::class, 'Google_Service_Games_ResetPersonaRequest');

View File

@@ -0,0 +1,44 @@
<?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\Games;
class ResetPersonaResponse extends \Google\Model
{
/**
* @var bool
*/
public $unlinked;
/**
* @param bool
*/
public function setUnlinked($unlinked)
{
$this->unlinked = $unlinked;
}
/**
* @return bool
*/
public function getUnlinked()
{
return $this->unlinked;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ResetPersonaResponse::class, 'Google_Service_Games_ResetPersonaResponse');

View File

@@ -0,0 +1,86 @@
<?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\Games\Resource;
use Google\Service\Games\GeneratePlayGroupingApiTokenResponse;
use Google\Service\Games\GenerateRecallPlayGroupingApiTokenResponse;
/**
* The "accesstokens" collection of methods.
* Typical usage is:
* <code>
* $gamesService = new Google\Service\Games(...);
* $accesstokens = $gamesService->accesstokens;
* </code>
*/
class Accesstokens extends \Google\Service\Resource
{
/**
* Generates a Play Grouping API token for the PGS user identified by the
* attached credential. (accesstokens.generatePlayGroupingApiToken)
*
* @param array $optParams Optional parameters.
*
* @opt_param string packageName Required. App package name to generate the
* token for (e.g. com.example.mygame).
* @opt_param string persona Required. Persona to associate with the token.
* Persona is a developer-provided stable identifier of the user. Must be
* deterministically generated (e.g. as a one-way hash) from the user account ID
* and user profile ID (if the app has the concept), according to the
* developer's own user identity system.
* @return GeneratePlayGroupingApiTokenResponse
* @throws \Google\Service\Exception
*/
public function generatePlayGroupingApiToken($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('generatePlayGroupingApiToken', [$params], GeneratePlayGroupingApiTokenResponse::class);
}
/**
* Generates a Play Grouping API token for the PGS user identified by the Recall
* session ID provided in the request.
* (accesstokens.generateRecallPlayGroupingApiToken)
*
* @param array $optParams Optional parameters.
*
* @opt_param string packageName Required. App package name to generate the
* token for (e.g. com.example.mygame).
* @opt_param string persona Required. Persona to associate with the token.
* Persona is a developer-provided stable identifier of the user. Must be
* deterministically generated (e.g. as a one-way hash) from the user account ID
* and user profile ID (if the app has the concept), according to the
* developer's own user identity system.
* @opt_param string recallSessionId Required. Opaque server-generated string
* that encodes all the necessary information to identify the PGS player /
* Google user and application. See
* https://developer.android.com/games/pgs/recall/recall-setup on how to
* integrate with Recall and get session ID.
* @return GenerateRecallPlayGroupingApiTokenResponse
* @throws \Google\Service\Exception
*/
public function generateRecallPlayGroupingApiToken($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('generateRecallPlayGroupingApiToken', [$params], GenerateRecallPlayGroupingApiTokenResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Accesstokens::class, 'Google_Service_Games_Resource_Accesstokens');

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\Games\Resource;
use Google\Service\Games\AchievementDefinitionsListResponse;
/**
* The "achievementDefinitions" collection of methods.
* Typical usage is:
* <code>
* $gamesService = new Google\Service\Games(...);
* $achievementDefinitions = $gamesService->achievementDefinitions;
* </code>
*/
class AchievementDefinitions extends \Google\Service\Resource
{
/**
* Lists all the achievement definitions for your application.
* (achievementDefinitions.listAchievementDefinitions)
*
* @param array $optParams Optional parameters.
*
* @opt_param string language The preferred language to use for strings returned
* by this method.
* @opt_param int maxResults The maximum number of achievement resources to
* return in the response, used for paging. For any response, the actual number
* of achievement resources returned may be less than the specified
* `maxResults`.
* @opt_param string pageToken The token returned by the previous request.
* @return AchievementDefinitionsListResponse
* @throws \Google\Service\Exception
*/
public function listAchievementDefinitions($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], AchievementDefinitionsListResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AchievementDefinitions::class, 'Google_Service_Games_Resource_AchievementDefinitions');

View File

@@ -0,0 +1,151 @@
<?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\Games\Resource;
use Google\Service\Games\AchievementIncrementResponse;
use Google\Service\Games\AchievementRevealResponse;
use Google\Service\Games\AchievementSetStepsAtLeastResponse;
use Google\Service\Games\AchievementUnlockResponse;
use Google\Service\Games\AchievementUpdateMultipleRequest;
use Google\Service\Games\AchievementUpdateMultipleResponse;
use Google\Service\Games\PlayerAchievementListResponse;
/**
* The "achievements" collection of methods.
* Typical usage is:
* <code>
* $gamesService = new Google\Service\Games(...);
* $achievements = $gamesService->achievements;
* </code>
*/
class Achievements extends \Google\Service\Resource
{
/**
* Increments the steps of the achievement with the given ID for the currently
* authenticated player. (achievements.increment)
*
* @param string $achievementId The ID of the achievement used by this method.
* @param int $stepsToIncrement Required. The number of steps to increment.
* @param array $optParams Optional parameters.
*
* @opt_param string requestId A randomly generated numeric ID for each request
* specified by the caller. This number is used at the server to ensure that the
* request is handled correctly across retries.
* @return AchievementIncrementResponse
* @throws \Google\Service\Exception
*/
public function increment($achievementId, $stepsToIncrement, $optParams = [])
{
$params = ['achievementId' => $achievementId, 'stepsToIncrement' => $stepsToIncrement];
$params = array_merge($params, $optParams);
return $this->call('increment', [$params], AchievementIncrementResponse::class);
}
/**
* Lists the progress for all your application's achievements for the currently
* authenticated player. (achievements.listAchievements)
*
* @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.
*
* @opt_param string language The preferred language to use for strings returned
* by this method.
* @opt_param int maxResults The maximum number of achievement resources to
* return in the response, used for paging. For any response, the actual number
* of achievement resources returned may be less than the specified
* `maxResults`.
* @opt_param string pageToken The token returned by the previous request.
* @opt_param string state Tells the server to return only achievements with the
* specified state. If this parameter isn't specified, all achievements are
* returned.
* @return PlayerAchievementListResponse
* @throws \Google\Service\Exception
*/
public function listAchievements($playerId, $optParams = [])
{
$params = ['playerId' => $playerId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], PlayerAchievementListResponse::class);
}
/**
* Sets the state of the achievement with the given ID to `REVEALED` for the
* currently authenticated player. (achievements.reveal)
*
* @param string $achievementId The ID of the achievement used by this method.
* @param array $optParams Optional parameters.
* @return AchievementRevealResponse
* @throws \Google\Service\Exception
*/
public function reveal($achievementId, $optParams = [])
{
$params = ['achievementId' => $achievementId];
$params = array_merge($params, $optParams);
return $this->call('reveal', [$params], AchievementRevealResponse::class);
}
/**
* Sets the steps for the currently authenticated player towards unlocking an
* achievement. If the steps parameter is less than the current number of steps
* that the player already gained for the achievement, the achievement is not
* modified. (achievements.setStepsAtLeast)
*
* @param string $achievementId The ID of the achievement used by this method.
* @param int $steps Required. The minimum value to set the steps to.
* @param array $optParams Optional parameters.
* @return AchievementSetStepsAtLeastResponse
* @throws \Google\Service\Exception
*/
public function setStepsAtLeast($achievementId, $steps, $optParams = [])
{
$params = ['achievementId' => $achievementId, 'steps' => $steps];
$params = array_merge($params, $optParams);
return $this->call('setStepsAtLeast', [$params], AchievementSetStepsAtLeastResponse::class);
}
/**
* Unlocks this achievement for the currently authenticated player.
* (achievements.unlock)
*
* @param string $achievementId The ID of the achievement used by this method.
* @param array $optParams Optional parameters.
* @return AchievementUnlockResponse
* @throws \Google\Service\Exception
*/
public function unlock($achievementId, $optParams = [])
{
$params = ['achievementId' => $achievementId];
$params = array_merge($params, $optParams);
return $this->call('unlock', [$params], AchievementUnlockResponse::class);
}
/**
* Updates multiple achievements for the currently authenticated player.
* (achievements.updateMultiple)
*
* @param AchievementUpdateMultipleRequest $postBody
* @param array $optParams Optional parameters.
* @return AchievementUpdateMultipleResponse
* @throws \Google\Service\Exception
*/
public function updateMultiple(AchievementUpdateMultipleRequest $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('updateMultiple', [$params], AchievementUpdateMultipleResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Achievements::class, 'Google_Service_Games_Resource_Achievements');

View File

@@ -0,0 +1,106 @@
<?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\Games\Resource;
use Google\Service\Games\Application;
use Google\Service\Games\ApplicationVerifyResponse;
use Google\Service\Games\EndPoint;
/**
* The "applications" collection of methods.
* Typical usage is:
* <code>
* $gamesService = new Google\Service\Games(...);
* $applications = $gamesService->applications;
* </code>
*/
class Applications extends \Google\Service\Resource
{
/**
* Retrieves the metadata of the application with the given ID. If the requested
* application is not available for the specified `platformType`, the returned
* response will not include any instance data. (applications.get)
*
* @param string $applicationId The application ID from the Google Play
* developer console.
* @param array $optParams Optional parameters.
*
* @opt_param string language The preferred language to use for strings returned
* by this method.
* @opt_param string platformType Restrict application details returned to the
* specific platform.
* @return Application
* @throws \Google\Service\Exception
*/
public function get($applicationId, $optParams = [])
{
$params = ['applicationId' => $applicationId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Application::class);
}
/**
* Returns a URL for the requested end point type. (applications.getEndPoint)
*
* @param array $optParams Optional parameters.
*
* @opt_param string applicationId The application ID from the Google Play
* developer console.
* @opt_param string endPointType Type of endpoint being requested.
* @return EndPoint
* @throws \Google\Service\Exception
*/
public function getEndPoint($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('getEndPoint', [$params], EndPoint::class);
}
/**
* Indicate that the currently authenticated user is playing your application.
* (applications.played)
*
* @param array $optParams Optional parameters.
* @throws \Google\Service\Exception
*/
public function played($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('played', [$params]);
}
/**
* Verifies the auth token provided with this request is for the application
* with the specified ID, and returns the ID of the player it was granted for.
* (applications.verify)
*
* @param string $applicationId The application ID from the Google Play
* developer console.
* @param array $optParams Optional parameters.
* @return ApplicationVerifyResponse
* @throws \Google\Service\Exception
*/
public function verify($applicationId, $optParams = [])
{
$params = ['applicationId' => $applicationId];
$params = array_merge($params, $optParams);
return $this->call('verify', [$params], ApplicationVerifyResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Applications::class, 'Google_Service_Games_Resource_Applications');

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\Games\Resource;
use Google\Service\Games\EventDefinitionListResponse;
use Google\Service\Games\EventRecordRequest;
use Google\Service\Games\EventUpdateResponse;
use Google\Service\Games\PlayerEventListResponse;
/**
* The "events" collection of methods.
* Typical usage is:
* <code>
* $gamesService = new Google\Service\Games(...);
* $events = $gamesService->events;
* </code>
*/
class Events extends \Google\Service\Resource
{
/**
* Returns a list showing the current progress on events in this application for
* the currently authenticated user. (events.listByPlayer)
*
* @param array $optParams Optional parameters.
*
* @opt_param string language The preferred language to use for strings returned
* by this method.
* @opt_param int maxResults The maximum number of events to return in the
* response, used for paging. For any response, the actual number of events to
* return may be less than the specified maxResults.
* @opt_param string pageToken The token returned by the previous request.
* @return PlayerEventListResponse
* @throws \Google\Service\Exception
*/
public function listByPlayer($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('listByPlayer', [$params], PlayerEventListResponse::class);
}
/**
* Returns a list of the event definitions in this application.
* (events.listDefinitions)
*
* @param array $optParams Optional parameters.
*
* @opt_param string language The preferred language to use for strings returned
* by this method.
* @opt_param int maxResults The maximum number of event definitions to return
* in the response, used for paging. For any response, the actual number of
* event definitions to return may be less than the specified `maxResults`.
* @opt_param string pageToken The token returned by the previous request.
* @return EventDefinitionListResponse
* @throws \Google\Service\Exception
*/
public function listDefinitions($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('listDefinitions', [$params], EventDefinitionListResponse::class);
}
/**
* Records a batch of changes to the number of times events have occurred for
* the currently authenticated user of this application. (events.record)
*
* @param EventRecordRequest $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string language The preferred language to use for strings returned
* by this method.
* @return EventUpdateResponse
* @throws \Google\Service\Exception
*/
public function record(EventRecordRequest $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('record', [$params], EventUpdateResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Events::class, 'Google_Service_Games_Resource_Events');

View File

@@ -0,0 +1,75 @@
<?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\Games\Resource;
use Google\Service\Games\Leaderboard;
use Google\Service\Games\LeaderboardListResponse;
/**
* The "leaderboards" collection of methods.
* Typical usage is:
* <code>
* $gamesService = new Google\Service\Games(...);
* $leaderboards = $gamesService->leaderboards;
* </code>
*/
class Leaderboards extends \Google\Service\Resource
{
/**
* Retrieves the metadata of the leaderboard with the given ID.
* (leaderboards.get)
*
* @param string $leaderboardId The ID of the leaderboard.
* @param array $optParams Optional parameters.
*
* @opt_param string language The preferred language to use for strings returned
* by this method.
* @return Leaderboard
* @throws \Google\Service\Exception
*/
public function get($leaderboardId, $optParams = [])
{
$params = ['leaderboardId' => $leaderboardId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Leaderboard::class);
}
/**
* Lists all the leaderboard metadata for your application.
* (leaderboards.listLeaderboards)
*
* @param array $optParams Optional parameters.
*
* @opt_param string language The preferred language to use for strings returned
* by this method.
* @opt_param int maxResults The maximum number of leaderboards to return in the
* response. For any response, the actual number of leaderboards returned may be
* less than the specified `maxResults`.
* @opt_param string pageToken The token returned by the previous request.
* @return LeaderboardListResponse
* @throws \Google\Service\Exception
*/
public function listLeaderboards($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], LeaderboardListResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Leaderboards::class, 'Google_Service_Games_Resource_Leaderboards');

View File

@@ -0,0 +1,75 @@
<?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\Games\Resource;
use Google\Service\Games\CategoryListResponse;
use Google\Service\Games\MetagameConfig;
/**
* The "metagame" collection of methods.
* Typical usage is:
* <code>
* $gamesService = new Google\Service\Games(...);
* $metagame = $gamesService->metagame;
* </code>
*/
class Metagame extends \Google\Service\Resource
{
/**
* Return the metagame configuration data for the calling application.
* (metagame.getMetagameConfig)
*
* @param array $optParams Optional parameters.
* @return MetagameConfig
* @throws \Google\Service\Exception
*/
public function getMetagameConfig($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('getMetagameConfig', [$params], MetagameConfig::class);
}
/**
* List play data aggregated per category for the player corresponding to
* `playerId`. (metagame.listCategoriesByPlayer)
*
* @param string $playerId A player ID. A value of `me` may be used in place of
* the authenticated player's ID.
* @param string $collection The collection of categories for which data will be
* returned.
* @param array $optParams Optional parameters.
*
* @opt_param string language The preferred language to use for strings returned
* by this method.
* @opt_param int maxResults The maximum number of category resources to return
* in the response, used for paging. For any response, the actual number of
* category resources returned may be less than the specified `maxResults`.
* @opt_param string pageToken The token returned by the previous request.
* @return CategoryListResponse
* @throws \Google\Service\Exception
*/
public function listCategoriesByPlayer($playerId, $collection, $optParams = [])
{
$params = ['playerId' => $playerId, 'collection' => $collection];
$params = array_merge($params, $optParams);
return $this->call('listCategoriesByPlayer', [$params], CategoryListResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Metagame::class, 'Google_Service_Games_Resource_Metagame');

View File

@@ -0,0 +1,115 @@
<?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\Games\Resource;
use Google\Service\Games\GetMultipleApplicationPlayerIdsResponse;
use Google\Service\Games\Player;
use Google\Service\Games\PlayerListResponse;
use Google\Service\Games\ScopedPlayerIds;
/**
* The "players" collection of methods.
* Typical usage is:
* <code>
* $gamesService = new Google\Service\Games(...);
* $players = $gamesService->players;
* </code>
*/
class Players extends \Google\Service\Resource
{
/**
* Retrieves the Player resource with the given ID. To retrieve the player for
* the currently authenticated user, set `playerId` to `me`. (players.get)
*
* @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.
*
* @opt_param string language The preferred language to use for strings returned
* by this method.
* @opt_param string playerIdConsistencyToken Consistency token of the player
* id. The call returns a 'not found' result when the token is present and
* invalid. Empty value is ignored. See also GlobalPlayerIdConsistencyTokenProto
* @return Player
* @throws \Google\Service\Exception
*/
public function get($playerId, $optParams = [])
{
$params = ['playerId' => $playerId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Player::class);
}
/**
* 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. (players.getMultipleApplicationPlayerIds)
*
* @param array $optParams Optional parameters.
*
* @opt_param string applicationIds Required. The application IDs from the
* Google Play developer console for the games to return scoped ids for.
* @return GetMultipleApplicationPlayerIdsResponse
* @throws \Google\Service\Exception
*/
public function getMultipleApplicationPlayerIds($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('getMultipleApplicationPlayerIds', [$params], GetMultipleApplicationPlayerIdsResponse::class);
}
/**
* Retrieves scoped player identifiers for currently authenticated user.
* (players.getScopedPlayerIds)
*
* @param array $optParams Optional parameters.
* @return ScopedPlayerIds
* @throws \Google\Service\Exception
*/
public function getScopedPlayerIds($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('getScopedPlayerIds', [$params], ScopedPlayerIds::class);
}
/**
* Get the collection of players for the currently authenticated user.
* (players.listPlayers)
*
* @param string $collection Collection of players being retrieved
* @param array $optParams Optional parameters.
*
* @opt_param string language The preferred language to use for strings returned
* by this method.
* @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 PlayerListResponse
* @throws \Google\Service\Exception
*/
public function listPlayers($collection, $optParams = [])
{
$params = ['collection' => $collection];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], PlayerListResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Players::class, 'Google_Service_Games_Resource_Players');

View File

@@ -0,0 +1,148 @@
<?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\Games\Resource;
use Google\Service\Games\LinkPersonaRequest;
use Google\Service\Games\LinkPersonaResponse;
use Google\Service\Games\ResetPersonaRequest;
use Google\Service\Games\ResetPersonaResponse;
use Google\Service\Games\RetrieveDeveloperGamesLastPlayerTokenResponse;
use Google\Service\Games\RetrieveGamesPlayerTokensResponse;
use Google\Service\Games\RetrievePlayerTokensResponse;
use Google\Service\Games\UnlinkPersonaRequest;
use Google\Service\Games\UnlinkPersonaResponse;
/**
* The "recall" collection of methods.
* Typical usage is:
* <code>
* $gamesService = new Google\Service\Games(...);
* $recall = $gamesService->recall;
* </code>
*/
class Recall extends \Google\Service\Resource
{
/**
* Retrieve the Recall tokens from all requested games that is associated with
* the PGS Player encoded in the provided recall session id. The API is only
* available for users that have an active PGS Player profile.
* (recall.gamesPlayerTokens)
*
* @param string $sessionId Required. Opaque server-generated string that
* encodes all the necessary information to identify the PGS player / Google
* user and application.
* @param array $optParams Optional parameters.
*
* @opt_param string applicationIds Required. The application IDs from the
* Google Play developer console for the games to return scoped ids for.
* @return RetrieveGamesPlayerTokensResponse
* @throws \Google\Service\Exception
*/
public function gamesPlayerTokens($sessionId, $optParams = [])
{
$params = ['sessionId' => $sessionId];
$params = array_merge($params, $optParams);
return $this->call('gamesPlayerTokens', [$params], RetrieveGamesPlayerTokensResponse::class);
}
/**
* Retrieve the last Recall token from all developer games that is associated
* with the PGS Player encoded in the provided recall session id. The API is
* only available for users that have active PGS Player profile.
* (recall.lastTokenFromAllDeveloperGames)
*
* @param string $sessionId Required. Opaque server-generated string that
* encodes all the necessary information to identify the PGS player / Google
* user and application.
* @param array $optParams Optional parameters.
* @return RetrieveDeveloperGamesLastPlayerTokenResponse
* @throws \Google\Service\Exception
*/
public function lastTokenFromAllDeveloperGames($sessionId, $optParams = [])
{
$params = ['sessionId' => $sessionId];
$params = array_merge($params, $optParams);
return $this->call('lastTokenFromAllDeveloperGames', [$params], RetrieveDeveloperGamesLastPlayerTokenResponse::class);
}
/**
* Associate the PGS Player principal encoded in the provided recall session id
* with an in-game account (recall.linkPersona)
*
* @param LinkPersonaRequest $postBody
* @param array $optParams Optional parameters.
* @return LinkPersonaResponse
* @throws \Google\Service\Exception
*/
public function linkPersona(LinkPersonaRequest $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('linkPersona', [$params], LinkPersonaResponse::class);
}
/**
* Delete all Recall tokens linking the given persona to any player (with or
* without a profile). (recall.resetPersona)
*
* @param ResetPersonaRequest $postBody
* @param array $optParams Optional parameters.
* @return ResetPersonaResponse
* @throws \Google\Service\Exception
*/
public function resetPersona(ResetPersonaRequest $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('resetPersona', [$params], ResetPersonaResponse::class);
}
/**
* Retrieve all Recall tokens associated with the PGS Player encoded in the
* provided recall session id. The API is only available for users that have
* active PGS Player profile. (recall.retrieveTokens)
*
* @param string $sessionId Required. Opaque server-generated string that
* encodes all the necessary information to identify the PGS player / Google
* user and application.
* @param array $optParams Optional parameters.
* @return RetrievePlayerTokensResponse
* @throws \Google\Service\Exception
*/
public function retrieveTokens($sessionId, $optParams = [])
{
$params = ['sessionId' => $sessionId];
$params = array_merge($params, $optParams);
return $this->call('retrieveTokens', [$params], RetrievePlayerTokensResponse::class);
}
/**
* Delete a Recall token linking the PGS Player principal identified by the
* Recall session and an in-game account identified either by the 'persona' or
* by the token value. (recall.unlinkPersona)
*
* @param UnlinkPersonaRequest $postBody
* @param array $optParams Optional parameters.
* @return UnlinkPersonaResponse
* @throws \Google\Service\Exception
*/
public function unlinkPersona(UnlinkPersonaRequest $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('unlinkPersona', [$params], UnlinkPersonaResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Recall::class, 'Google_Service_Games_Resource_Recall');

View File

@@ -0,0 +1,53 @@
<?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\Games\Resource;
use Google\Service\Games\RevisionCheckResponse;
/**
* The "revisions" collection of methods.
* Typical usage is:
* <code>
* $gamesService = new Google\Service\Games(...);
* $revisions = $gamesService->revisions;
* </code>
*/
class Revisions extends \Google\Service\Resource
{
/**
* Checks whether the games client is out of date. (revisions.check)
*
* @param string $clientRevision Required. The revision of the client SDK used
* by your application. Format: `[PLATFORM_TYPE]:[VERSION_NUMBER]`. Possible
* values of `PLATFORM_TYPE` are: * `ANDROID` - Client is running the Android
* SDK. * `IOS` - Client is running the iOS SDK. * `WEB_APP` - Client is running
* as a Web App.
* @param array $optParams Optional parameters.
* @return RevisionCheckResponse
* @throws \Google\Service\Exception
*/
public function check($clientRevision, $optParams = [])
{
$params = ['clientRevision' => $clientRevision];
$params = array_merge($params, $optParams);
return $this->call('check', [$params], RevisionCheckResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Revisions::class, 'Google_Service_Games_Resource_Revisions');

View File

@@ -0,0 +1,169 @@
<?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\Games\Resource;
use Google\Service\Games\LeaderboardScores;
use Google\Service\Games\PlayerLeaderboardScoreListResponse;
use Google\Service\Games\PlayerScoreListResponse;
use Google\Service\Games\PlayerScoreResponse;
use Google\Service\Games\PlayerScoreSubmissionList;
/**
* The "scores" collection of methods.
* Typical usage is:
* <code>
* $gamesService = new Google\Service\Games(...);
* $scores = $gamesService->scores;
* </code>
*/
class Scores extends \Google\Service\Resource
{
/**
* Get high scores, and optionally ranks, in leaderboards for the currently
* authenticated player. For a specific time span, `leaderboardId` can be set to
* `ALL` to retrieve data for all leaderboards in a given time span. `NOTE: You
* cannot ask for 'ALL' leaderboards and 'ALL' timeSpans in the same request;
* only one parameter may be set to 'ALL'. (scores.get)
*
* @param string $playerId A player ID. A value of `me` may be used in place of
* the authenticated player's ID.
* @param string $leaderboardId The ID of the leaderboard. Can be set to 'ALL'
* to retrieve data for all leaderboards for this application.
* @param string $timeSpan The time span for the scores and ranks you're
* requesting.
* @param array $optParams Optional parameters.
*
* @opt_param string includeRankType The types of ranks to return. If the
* parameter is omitted, no ranks will be returned.
* @opt_param string language The preferred language to use for strings returned
* by this method.
* @opt_param int maxResults The maximum number of leaderboard scores to return
* in the response. For any response, the actual number of leaderboard scores
* returned may be less than the specified `maxResults`.
* @opt_param string pageToken The token returned by the previous request.
* @return PlayerLeaderboardScoreListResponse
* @throws \Google\Service\Exception
*/
public function get($playerId, $leaderboardId, $timeSpan, $optParams = [])
{
$params = ['playerId' => $playerId, 'leaderboardId' => $leaderboardId, 'timeSpan' => $timeSpan];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], PlayerLeaderboardScoreListResponse::class);
}
/**
* Lists the scores in a leaderboard, starting from the top. (scores.listScores)
*
* @param string $leaderboardId The ID of the leaderboard.
* @param string $collection The collection of scores you're requesting.
* @param string $timeSpan Required. The time span for the scores and ranks
* you're requesting.
* @param array $optParams Optional parameters.
*
* @opt_param string language The preferred language to use for strings returned
* by this method.
* @opt_param int maxResults The maximum number of leaderboard scores to return
* in the response. For any response, the actual number of leaderboard scores
* returned may be less than the specified `maxResults`.
* @opt_param string pageToken The token returned by the previous request.
* @return LeaderboardScores
* @throws \Google\Service\Exception
*/
public function listScores($leaderboardId, $collection, $timeSpan, $optParams = [])
{
$params = ['leaderboardId' => $leaderboardId, 'collection' => $collection, 'timeSpan' => $timeSpan];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], LeaderboardScores::class);
}
/**
* Lists the scores in a leaderboard around (and including) a player's score.
* (scores.listWindow)
*
* @param string $leaderboardId The ID of the leaderboard.
* @param string $collection The collection of scores you're requesting.
* @param string $timeSpan Required. The time span for the scores and ranks
* you're requesting.
* @param array $optParams Optional parameters.
*
* @opt_param string language The preferred language to use for strings returned
* by this method.
* @opt_param int maxResults The maximum number of leaderboard scores to return
* in the response. For any response, the actual number of leaderboard scores
* returned may be less than the specified `maxResults`.
* @opt_param string pageToken The token returned by the previous request.
* @opt_param int resultsAbove The preferred number of scores to return above
* the player's score. More scores may be returned if the player is at the
* bottom of the leaderboard; fewer may be returned if the player is at the top.
* Must be less than or equal to maxResults.
* @opt_param bool returnTopIfAbsent True if the top scores should be returned
* when the player is not in the leaderboard. Defaults to true.
* @return LeaderboardScores
* @throws \Google\Service\Exception
*/
public function listWindow($leaderboardId, $collection, $timeSpan, $optParams = [])
{
$params = ['leaderboardId' => $leaderboardId, 'collection' => $collection, 'timeSpan' => $timeSpan];
$params = array_merge($params, $optParams);
return $this->call('listWindow', [$params], LeaderboardScores::class);
}
/**
* Submits a score to the specified leaderboard. (scores.submit)
*
* @param string $leaderboardId The ID of the leaderboard.
* @param string $score Required. The score you're submitting. The submitted
* score is ignored if it is worse than a previously submitted score, where
* worse depends on the leaderboard sort order. The meaning of the score value
* depends on the leaderboard format type. For fixed-point, the score represents
* the raw value. For time, the score represents elapsed time in milliseconds.
* For currency, the score represents a value in micro units.
* @param array $optParams Optional parameters.
*
* @opt_param string language The preferred language to use for strings returned
* by this method.
* @opt_param string scoreTag Additional information about the score you're
* submitting. Values must contain no more than 64 URI-safe characters as
* defined by section 2.3 of RFC 3986.
* @return PlayerScoreResponse
* @throws \Google\Service\Exception
*/
public function submit($leaderboardId, $score, $optParams = [])
{
$params = ['leaderboardId' => $leaderboardId, 'score' => $score];
$params = array_merge($params, $optParams);
return $this->call('submit', [$params], PlayerScoreResponse::class);
}
/**
* Submits multiple scores to leaderboards. (scores.submitMultiple)
*
* @param PlayerScoreSubmissionList $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string language The preferred language to use for strings returned
* by this method.
* @return PlayerScoreListResponse
* @throws \Google\Service\Exception
*/
public function submitMultiple(PlayerScoreSubmissionList $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('submitMultiple', [$params], PlayerScoreListResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Scores::class, 'Google_Service_Games_Resource_Scores');

View File

@@ -0,0 +1,76 @@
<?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\Games\Resource;
use Google\Service\Games\Snapshot;
use Google\Service\Games\SnapshotListResponse;
/**
* The "snapshots" collection of methods.
* Typical usage is:
* <code>
* $gamesService = new Google\Service\Games(...);
* $snapshots = $gamesService->snapshots;
* </code>
*/
class Snapshots extends \Google\Service\Resource
{
/**
* Retrieves the metadata for a given snapshot ID. (snapshots.get)
*
* @param string $snapshotId The ID of the snapshot.
* @param array $optParams Optional parameters.
*
* @opt_param string language The preferred language to use for strings returned
* by this method.
* @return Snapshot
* @throws \Google\Service\Exception
*/
public function get($snapshotId, $optParams = [])
{
$params = ['snapshotId' => $snapshotId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Snapshot::class);
}
/**
* Retrieves a list of snapshots created by your application for the player
* corresponding to the player ID. (snapshots.listSnapshots)
*
* @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.
*
* @opt_param string language The preferred language to use for strings returned
* by this method.
* @opt_param int maxResults The maximum number of snapshot resources to return
* in the response, used for paging. For any response, the actual number of
* snapshot resources returned may be less than the specified `maxResults`.
* @opt_param string pageToken The token returned by the previous request.
* @return SnapshotListResponse
* @throws \Google\Service\Exception
*/
public function listSnapshots($playerId, $optParams = [])
{
$params = ['playerId' => $playerId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], SnapshotListResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Snapshots::class, 'Google_Service_Games_Resource_Snapshots');

View File

@@ -0,0 +1,49 @@
<?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\Games\Resource;
use Google\Service\Games\StatsResponse;
/**
* The "stats" collection of methods.
* Typical usage is:
* <code>
* $gamesService = new Google\Service\Games(...);
* $stats = $gamesService->stats;
* </code>
*/
class Stats extends \Google\Service\Resource
{
/**
* Returns engagement and spend statistics in this application for the currently
* authenticated user. (stats.get)
*
* @param array $optParams Optional parameters.
* @return StatsResponse
* @throws \Google\Service\Exception
*/
public function get($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], StatsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Stats::class, 'Google_Service_Games_Resource_Stats');

View File

@@ -0,0 +1,42 @@
<?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\Games;
class RetrieveDeveloperGamesLastPlayerTokenResponse extends \Google\Model
{
protected $gamePlayerTokenType = GamePlayerToken::class;
protected $gamePlayerTokenDataType = '';
/**
* @param GamePlayerToken
*/
public function setGamePlayerToken(GamePlayerToken $gamePlayerToken)
{
$this->gamePlayerToken = $gamePlayerToken;
}
/**
* @return GamePlayerToken
*/
public function getGamePlayerToken()
{
return $this->gamePlayerToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RetrieveDeveloperGamesLastPlayerTokenResponse::class, 'Google_Service_Games_RetrieveDeveloperGamesLastPlayerTokenResponse');

View File

@@ -0,0 +1,43 @@
<?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\Games;
class RetrieveGamesPlayerTokensResponse extends \Google\Collection
{
protected $collection_key = 'gamePlayerTokens';
protected $gamePlayerTokensType = GamePlayerToken::class;
protected $gamePlayerTokensDataType = 'array';
/**
* @param GamePlayerToken[]
*/
public function setGamePlayerTokens($gamePlayerTokens)
{
$this->gamePlayerTokens = $gamePlayerTokens;
}
/**
* @return GamePlayerToken[]
*/
public function getGamePlayerTokens()
{
return $this->gamePlayerTokens;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RetrieveGamesPlayerTokensResponse::class, 'Google_Service_Games_RetrieveGamesPlayerTokensResponse');

View File

@@ -0,0 +1,43 @@
<?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\Games;
class RetrievePlayerTokensResponse extends \Google\Collection
{
protected $collection_key = 'tokens';
protected $tokensType = RecallToken::class;
protected $tokensDataType = 'array';
/**
* @param RecallToken[]
*/
public function setTokens($tokens)
{
$this->tokens = $tokens;
}
/**
* @return RecallToken[]
*/
public function getTokens()
{
return $this->tokens;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RetrievePlayerTokensResponse::class, 'Google_Service_Games_RetrievePlayerTokensResponse');

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\Games;
class RevisionCheckResponse extends \Google\Model
{
/**
* @var string
*/
public $apiVersion;
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $revisionStatus;
/**
* @param string
*/
public function setApiVersion($apiVersion)
{
$this->apiVersion = $apiVersion;
}
/**
* @return string
*/
public function getApiVersion()
{
return $this->apiVersion;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setRevisionStatus($revisionStatus)
{
$this->revisionStatus = $revisionStatus;
}
/**
* @return string
*/
public function getRevisionStatus()
{
return $this->revisionStatus;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RevisionCheckResponse::class, 'Google_Service_Games_RevisionCheckResponse');

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\Games;
class ScopedPlayerIds extends \Google\Model
{
/**
* @var string
*/
public $developerPlayerKey;
/**
* @var string
*/
public $gamePlayerId;
/**
* @param string
*/
public function setDeveloperPlayerKey($developerPlayerKey)
{
$this->developerPlayerKey = $developerPlayerKey;
}
/**
* @return string
*/
public function getDeveloperPlayerKey()
{
return $this->developerPlayerKey;
}
/**
* @param string
*/
public function setGamePlayerId($gamePlayerId)
{
$this->gamePlayerId = $gamePlayerId;
}
/**
* @return string
*/
public function getGamePlayerId()
{
return $this->gamePlayerId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ScopedPlayerIds::class, 'Google_Service_Games_ScopedPlayerIds');

View File

@@ -0,0 +1,116 @@
<?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\Games;
class ScoreSubmission extends \Google\Model
{
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $leaderboardId;
/**
* @var string
*/
public $score;
/**
* @var string
*/
public $scoreTag;
/**
* @var string
*/
public $signature;
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setLeaderboardId($leaderboardId)
{
$this->leaderboardId = $leaderboardId;
}
/**
* @return string
*/
public function getLeaderboardId()
{
return $this->leaderboardId;
}
/**
* @param string
*/
public function setScore($score)
{
$this->score = $score;
}
/**
* @return string
*/
public function getScore()
{
return $this->score;
}
/**
* @param string
*/
public function setScoreTag($scoreTag)
{
$this->scoreTag = $scoreTag;
}
/**
* @return string
*/
public function getScoreTag()
{
return $this->scoreTag;
}
/**
* @param string
*/
public function setSignature($signature)
{
$this->signature = $signature;
}
/**
* @return string
*/
public function getSignature()
{
return $this->signature;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ScoreSubmission::class, 'Google_Service_Games_ScoreSubmission');

View File

@@ -0,0 +1,222 @@
<?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\Games;
class Snapshot extends \Google\Model
{
protected $coverImageType = SnapshotImage::class;
protected $coverImageDataType = '';
/**
* @var string
*/
public $description;
/**
* @var string
*/
public $driveId;
/**
* @var string
*/
public $durationMillis;
/**
* @var string
*/
public $id;
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $lastModifiedMillis;
/**
* @var string
*/
public $progressValue;
/**
* @var string
*/
public $title;
/**
* @var string
*/
public $type;
/**
* @var string
*/
public $uniqueName;
/**
* @param SnapshotImage
*/
public function setCoverImage(SnapshotImage $coverImage)
{
$this->coverImage = $coverImage;
}
/**
* @return SnapshotImage
*/
public function getCoverImage()
{
return $this->coverImage;
}
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string
*/
public function setDriveId($driveId)
{
$this->driveId = $driveId;
}
/**
* @return string
*/
public function getDriveId()
{
return $this->driveId;
}
/**
* @param string
*/
public function setDurationMillis($durationMillis)
{
$this->durationMillis = $durationMillis;
}
/**
* @return string
*/
public function getDurationMillis()
{
return $this->durationMillis;
}
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setLastModifiedMillis($lastModifiedMillis)
{
$this->lastModifiedMillis = $lastModifiedMillis;
}
/**
* @return string
*/
public function getLastModifiedMillis()
{
return $this->lastModifiedMillis;
}
/**
* @param string
*/
public function setProgressValue($progressValue)
{
$this->progressValue = $progressValue;
}
/**
* @return string
*/
public function getProgressValue()
{
return $this->progressValue;
}
/**
* @param string
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
/**
* @param string
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
/**
* @param string
*/
public function setUniqueName($uniqueName)
{
$this->uniqueName = $uniqueName;
}
/**
* @return string
*/
public function getUniqueName()
{
return $this->uniqueName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Snapshot::class, 'Google_Service_Games_Snapshot');

View File

@@ -0,0 +1,119 @@
<?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\Games;
class SnapshotImage extends \Google\Model
{
protected $internal_gapi_mappings = [
"mimeType" => "mime_type",
];
/**
* @var int
*/
public $height;
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $mimeType;
/**
* @var string
*/
public $url;
/**
* @var int
*/
public $width;
/**
* @param int
*/
public function setHeight($height)
{
$this->height = $height;
}
/**
* @return int
*/
public function getHeight()
{
return $this->height;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setMimeType($mimeType)
{
$this->mimeType = $mimeType;
}
/**
* @return string
*/
public function getMimeType()
{
return $this->mimeType;
}
/**
* @param string
*/
public function setUrl($url)
{
$this->url = $url;
}
/**
* @return string
*/
public function getUrl()
{
return $this->url;
}
/**
* @param int
*/
public function setWidth($width)
{
$this->width = $width;
}
/**
* @return int
*/
public function getWidth()
{
return $this->width;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SnapshotImage::class, 'Google_Service_Games_SnapshotImage');

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\Games;
class SnapshotListResponse extends \Google\Collection
{
protected $collection_key = 'items';
protected $itemsType = Snapshot::class;
protected $itemsDataType = 'array';
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $nextPageToken;
/**
* @param Snapshot[]
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return Snapshot[]
*/
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(SnapshotListResponse::class, 'Google_Service_Games_SnapshotListResponse');

View File

@@ -0,0 +1,236 @@
<?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\Games;
class StatsResponse extends \Google\Model
{
protected $internal_gapi_mappings = [
"avgSessionLengthMinutes" => "avg_session_length_minutes",
"churnProbability" => "churn_probability",
"daysSinceLastPlayed" => "days_since_last_played",
"highSpenderProbability" => "high_spender_probability",
"numPurchases" => "num_purchases",
"numSessions" => "num_sessions",
"numSessionsPercentile" => "num_sessions_percentile",
"spendPercentile" => "spend_percentile",
"spendProbability" => "spend_probability",
"totalSpendNext28Days" => "total_spend_next_28_days",
];
/**
* @var float
*/
public $avgSessionLengthMinutes;
/**
* @var float
*/
public $churnProbability;
/**
* @var int
*/
public $daysSinceLastPlayed;
/**
* @var float
*/
public $highSpenderProbability;
/**
* @var string
*/
public $kind;
/**
* @var int
*/
public $numPurchases;
/**
* @var int
*/
public $numSessions;
/**
* @var float
*/
public $numSessionsPercentile;
/**
* @var float
*/
public $spendPercentile;
/**
* @var float
*/
public $spendProbability;
/**
* @var float
*/
public $totalSpendNext28Days;
/**
* @param float
*/
public function setAvgSessionLengthMinutes($avgSessionLengthMinutes)
{
$this->avgSessionLengthMinutes = $avgSessionLengthMinutes;
}
/**
* @return float
*/
public function getAvgSessionLengthMinutes()
{
return $this->avgSessionLengthMinutes;
}
/**
* @param float
*/
public function setChurnProbability($churnProbability)
{
$this->churnProbability = $churnProbability;
}
/**
* @return float
*/
public function getChurnProbability()
{
return $this->churnProbability;
}
/**
* @param int
*/
public function setDaysSinceLastPlayed($daysSinceLastPlayed)
{
$this->daysSinceLastPlayed = $daysSinceLastPlayed;
}
/**
* @return int
*/
public function getDaysSinceLastPlayed()
{
return $this->daysSinceLastPlayed;
}
/**
* @param float
*/
public function setHighSpenderProbability($highSpenderProbability)
{
$this->highSpenderProbability = $highSpenderProbability;
}
/**
* @return float
*/
public function getHighSpenderProbability()
{
return $this->highSpenderProbability;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param int
*/
public function setNumPurchases($numPurchases)
{
$this->numPurchases = $numPurchases;
}
/**
* @return int
*/
public function getNumPurchases()
{
return $this->numPurchases;
}
/**
* @param int
*/
public function setNumSessions($numSessions)
{
$this->numSessions = $numSessions;
}
/**
* @return int
*/
public function getNumSessions()
{
return $this->numSessions;
}
/**
* @param float
*/
public function setNumSessionsPercentile($numSessionsPercentile)
{
$this->numSessionsPercentile = $numSessionsPercentile;
}
/**
* @return float
*/
public function getNumSessionsPercentile()
{
return $this->numSessionsPercentile;
}
/**
* @param float
*/
public function setSpendPercentile($spendPercentile)
{
$this->spendPercentile = $spendPercentile;
}
/**
* @return float
*/
public function getSpendPercentile()
{
return $this->spendPercentile;
}
/**
* @param float
*/
public function setSpendProbability($spendProbability)
{
$this->spendProbability = $spendProbability;
}
/**
* @return float
*/
public function getSpendProbability()
{
return $this->spendProbability;
}
/**
* @param float
*/
public function setTotalSpendNext28Days($totalSpendNext28Days)
{
$this->totalSpendNext28Days = $totalSpendNext28Days;
}
/**
* @return float
*/
public function getTotalSpendNext28Days()
{
return $this->totalSpendNext28Days;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StatsResponse::class, 'Google_Service_Games_StatsResponse');

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\Games;
class UnlinkPersonaRequest extends \Google\Model
{
/**
* @var string
*/
public $persona;
/**
* @var string
*/
public $sessionId;
/**
* @var string
*/
public $token;
/**
* @param string
*/
public function setPersona($persona)
{
$this->persona = $persona;
}
/**
* @return string
*/
public function getPersona()
{
return $this->persona;
}
/**
* @param string
*/
public function setSessionId($sessionId)
{
$this->sessionId = $sessionId;
}
/**
* @return string
*/
public function getSessionId()
{
return $this->sessionId;
}
/**
* @param string
*/
public function setToken($token)
{
$this->token = $token;
}
/**
* @return string
*/
public function getToken()
{
return $this->token;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UnlinkPersonaRequest::class, 'Google_Service_Games_UnlinkPersonaRequest');

View File

@@ -0,0 +1,44 @@
<?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\Games;
class UnlinkPersonaResponse extends \Google\Model
{
/**
* @var bool
*/
public $unlinked;
/**
* @param bool
*/
public function setUnlinked($unlinked)
{
$this->unlinked = $unlinked;
}
/**
* @return bool
*/
public function getUnlinked()
{
return $this->unlinked;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UnlinkPersonaResponse::class, 'Google_Service_Games_UnlinkPersonaResponse');