暫無描述

LeaderboardEntry.php 2.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <?php
  2. /*
  3. * Copyright 2014 Google Inc.
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  6. * use this file except in compliance with the License. You may obtain a copy of
  7. * the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  13. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  14. * License for the specific language governing permissions and limitations under
  15. * the License.
  16. */
  17. class Google_Service_Games_LeaderboardEntry extends Google_Model
  18. {
  19. public $formattedScore;
  20. public $formattedScoreRank;
  21. public $kind;
  22. protected $playerType = 'Google_Service_Games_Player';
  23. protected $playerDataType = '';
  24. public $scoreRank;
  25. public $scoreTag;
  26. public $scoreValue;
  27. public $timeSpan;
  28. public $writeTimestampMillis;
  29. public function setFormattedScore($formattedScore)
  30. {
  31. $this->formattedScore = $formattedScore;
  32. }
  33. public function getFormattedScore()
  34. {
  35. return $this->formattedScore;
  36. }
  37. public function setFormattedScoreRank($formattedScoreRank)
  38. {
  39. $this->formattedScoreRank = $formattedScoreRank;
  40. }
  41. public function getFormattedScoreRank()
  42. {
  43. return $this->formattedScoreRank;
  44. }
  45. public function setKind($kind)
  46. {
  47. $this->kind = $kind;
  48. }
  49. public function getKind()
  50. {
  51. return $this->kind;
  52. }
  53. /**
  54. * @param Google_Service_Games_Player
  55. */
  56. public function setPlayer(Google_Service_Games_Player $player)
  57. {
  58. $this->player = $player;
  59. }
  60. /**
  61. * @return Google_Service_Games_Player
  62. */
  63. public function getPlayer()
  64. {
  65. return $this->player;
  66. }
  67. public function setScoreRank($scoreRank)
  68. {
  69. $this->scoreRank = $scoreRank;
  70. }
  71. public function getScoreRank()
  72. {
  73. return $this->scoreRank;
  74. }
  75. public function setScoreTag($scoreTag)
  76. {
  77. $this->scoreTag = $scoreTag;
  78. }
  79. public function getScoreTag()
  80. {
  81. return $this->scoreTag;
  82. }
  83. public function setScoreValue($scoreValue)
  84. {
  85. $this->scoreValue = $scoreValue;
  86. }
  87. public function getScoreValue()
  88. {
  89. return $this->scoreValue;
  90. }
  91. public function setTimeSpan($timeSpan)
  92. {
  93. $this->timeSpan = $timeSpan;
  94. }
  95. public function getTimeSpan()
  96. {
  97. return $this->timeSpan;
  98. }
  99. public function setWriteTimestampMillis($writeTimestampMillis)
  100. {
  101. $this->writeTimestampMillis = $writeTimestampMillis;
  102. }
  103. public function getWriteTimestampMillis()
  104. {
  105. return $this->writeTimestampMillis;
  106. }
  107. }