📂 File Browser

AgentAI/vendor/google/apiclient-services/src/Games
🌙 Dark Mode
🎯 Quick Launch:

📁 Directories

📁 Resource/ 🔓 Open

📄 Files

🐘 AchievementDefinition.php
▶ Open 📄 View Source
🐘 AchievementDefinitionsListResponse.php
▶ Open 📄 View Source
🐘 AchievementIncrementResponse.php
▶ Open 📄 View Source
🐘 AchievementRevealResponse.php
▶ Open 📄 View Source
🐘 AchievementSetStepsAtLeastResponse.php
▶ Open 📄 View Source
🐘 AchievementUnlockResponse.php
▶ Open 📄 View Source
🐘 AchievementUpdateMultipleRequest.php
▶ Open 📄 View Source
🐘 AchievementUpdateMultipleResponse.php
▶ Open 📄 View Source
🐘 AchievementUpdateRequest.php
▶ Open 📄 View Source
🐘 AchievementUpdateResponse.php
▶ Open 📄 View Source
🐘 Application.php
▶ Open 📄 View Source
🐘 ApplicationCategory.php
▶ Open 📄 View Source
🐘 ApplicationPlayerId.php
▶ Open 📄 View Source
🐘 ApplicationVerifyResponse.php
▶ Open 📄 View Source
🐘 Category.php
▶ Open 📄 View Source
🐘 CategoryListResponse.php
▶ Open 📄 View Source
🐘 EndPoint.php
▶ Open 📄 View Source
🐘 EventBatchRecordFailure.php
▶ Open 📄 View Source
🐘 EventChild.php
▶ Open 📄 View Source
🐘 EventDefinition.php
▶ Open 📄 View Source
🐘 EventDefinitionListResponse.php
▶ Open 📄 View Source
🐘 EventPeriodRange.php
▶ Open 📄 View Source
🐘 EventPeriodUpdate.php
▶ Open 📄 View Source
🐘 EventRecordFailure.php
▶ Open 📄 View Source
🐘 EventRecordRequest.php
▶ Open 📄 View Source
🐘 EventUpdateRequest.php
▶ Open 📄 View Source
🐘 EventUpdateResponse.php
▶ Open 📄 View Source
🐘 GamePlayerToken.php
▶ Open 📄 View Source
🐘 GamesAchievementIncrement.php
▶ Open 📄 View Source
🐘 GamesAchievementSetStepsAtLeast.php
▶ Open 📄 View Source
🐘 GeneratePlayGroupingApiTokenResponse.php
▶ Open 📄 View Source
🐘 GenerateRecallPlayGroupingApiTokenResponse.php
▶ Open 📄 View Source
🐘 GetMultipleApplicationPlayerIdsResponse.php
▶ Open 📄 View Source
🐘 ImageAsset.php
▶ Open 📄 View Source
🐘 Instance.php
▶ Open 📄 View Source
🐘 InstanceAndroidDetails.php
▶ Open 📄 View Source
🐘 InstanceIosDetails.php
▶ Open 📄 View Source
🐘 InstanceWebDetails.php
▶ Open 📄 View Source
🐘 Leaderboard.php
▶ Open 📄 View Source
🐘 LeaderboardEntry.php
▶ Open 📄 View Source
🐘 LeaderboardListResponse.php
▶ Open 📄 View Source
🐘 LeaderboardScoreRank.php
▶ Open 📄 View Source
🐘 LeaderboardScores.php
▶ Open 📄 View Source
🐘 LinkPersonaRequest.php
▶ Open 📄 View Source
🐘 LinkPersonaResponse.php
▶ Open 📄 View Source
🐘 MetagameConfig.php
▶ Open 📄 View Source
🐘 PlayGroupingApiToken.php
▶ Open 📄 View Source
🐘 Player.php
▶ Open 📄 View Source
🐘 PlayerAchievement.php
▶ Open 📄 View Source
🐘 PlayerAchievementListResponse.php
▶ Open 📄 View Source
🐘 PlayerEvent.php
▶ Open 📄 View Source
🐘 PlayerEventListResponse.php
▶ Open 📄 View Source
🐘 PlayerExperienceInfo.php
▶ Open 📄 View Source
🐘 PlayerLeaderboardScore.php
▶ Open 📄 View Source
🐘 PlayerLeaderboardScoreListResponse.php
▶ Open 📄 View Source
🐘 PlayerLevel.php
▶ Open 📄 View Source
🐘 PlayerListResponse.php
▶ Open 📄 View Source
🐘 PlayerName.php
▶ Open 📄 View Source
🐘 PlayerScore.php
▶ Open 📄 View Source
🐘 PlayerScoreListResponse.php
▶ Open 📄 View Source
🐘 PlayerScoreResponse.php
▶ Open 📄 View Source
🐘 PlayerScoreSubmissionList.php
▶ Open 📄 View Source
🐘 ProfileSettings.php
▶ Open 📄 View Source
🐘 RecallToken.php
▶ Open 📄 View Source
🐘 ResetPersonaRequest.php
▶ Open 📄 View Source
🐘 ResetPersonaResponse.php
▶ Open 📄 View Source
🐘 RetrieveDeveloperGamesLastPlayerTokenResponse.php
▶ Open 📄 View Source
🐘 RetrieveGamesPlayerTokensResponse.php
▶ Open 📄 View Source
🐘 RetrievePlayerTokensResponse.php
▶ Open 📄 View Source
🐘 RevisionCheckResponse.php
▶ Open 📄 View Source
🐘 ScopedPlayerIds.php
▶ Open 📄 View Source
🐘 ScoreSubmission.php
▶ Open 📄 View Source
🐘 Snapshot.php
▶ Open 📄 View Source
🐘 SnapshotImage.php
▶ Open 📄 View Source
🐘 SnapshotListResponse.php
▶ Open 📄 View Source
🐘 StatsResponse.php
▶ Open 📄 View Source
🐘 UnlinkPersonaRequest.php
▶ Open 📄 View Source
🐘 UnlinkPersonaResponse.php
▶ Open 📄 View Source

