LeaderboardConfigurationDetail.php 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  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. namespace Google\Service\GamesConfiguration;
  18. class LeaderboardConfigurationDetail extends \Google\Model
  19. {
  20. /**
  21. * The icon url of this leaderboard. Writes to this field are ignored.
  22. *
  23. * @var string
  24. */
  25. public $iconUrl;
  26. /**
  27. * Uniquely identifies the type of this resource. Value is always the fixed
  28. * string `gamesConfiguration#leaderboardConfigurationDetail`.
  29. *
  30. * @var string
  31. */
  32. public $kind;
  33. protected $nameType = LocalizedStringBundle::class;
  34. protected $nameDataType = '';
  35. protected $scoreFormatType = GamesNumberFormatConfiguration::class;
  36. protected $scoreFormatDataType = '';
  37. /**
  38. * The sort rank of this leaderboard. Writes to this field are ignored.
  39. *
  40. * @var int
  41. */
  42. public $sortRank;
  43. /**
  44. * The icon url of this leaderboard. Writes to this field are ignored.
  45. *
  46. * @param string $iconUrl
  47. */
  48. public function setIconUrl($iconUrl)
  49. {
  50. $this->iconUrl = $iconUrl;
  51. }
  52. /**
  53. * @return string
  54. */
  55. public function getIconUrl()
  56. {
  57. return $this->iconUrl;
  58. }
  59. /**
  60. * Uniquely identifies the type of this resource. Value is always the fixed
  61. * string `gamesConfiguration#leaderboardConfigurationDetail`.
  62. *
  63. * @param string $kind
  64. */
  65. public function setKind($kind)
  66. {
  67. $this->kind = $kind;
  68. }
  69. /**
  70. * @return string
  71. */
  72. public function getKind()
  73. {
  74. return $this->kind;
  75. }
  76. /**
  77. * Localized strings for the leaderboard name.
  78. *
  79. * @param LocalizedStringBundle $name
  80. */
  81. public function setName(LocalizedStringBundle $name)
  82. {
  83. $this->name = $name;
  84. }
  85. /**
  86. * @return LocalizedStringBundle
  87. */
  88. public function getName()
  89. {
  90. return $this->name;
  91. }
  92. /**
  93. * The score formatting for the leaderboard.
  94. *
  95. * @param GamesNumberFormatConfiguration $scoreFormat
  96. */
  97. public function setScoreFormat(GamesNumberFormatConfiguration $scoreFormat)
  98. {
  99. $this->scoreFormat = $scoreFormat;
  100. }
  101. /**
  102. * @return GamesNumberFormatConfiguration
  103. */
  104. public function getScoreFormat()
  105. {
  106. return $this->scoreFormat;
  107. }
  108. /**
  109. * The sort rank of this leaderboard. Writes to this field are ignored.
  110. *
  111. * @param int $sortRank
  112. */
  113. public function setSortRank($sortRank)
  114. {
  115. $this->sortRank = $sortRank;
  116. }
  117. /**
  118. * @return int
  119. */
  120. public function getSortRank()
  121. {
  122. return $this->sortRank;
  123. }
  124. }
  125. // Adding a class alias for backwards compatibility with the previous class name.
  126. class_alias(LeaderboardConfigurationDetail::class, 'Google_Service_GamesConfiguration_LeaderboardConfigurationDetail');