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 |
|
---|
18 | namespace Google\Service\Games;
|
---|
19 |
|
---|
20 | class StatsResponse extends \Google\Model
|
---|
21 | {
|
---|
22 | protected $internal_gapi_mappings = [
|
---|
23 | "avgSessionLengthMinutes" => "avg_session_length_minutes",
|
---|
24 | "churnProbability" => "churn_probability",
|
---|
25 | "daysSinceLastPlayed" => "days_since_last_played",
|
---|
26 | "highSpenderProbability" => "high_spender_probability",
|
---|
27 | "numPurchases" => "num_purchases",
|
---|
28 | "numSessions" => "num_sessions",
|
---|
29 | "numSessionsPercentile" => "num_sessions_percentile",
|
---|
30 | "spendPercentile" => "spend_percentile",
|
---|
31 | "spendProbability" => "spend_probability",
|
---|
32 | "totalSpendNext28Days" => "total_spend_next_28_days",
|
---|
33 | ];
|
---|
34 | /**
|
---|
35 | * @var float
|
---|
36 | */
|
---|
37 | public $avgSessionLengthMinutes;
|
---|
38 | /**
|
---|
39 | * @var float
|
---|
40 | */
|
---|
41 | public $churnProbability;
|
---|
42 | /**
|
---|
43 | * @var int
|
---|
44 | */
|
---|
45 | public $daysSinceLastPlayed;
|
---|
46 | /**
|
---|
47 | * @var float
|
---|
48 | */
|
---|
49 | public $highSpenderProbability;
|
---|
50 | /**
|
---|
51 | * @var string
|
---|
52 | */
|
---|
53 | public $kind;
|
---|
54 | /**
|
---|
55 | * @var int
|
---|
56 | */
|
---|
57 | public $numPurchases;
|
---|
58 | /**
|
---|
59 | * @var int
|
---|
60 | */
|
---|
61 | public $numSessions;
|
---|
62 | /**
|
---|
63 | * @var float
|
---|
64 | */
|
---|
65 | public $numSessionsPercentile;
|
---|
66 | /**
|
---|
67 | * @var float
|
---|
68 | */
|
---|
69 | public $spendPercentile;
|
---|
70 | /**
|
---|
71 | * @var float
|
---|
72 | */
|
---|
73 | public $spendProbability;
|
---|
74 | /**
|
---|
75 | * @var float
|
---|
76 | */
|
---|
77 | public $totalSpendNext28Days;
|
---|
78 |
|
---|
79 | /**
|
---|
80 | * @param float
|
---|
81 | */
|
---|
82 | public function setAvgSessionLengthMinutes($avgSessionLengthMinutes)
|
---|
83 | {
|
---|
84 | $this->avgSessionLengthMinutes = $avgSessionLengthMinutes;
|
---|
85 | }
|
---|
86 | /**
|
---|
87 | * @return float
|
---|
88 | */
|
---|
89 | public function getAvgSessionLengthMinutes()
|
---|
90 | {
|
---|
91 | return $this->avgSessionLengthMinutes;
|
---|
92 | }
|
---|
93 | /**
|
---|
94 | * @param float
|
---|
95 | */
|
---|
96 | public function setChurnProbability($churnProbability)
|
---|
97 | {
|
---|
98 | $this->churnProbability = $churnProbability;
|
---|
99 | }
|
---|
100 | /**
|
---|
101 | * @return float
|
---|
102 | */
|
---|
103 | public function getChurnProbability()
|
---|
104 | {
|
---|
105 | return $this->churnProbability;
|
---|
106 | }
|
---|
107 | /**
|
---|
108 | * @param int
|
---|
109 | */
|
---|
110 | public function setDaysSinceLastPlayed($daysSinceLastPlayed)
|
---|
111 | {
|
---|
112 | $this->daysSinceLastPlayed = $daysSinceLastPlayed;
|
---|
113 | }
|
---|
114 | /**
|
---|
115 | * @return int
|
---|
116 | */
|
---|
117 | public function getDaysSinceLastPlayed()
|
---|
118 | {
|
---|
119 | return $this->daysSinceLastPlayed;
|
---|
120 | }
|
---|
121 | /**
|
---|
122 | * @param float
|
---|
123 | */
|
---|
124 | public function setHighSpenderProbability($highSpenderProbability)
|
---|
125 | {
|
---|
126 | $this->highSpenderProbability = $highSpenderProbability;
|
---|
127 | }
|
---|
128 | /**
|
---|
129 | * @return float
|
---|
130 | */
|
---|
131 | public function getHighSpenderProbability()
|
---|
132 | {
|
---|
133 | return $this->highSpenderProbability;
|
---|
134 | }
|
---|
135 | /**
|
---|
136 | * @param string
|
---|
137 | */
|
---|
138 | public function setKind($kind)
|
---|
139 | {
|
---|
140 | $this->kind = $kind;
|
---|
141 | }
|
---|
142 | /**
|
---|
143 | * @return string
|
---|
144 | */
|
---|
145 | public function getKind()
|
---|
146 | {
|
---|
147 | return $this->kind;
|
---|
148 | }
|
---|
149 | /**
|
---|
150 | * @param int
|
---|
151 | */
|
---|
152 | public function setNumPurchases($numPurchases)
|
---|
153 | {
|
---|
154 | $this->numPurchases = $numPurchases;
|
---|
155 | }
|
---|
156 | /**
|
---|
157 | * @return int
|
---|
158 | */
|
---|
159 | public function getNumPurchases()
|
---|
160 | {
|
---|
161 | return $this->numPurchases;
|
---|
162 | }
|
---|
163 | /**
|
---|
164 | * @param int
|
---|
165 | */
|
---|
166 | public function setNumSessions($numSessions)
|
---|
167 | {
|
---|
168 | $this->numSessions = $numSessions;
|
---|
169 | }
|
---|
170 | /**
|
---|
171 | * @return int
|
---|
172 | */
|
---|
173 | public function getNumSessions()
|
---|
174 | {
|
---|
175 | return $this->numSessions;
|
---|
176 | }
|
---|
177 | /**
|
---|
178 | * @param float
|
---|
179 | */
|
---|
180 | public function setNumSessionsPercentile($numSessionsPercentile)
|
---|
181 | {
|
---|
182 | $this->numSessionsPercentile = $numSessionsPercentile;
|
---|
183 | }
|
---|
184 | /**
|
---|
185 | * @return float
|
---|
186 | */
|
---|
187 | public function getNumSessionsPercentile()
|
---|
188 | {
|
---|
189 | return $this->numSessionsPercentile;
|
---|
190 | }
|
---|
191 | /**
|
---|
192 | * @param float
|
---|
193 | */
|
---|
194 | public function setSpendPercentile($spendPercentile)
|
---|
195 | {
|
---|
196 | $this->spendPercentile = $spendPercentile;
|
---|
197 | }
|
---|
198 | /**
|
---|
199 | * @return float
|
---|
200 | */
|
---|
201 | public function getSpendPercentile()
|
---|
202 | {
|
---|
203 | return $this->spendPercentile;
|
---|
204 | }
|
---|
205 | /**
|
---|
206 | * @param float
|
---|
207 | */
|
---|
208 | public function setSpendProbability($spendProbability)
|
---|
209 | {
|
---|
210 | $this->spendProbability = $spendProbability;
|
---|
211 | }
|
---|
212 | /**
|
---|
213 | * @return float
|
---|
214 | */
|
---|
215 | public function getSpendProbability()
|
---|
216 | {
|
---|
217 | return $this->spendProbability;
|
---|
218 | }
|
---|
219 | /**
|
---|
220 | * @param float
|
---|
221 | */
|
---|
222 | public function setTotalSpendNext28Days($totalSpendNext28Days)
|
---|
223 | {
|
---|
224 | $this->totalSpendNext28Days = $totalSpendNext28Days;
|
---|
225 | }
|
---|
226 | /**
|
---|
227 | * @return float
|
---|
228 | */
|
---|
229 | public function getTotalSpendNext28Days()
|
---|
230 | {
|
---|
231 | return $this->totalSpendNext28Days;
|
---|
232 | }
|
---|
233 | }
|
---|
234 |
|
---|
235 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
236 | class_alias(StatsResponse::class, 'Google_Service_Games_StatsResponse');
|
---|