1
|
|
|
<?php |
2
|
|
|
namespace Redbox\Twitch\Entity; |
3
|
|
|
|
4
|
|
|
/** |
5
|
|
|
* Class Stream |
6
|
|
|
* @package Redbox\Twitch\Entity |
7
|
|
|
*/ |
8
|
|
|
class Stream { |
9
|
|
|
|
10
|
|
|
/** |
11
|
|
|
* @var string |
12
|
|
|
*/ |
13
|
|
|
protected $video_height; |
14
|
|
|
|
15
|
|
|
/** |
16
|
|
|
* @var string |
17
|
|
|
*/ |
18
|
|
|
protected $average_fps; |
19
|
|
|
|
20
|
|
|
/** |
21
|
|
|
* @var string |
22
|
|
|
*/ |
23
|
|
|
protected $is_playlist; |
24
|
|
|
|
25
|
|
|
/** |
26
|
|
|
* @var string |
27
|
|
|
*/ |
28
|
|
|
protected $created_at; |
29
|
|
|
|
30
|
|
|
/** |
31
|
|
|
* @var \stdClass |
32
|
|
|
*/ |
33
|
|
|
protected $channel; |
34
|
|
|
|
35
|
|
|
/** |
36
|
|
|
* @var bool |
37
|
|
|
*/ |
38
|
|
|
protected $online; |
39
|
|
|
|
40
|
|
|
/** |
41
|
|
|
* @var \stdClass |
42
|
|
|
*/ |
43
|
|
|
protected $preview; |
44
|
|
|
|
45
|
|
|
/** |
46
|
|
|
* @var string |
47
|
|
|
*/ |
48
|
|
|
protected $viewers; |
49
|
|
|
|
50
|
|
|
/** |
51
|
|
|
* @var string |
52
|
|
|
*/ |
53
|
|
|
protected $delay; |
54
|
|
|
|
55
|
|
|
/** |
56
|
|
|
* @var string |
57
|
|
|
*/ |
58
|
|
|
protected $game; |
59
|
|
|
|
60
|
|
|
/** |
61
|
|
|
* @var int |
62
|
|
|
*/ |
63
|
|
|
protected $id; |
64
|
|
|
|
65
|
|
|
/** |
66
|
|
|
* @return string |
67
|
|
|
*/ |
68
|
|
|
public function getVideoHeight() |
69
|
|
|
{ |
70
|
|
|
return $this->video_height; |
71
|
|
|
} |
72
|
|
|
|
73
|
|
|
/** |
74
|
|
|
* @param string $video_height |
75
|
|
|
*/ |
76
|
|
|
public function setVideoHeight($video_height) |
77
|
|
|
{ |
78
|
|
|
$this->video_height = $video_height; |
79
|
|
|
} |
80
|
|
|
|
81
|
|
|
/** |
82
|
|
|
* @return string |
83
|
|
|
*/ |
84
|
|
|
public function getAverageFps() |
85
|
|
|
{ |
86
|
|
|
return $this->average_fps; |
87
|
|
|
} |
88
|
|
|
|
89
|
|
|
/** |
90
|
|
|
* @param string $average_fps |
91
|
|
|
*/ |
92
|
|
|
public function setAverageFps($average_fps) |
93
|
|
|
{ |
94
|
|
|
$this->average_fps = $average_fps; |
95
|
|
|
} |
96
|
|
|
|
97
|
|
|
/** |
98
|
|
|
* @return string |
99
|
|
|
*/ |
100
|
|
|
public function getIsPlaylist() |
101
|
|
|
{ |
102
|
|
|
return $this->is_playlist; |
103
|
|
|
} |
104
|
|
|
|
105
|
|
|
/** |
106
|
|
|
* @param string $is_playlist |
107
|
|
|
*/ |
108
|
|
|
public function setIsPlaylist($is_playlist) |
109
|
|
|
{ |
110
|
|
|
$this->is_playlist = $is_playlist; |
111
|
|
|
} |
112
|
|
|
|
113
|
|
|
/** |
114
|
|
|
* @return string |
115
|
|
|
*/ |
116
|
|
|
public function getCreatedAt() |
117
|
|
|
{ |
118
|
|
|
return $this->created_at; |
119
|
|
|
} |
120
|
|
|
|
121
|
|
|
/** |
122
|
|
|
* @param string $created_at |
123
|
|
|
*/ |
124
|
|
|
public function setCreatedAt($created_at) |
125
|
|
|
{ |
126
|
|
|
$this->created_at = $created_at; |
127
|
|
|
} |
128
|
|
|
|
129
|
|
|
/** |
130
|
|
|
* @return \stdClass |
131
|
|
|
*/ |
132
|
|
|
public function getChannel() |
133
|
|
|
{ |
134
|
|
|
return $this->channel; |
135
|
|
|
} |
136
|
|
|
|
137
|
|
|
/** |
138
|
|
|
* @param \stdClass $channel |
139
|
|
|
*/ |
140
|
|
|
public function setChannel($channel) |
141
|
|
|
{ |
142
|
|
|
$this->channel = $channel; |
143
|
|
|
} |
144
|
|
|
|
145
|
|
|
/** |
146
|
|
|
* @return boolean |
147
|
|
|
*/ |
148
|
|
|
public function isOnline() |
149
|
|
|
{ |
150
|
|
|
return $this->online; |
151
|
|
|
} |
152
|
|
|
|
153
|
|
|
/** |
154
|
|
|
* @param boolean $online |
155
|
|
|
*/ |
156
|
|
|
public function setOnline($online) |
157
|
|
|
{ |
158
|
|
|
$this->online = $online; |
159
|
|
|
} |
160
|
|
|
|
161
|
|
|
/** |
162
|
|
|
* @return \stdClass |
163
|
|
|
*/ |
164
|
|
|
public function getPreview() |
165
|
|
|
{ |
166
|
|
|
return $this->preview; |
167
|
|
|
} |
168
|
|
|
|
169
|
|
|
/** |
170
|
|
|
* @param \stdClass $preview |
171
|
|
|
*/ |
172
|
|
|
public function setPreview($preview) |
173
|
|
|
{ |
174
|
|
|
$this->preview = $preview; |
175
|
|
|
} |
176
|
|
|
|
177
|
|
|
/** |
178
|
|
|
* @return string |
179
|
|
|
*/ |
180
|
|
|
public function getViewers() |
181
|
|
|
{ |
182
|
|
|
return $this->viewers; |
183
|
|
|
} |
184
|
|
|
|
185
|
|
|
/** |
186
|
|
|
* @param string $viewers |
187
|
|
|
*/ |
188
|
|
|
public function setViewers($viewers) |
189
|
|
|
{ |
190
|
|
|
$this->viewers = $viewers; |
191
|
|
|
} |
192
|
|
|
|
193
|
|
|
/** |
194
|
|
|
* @return string |
195
|
|
|
*/ |
196
|
|
|
public function getDelay() |
197
|
|
|
{ |
198
|
|
|
return $this->delay; |
199
|
|
|
} |
200
|
|
|
|
201
|
|
|
/** |
202
|
|
|
* @param string $delay |
203
|
|
|
*/ |
204
|
|
|
public function setDelay($delay) |
205
|
|
|
{ |
206
|
|
|
$this->delay = $delay; |
207
|
|
|
} |
208
|
|
|
|
209
|
|
|
/** |
210
|
|
|
* @return string |
211
|
|
|
*/ |
212
|
|
|
public function getGame() |
213
|
|
|
{ |
214
|
|
|
return $this->game; |
215
|
|
|
} |
216
|
|
|
|
217
|
|
|
/** |
218
|
|
|
* @param string $game |
219
|
|
|
*/ |
220
|
|
|
public function setGame($game) |
221
|
|
|
{ |
222
|
|
|
$this->game = $game; |
223
|
|
|
} |
224
|
|
|
|
225
|
|
|
/** |
226
|
|
|
* @return int |
227
|
|
|
*/ |
228
|
|
|
public function getId() |
229
|
|
|
{ |
230
|
|
|
return $this->id; |
231
|
|
|
} |
232
|
|
|
|
233
|
|
|
/** |
234
|
|
|
* @param int $id |
235
|
|
|
*/ |
236
|
|
|
public function setId($id) |
237
|
|
|
{ |
238
|
|
|
$this->id = $id; |
239
|
|
|
} |
240
|
|
|
|
241
|
|
|
|
242
|
|
|
} |