📄 Source: StatsResponse.php

<?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",
  ];
  /**
   * Average session length in minutes of the player. E.g., 1, 30, 60, ... . Not
   * populated if there is not enough information.
   *
   * @var float
   */
  public $avgSessionLengthMinutes;
  /**
   * The probability of the player not returning to play the game in the next
   * day. E.g., 0, 0.1, 0.5, ..., 1.0. Not populated if there is not enough
   * information.
   *
   * @var float
   */
  public $churnProbability;
  /**
   * Number of days since the player last played this game. E.g., 0, 1, 5, 10,
   * ... . Not populated if there is not enough information.
   *
   * @var int
   */
  public $daysSinceLastPlayed;
  /**
   * The probability of the player going to spend beyond a threshold amount of
   * money. E.g., 0, 0.25, 0.50, 0.75. Not populated if there is not enough
   * information.
   *
   * @var float
   */
  public $highSpenderProbability;
  /**
   * Uniquely identifies the type of this resource. Value is always the fixed
   * string `games#statsResponse`.
   *
   * @var string
   */
  public $kind;
  /**
   * Number of in-app purchases made by the player in this game. E.g., 0, 1, 5,
   * 10, ... . Not populated if there is not enough information.
   *
   * @var int
   */
  public $numPurchases;
  /**
   * The approximate number of sessions of the player within the last 28 days,
   * where a session begins when the player is connected to Play Games Services
   * and ends when they are disconnected. E.g., 0, 1, 5, 10, ... . Not populated
   * if there is not enough information.
   *
   * @var int
   */
  public $numSessions;
  /**
   * The approximation of the sessions percentile of the player within the last
   * 30 days, where a session begins when the player is connected to Play Games
   * Services and ends when they are disconnected. E.g., 0, 0.25, 0.5, 0.75. Not
   * populated if there is not enough information.
   *
   * @var float
   */
  public $numSessionsPercentile;
  /**
   * The approximate spend percentile of the player in this game. E.g., 0, 0.25,
   * 0.5, 0.75. Not populated if there is not enough information.
   *
   * @var float
   */
  public $spendPercentile;
  /**
   * The probability of the player going to spend the game in the next seven
   * days. E.g., 0, 0.25, 0.50, 0.75. Not populated if there is not enough
   * information.
   *
   * @var float
   */
  public $spendProbability;
  /**
   * The predicted amount of money that the player going to spend in the next 28
   * days. E.g., 1, 30, 60, ... . Not populated if there is not enough
   * information.
   *
   * @var float
   */
  public $totalSpendNext28Days;

  /**
   * Average session length in minutes of the player. E.g., 1, 30, 60, ... . Not
   * populated if there is not enough information.
   *
   * @param float $avgSessionLengthMinutes
   */
  public function setAvgSessionLengthMinutes($avgSessionLengthMinutes)
  {
    $this->avgSessionLengthMinutes = $avgSessionLengthMinutes;
  }
  /**
   * @return float
   */
  public function getAvgSessionLengthMinutes()
  {
    return $this->avgSessionLengthMinutes;
  }
  /**
   * The probability of the player not returning to play the game in the next
   * day. E.g., 0, 0.1, 0.5, ..., 1.0. Not populated if there is not enough
   * information.
   *
   * @param float $churnProbability
   */
  public function setChurnProbability($churnProbability)
  {
    $this->churnProbability = $churnProbability;
  }
  /**
   * @return float
   */
  public function getChurnProbability()
  {
    return $this->churnProbability;
  }
  /**
   * Number of days since the player last played this game. E.g., 0, 1, 5, 10,
   * ... . Not populated if there is not enough information.
   *
   * @param int $daysSinceLastPlayed
   */
  public function setDaysSinceLastPlayed($daysSinceLastPlayed)
  {
    $this->daysSinceLastPlayed = $daysSinceLastPlayed;
  }
  /**
   * @return int
   */
  public function getDaysSinceLastPlayed()
  {
    return $this->daysSinceLastPlayed;
  }
  /**
   * The probability of the player going to spend beyond a threshold amount of
   * money. E.g., 0, 0.25, 0.50, 0.75. Not populated if there is not enough
   * information.
   *
   * @param float $highSpenderProbability
   */
  public function setHighSpenderProbability($highSpenderProbability)
  {
    $this->highSpenderProbability = $highSpenderProbability;
  }
  /**
   * @return float
   */
  public function getHighSpenderProbability()
  {
    return $this->highSpenderProbability;
  }
  /**
   * Uniquely identifies the type of this resource. Value is always the fixed
   * string `games#statsResponse`.
   *
   * @param string $kind
   */
  public function setKind($kind)
  {
    $this->kind = $kind;
  }
  /**
   * @return string
   */
  public function getKind()
  {
    return $this->kind;
  }
  /**
   * Number of in-app purchases made by the player in this game. E.g., 0, 1, 5,
   * 10, ... . Not populated if there is not enough information.
   *
   * @param int $numPurchases
   */
  public function setNumPurchases($numPurchases)
  {
    $this->numPurchases = $numPurchases;
  }
  /**
   * @return int
   */
  public function getNumPurchases()
  {
    return $this->numPurchases;
  }
  /**
   * The approximate number of sessions of the player within the last 28 days,
   * where a session begins when the player is connected to Play Games Services
   * and ends when they are disconnected. E.g., 0, 1, 5, 10, ... . Not populated
   * if there is not enough information.
   *
   * @param int $numSessions
   */
  public function setNumSessions($numSessions)
  {
    $this->numSessions = $numSessions;
  }
  /**
   * @return int
   */
  public function getNumSessions()
  {
    return $this->numSessions;
  }
  /**
   * The approximation of the sessions percentile of the player within the last
   * 30 days, where a session begins when the player is connected to Play Games
   * Services and ends when they are disconnected. E.g., 0, 0.25, 0.5, 0.75. Not
   * populated if there is not enough information.
   *
   * @param float $numSessionsPercentile
   */
  public function setNumSessionsPercentile($numSessionsPercentile)
  {
    $this->numSessionsPercentile = $numSessionsPercentile;
  }
  /**
   * @return float
   */
  public function getNumSessionsPercentile()
  {
    return $this->numSessionsPercentile;
  }
  /**
   * The approximate spend percentile of the player in this game. E.g., 0, 0.25,
   * 0.5, 0.75. Not populated if there is not enough information.
   *
   * @param float $spendPercentile
   */
  public function setSpendPercentile($spendPercentile)
  {
    $this->spendPercentile = $spendPercentile;
  }
  /**
   * @return float
   */
  public function getSpendPercentile()
  {
    return $this->spendPercentile;
  }
  /**
   * The probability of the player going to spend the game in the next seven
   * days. E.g., 0, 0.25, 0.50, 0.75. Not populated if there is not enough
   * information.
   *
   * @param float $spendProbability
   */
  public function setSpendProbability($spendProbability)
  {
    $this->spendProbability = $spendProbability;
  }
  /**
   * @return float
   */
  public function getSpendProbability()
  {
    return $this->spendProbability;
  }
  /**
   * The predicted amount of money that the player going to spend in the next 28
   * days. E.g., 1, 30, 60, ... . Not populated if there is not enough
   * information.
   *
   * @param float $totalSpendNext28Days
   */
  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');
← Back