Class: TencentCloud::Mps::V20190612::FlowMediaInfo
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Mps::V20190612::FlowMediaInfo
- Defined in:
- lib/v20190612/models.rb
Overview
传输流的媒体数据。
Instance Attribute Summary collapse
- #Audio ⇒ Object
- #ClientIp ⇒ Object
- #Network ⇒ Object
- #SessionId ⇒ Object
- #Timestamp ⇒ Object
- #Video ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(timestamp = nil, network = nil, video = nil, audio = nil, sessionid = nil, clientip = nil) ⇒ FlowMediaInfo
constructor
A new instance of FlowMediaInfo.
Constructor Details
#initialize(timestamp = nil, network = nil, video = nil, audio = nil, sessionid = nil, clientip = nil) ⇒ FlowMediaInfo
Returns a new instance of FlowMediaInfo.
16994 16995 16996 16997 16998 16999 17000 17001 |
# File 'lib/v20190612/models.rb', line 16994 def initialize(=nil, network=nil, video=nil, audio=nil, sessionid=nil, clientip=nil) @Timestamp = @Network = network @Video = video @Audio = audio @SessionId = sessionid @ClientIp = clientip end |
Instance Attribute Details
#Audio ⇒ Object
16992 16993 16994 |
# File 'lib/v20190612/models.rb', line 16992 def Audio @Audio end |
#ClientIp ⇒ Object
16992 16993 16994 |
# File 'lib/v20190612/models.rb', line 16992 def ClientIp @ClientIp end |
#Network ⇒ Object
16992 16993 16994 |
# File 'lib/v20190612/models.rb', line 16992 def Network @Network end |
#SessionId ⇒ Object
16992 16993 16994 |
# File 'lib/v20190612/models.rb', line 16992 def SessionId @SessionId end |
#Timestamp ⇒ Object
16992 16993 16994 |
# File 'lib/v20190612/models.rb', line 16992 def Timestamp @Timestamp end |
#Video ⇒ Object
16992 16993 16994 |
# File 'lib/v20190612/models.rb', line 16992 def Video @Video end |
Instance Method Details
#deserialize(params) ⇒ Object
17003 17004 17005 17006 17007 17008 17009 17010 17011 17012 17013 17014 17015 17016 17017 17018 17019 17020 17021 17022 17023 17024 |
# File 'lib/v20190612/models.rb', line 17003 def deserialize(params) @Timestamp = params['Timestamp'] @Network = params['Network'] unless params['Video'].nil? @Video = [] params['Video'].each do |i| flowmediavideo_tmp = FlowMediaVideo.new flowmediavideo_tmp.deserialize(i) @Video << flowmediavideo_tmp end end unless params['Audio'].nil? @Audio = [] params['Audio'].each do |i| flowmediaaudio_tmp = FlowMediaAudio.new flowmediaaudio_tmp.deserialize(i) @Audio << flowmediaaudio_tmp end end @SessionId = params['SessionId'] @ClientIp = params['ClientIp'] end |