Class: TencentCloud::Live::V20180801::StreamOnlineInfo
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Live::V20180801::StreamOnlineInfo
- Defined in:
- lib/v20180801/models.rb
Overview
查询当前正在推流的信息
Instance Attribute Summary collapse
-
#AppName ⇒ Object
0 - 无延播, 1 - 有延播。.
-
#DomainName ⇒ Object
0 - 无延播, 1 - 有延播。.
-
#PublishTimeList ⇒ Object
0 - 无延播, 1 - 有延播。.
-
#PushToDelay ⇒ Object
0 - 无延播, 1 - 有延播。.
-
#StreamName ⇒ Object
0 - 无延播, 1 - 有延播。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(streamname = nil, publishtimelist = nil, appname = nil, domainname = nil, pushtodelay = nil) ⇒ StreamOnlineInfo
constructor
A new instance of StreamOnlineInfo.
Constructor Details
#initialize(streamname = nil, publishtimelist = nil, appname = nil, domainname = nil, pushtodelay = nil) ⇒ StreamOnlineInfo
Returns a new instance of StreamOnlineInfo.
15229 15230 15231 15232 15233 15234 15235 |
# File 'lib/v20180801/models.rb', line 15229 def initialize(streamname=nil, publishtimelist=nil, appname=nil, domainname=nil, pushtodelay=nil) @StreamName = streamname @PublishTimeList = publishtimelist @AppName = appname @DomainName = domainname @PushToDelay = pushtodelay end |
Instance Attribute Details
#AppName ⇒ Object
0 - 无延播,1 - 有延播。
15227 15228 15229 |
# File 'lib/v20180801/models.rb', line 15227 def AppName @AppName end |
#DomainName ⇒ Object
0 - 无延播,1 - 有延播。
15227 15228 15229 |
# File 'lib/v20180801/models.rb', line 15227 def DomainName @DomainName end |
#PublishTimeList ⇒ Object
0 - 无延播,1 - 有延播。
15227 15228 15229 |
# File 'lib/v20180801/models.rb', line 15227 def PublishTimeList @PublishTimeList end |
#PushToDelay ⇒ Object
0 - 无延播,1 - 有延播。
15227 15228 15229 |
# File 'lib/v20180801/models.rb', line 15227 def PushToDelay @PushToDelay end |
#StreamName ⇒ Object
0 - 无延播,1 - 有延播。
15227 15228 15229 |
# File 'lib/v20180801/models.rb', line 15227 def StreamName @StreamName end |
Instance Method Details
#deserialize(params) ⇒ Object
15237 15238 15239 15240 15241 15242 15243 15244 15245 15246 15247 15248 15249 15250 |
# File 'lib/v20180801/models.rb', line 15237 def deserialize(params) @StreamName = params['StreamName'] unless params['PublishTimeList'].nil? @PublishTimeList = [] params['PublishTimeList'].each do |i| publishtime_tmp = PublishTime.new publishtime_tmp.deserialize(i) @PublishTimeList << publishtime_tmp end end @AppName = params['AppName'] @DomainName = params['DomainName'] @PushToDelay = params['PushToDelay'] end |