Class: GetStream::Generated::Models::QueryCallParticipantSessionsResponse
- Inherits:
-
BaseModel
- Object
- BaseModel
- GetStream::Generated::Models::QueryCallParticipantSessionsResponse
show all
- Defined in:
- lib/getstream_ruby/generated/models/query_call_participant_sessions_response.rb
Overview
Basic response information
Instance Attribute Summary collapse
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
Initialize with attributes
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# File 'lib/getstream_ruby/generated/models/query_call_participant_sessions_response.rb', line 44
def initialize(attributes = {})
super(attributes)
@call_id = attributes[:call_id] || attributes['call_id']
@call_session_id = attributes[:call_session_id] || attributes['call_session_id']
@call_type = attributes[:call_type] || attributes['call_type']
@duration = attributes[:duration] || attributes['duration']
@total_participant_duration = attributes[:total_participant_duration] || attributes['total_participant_duration']
@total_participant_sessions = attributes[:total_participant_sessions] || attributes['total_participant_sessions']
@participants_sessions = attributes[:participants_sessions] || attributes['participants_sessions']
@next = attributes[:next] || attributes['next'] || nil
@prev = attributes[:prev] || attributes['prev'] || nil
@session = attributes[:session] || attributes['session'] || nil
end
|
Instance Attribute Details
#call_id ⇒ String
14
15
16
|
# File 'lib/getstream_ruby/generated/models/query_call_participant_sessions_response.rb', line 14
def call_id
@call_id
end
|
#call_session_id ⇒ String
17
18
19
|
# File 'lib/getstream_ruby/generated/models/query_call_participant_sessions_response.rb', line 17
def call_session_id
@call_session_id
end
|
#call_type ⇒ String
20
21
22
|
# File 'lib/getstream_ruby/generated/models/query_call_participant_sessions_response.rb', line 20
def call_type
@call_type
end
|
#duration ⇒ Integer
Returns Duration of the request in milliseconds.
23
24
25
|
# File 'lib/getstream_ruby/generated/models/query_call_participant_sessions_response.rb', line 23
def duration
@duration
end
|
#next ⇒ String
35
36
37
|
# File 'lib/getstream_ruby/generated/models/query_call_participant_sessions_response.rb', line 35
def next
@next
end
|
32
33
34
|
# File 'lib/getstream_ruby/generated/models/query_call_participant_sessions_response.rb', line 32
def participants_sessions
@participants_sessions
end
|
#prev ⇒ String
38
39
40
|
# File 'lib/getstream_ruby/generated/models/query_call_participant_sessions_response.rb', line 38
def prev
@prev
end
|
41
42
43
|
# File 'lib/getstream_ruby/generated/models/query_call_participant_sessions_response.rb', line 41
def session
@session
end
|
#total_participant_duration ⇒ Integer
26
27
28
|
# File 'lib/getstream_ruby/generated/models/query_call_participant_sessions_response.rb', line 26
def total_participant_duration
@total_participant_duration
end
|
#total_participant_sessions ⇒ Integer
29
30
31
|
# File 'lib/getstream_ruby/generated/models/query_call_participant_sessions_response.rb', line 29
def total_participant_sessions
@total_participant_sessions
end
|
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
# File 'lib/getstream_ruby/generated/models/query_call_participant_sessions_response.rb', line 59
def self.json_field_mappings
{
call_id: 'call_id',
call_session_id: 'call_session_id',
call_type: 'call_type',
duration: 'duration',
total_participant_duration: 'total_participant_duration',
total_participant_sessions: 'total_participant_sessions',
participants_sessions: 'participants_sessions',
next: 'next',
prev: 'prev',
session: 'session'
}
end
|