Class: GetStream::Generated::Models::CallResponse

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/getstream_ruby/generated/models/call_response.rb

Overview

Represents a call

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(attributes = {}) ⇒ CallResponse

Initialize with attributes



86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
# File 'lib/getstream_ruby/generated/models/call_response.rb', line 86

def initialize(attributes = {})
  super(attributes)
  @backstage = attributes[:backstage] || attributes['backstage']
  @captioning = attributes[:captioning] || attributes['captioning']
  @cid = attributes[:cid] || attributes['cid']
  @created_at = attributes[:created_at] || attributes['created_at']
  @current_session_id = attributes[:current_session_id] || attributes['current_session_id']
  @id = attributes[:id] || attributes['id']
  @recording = attributes[:recording] || attributes['recording']
  @transcribing = attributes[:transcribing] || attributes['transcribing']
  @translating = attributes[:translating] || attributes['translating']
  @type = attributes[:type] || attributes['type']
  @updated_at = attributes[:updated_at] || attributes['updated_at']
  @blocked_user_ids = attributes[:blocked_user_ids] || attributes['blocked_user_ids']
  @created_by = attributes[:created_by] || attributes['created_by']
  @custom = attributes[:custom] || attributes['custom']
  @egress = attributes[:egress] || attributes['egress']
  @ingress = attributes[:ingress] || attributes['ingress']
  @settings = attributes[:settings] || attributes['settings']
  @channel_cid = attributes[:channel_cid] || attributes['channel_cid'] || nil
  @ended_at = attributes[:ended_at] || attributes['ended_at'] || nil
  @join_ahead_time_seconds = attributes[:join_ahead_time_seconds] || attributes['join_ahead_time_seconds'] || nil
  @starts_at = attributes[:starts_at] || attributes['starts_at'] || nil
  @team = attributes[:team] || attributes['team'] || nil
  @session = attributes[:session] || attributes['session'] || nil
  @thumbnails = attributes[:thumbnails] || attributes['thumbnails'] || nil
end

Instance Attribute Details

#backstageBoolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/getstream_ruby/generated/models/call_response.rb', line 14

def backstage
  @backstage
end

#blocked_user_idsArray<String>

Returns:

  • (Array<String>)


47
48
49
# File 'lib/getstream_ruby/generated/models/call_response.rb', line 47

def blocked_user_ids
  @blocked_user_ids
end

#captioningBoolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/getstream_ruby/generated/models/call_response.rb', line 17

def captioning
  @captioning
end

#channel_cidString

Returns:

  • (String)


65
66
67
# File 'lib/getstream_ruby/generated/models/call_response.rb', line 65

def channel_cid
  @channel_cid
end

#cidString

Returns The unique identifier for a call (<type>:<id>).

Returns:

  • (String)

    The unique identifier for a call (<type>:<id>)



20
21
22
# File 'lib/getstream_ruby/generated/models/call_response.rb', line 20

def cid
  @cid
end

#created_atDateTime

Returns Date/time of creation.

Returns:

  • (DateTime)

    Date/time of creation



23
24
25
# File 'lib/getstream_ruby/generated/models/call_response.rb', line 23

def created_at
  @created_at
end

#created_byUserResponse

Returns:



50
51
52
# File 'lib/getstream_ruby/generated/models/call_response.rb', line 50

def created_by
  @created_by
end

#current_session_idString

Returns:

  • (String)


26
27
28
# File 'lib/getstream_ruby/generated/models/call_response.rb', line 26

def current_session_id
  @current_session_id
end

#customObject

Returns Custom data for this object.

Returns:

  • (Object)

    Custom data for this object



53
54
55
# File 'lib/getstream_ruby/generated/models/call_response.rb', line 53

def custom
  @custom
end

#egressEgressResponse

Returns:



56
57
58
# File 'lib/getstream_ruby/generated/models/call_response.rb', line 56

def egress
  @egress
end

#ended_atDateTime

Returns Date/time when the call ended.

Returns:

  • (DateTime)

    Date/time when the call ended



68
69
70
# File 'lib/getstream_ruby/generated/models/call_response.rb', line 68

def ended_at
  @ended_at
end

#idString

Returns Call ID.

Returns:

  • (String)

    Call ID



29
30
31
# File 'lib/getstream_ruby/generated/models/call_response.rb', line 29

def id
  @id
end

#ingressCallIngressResponse

Returns:



59
60
61
# File 'lib/getstream_ruby/generated/models/call_response.rb', line 59

def ingress
  @ingress
end

#join_ahead_time_secondsInteger

Returns:

  • (Integer)


71
72
73
# File 'lib/getstream_ruby/generated/models/call_response.rb', line 71

def join_ahead_time_seconds
  @join_ahead_time_seconds
end

#recordingBoolean

Returns:

  • (Boolean)


32
33
34
# File 'lib/getstream_ruby/generated/models/call_response.rb', line 32

def recording
  @recording
end

#sessionCallSessionResponse

Returns:



80
81
82
# File 'lib/getstream_ruby/generated/models/call_response.rb', line 80

def session
  @session
end

#settingsCallSettingsResponse



62
63
64
# File 'lib/getstream_ruby/generated/models/call_response.rb', line 62

def settings
  @settings
end

#starts_atDateTime

Returns Date/time when the call will start.

Returns:

  • (DateTime)

    Date/time when the call will start



74
75
76
# File 'lib/getstream_ruby/generated/models/call_response.rb', line 74

def starts_at
  @starts_at
end

#teamString

Returns:

  • (String)


77
78
79
# File 'lib/getstream_ruby/generated/models/call_response.rb', line 77

def team
  @team
end

#thumbnailsThumbnailResponse

Returns:



83
84
85
# File 'lib/getstream_ruby/generated/models/call_response.rb', line 83

def thumbnails
  @thumbnails
end

#transcribingBoolean

Returns:

  • (Boolean)


35
36
37
# File 'lib/getstream_ruby/generated/models/call_response.rb', line 35

def transcribing
  @transcribing
end

#translatingBoolean

Returns:

  • (Boolean)


38
39
40
# File 'lib/getstream_ruby/generated/models/call_response.rb', line 38

def translating
  @translating
end

#typeString

Returns The type of call.

Returns:

  • (String)

    The type of call



41
42
43
# File 'lib/getstream_ruby/generated/models/call_response.rb', line 41

def type
  @type
end

#updated_atDateTime

Returns Date/time of the last update.

Returns:

  • (DateTime)

    Date/time of the last update



44
45
46
# File 'lib/getstream_ruby/generated/models/call_response.rb', line 44

def updated_at
  @updated_at
end

Class Method Details

.json_field_mappingsObject

Override field mappings for JSON serialization



115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
# File 'lib/getstream_ruby/generated/models/call_response.rb', line 115

def self.json_field_mappings
  {
    backstage: 'backstage',
    captioning: 'captioning',
    cid: 'cid',
    created_at: 'created_at',
    current_session_id: 'current_session_id',
    id: 'id',
    recording: 'recording',
    transcribing: 'transcribing',
    translating: 'translating',
    type: 'type',
    updated_at: 'updated_at',
    blocked_user_ids: 'blocked_user_ids',
    created_by: 'created_by',
    custom: 'custom',
    egress: 'egress',
    ingress: 'ingress',
    settings: 'settings',
    channel_cid: 'channel_cid',
    ended_at: 'ended_at',
    join_ahead_time_seconds: 'join_ahead_time_seconds',
    starts_at: 'starts_at',
    team: 'team',
    session: 'session',
    thumbnails: 'thumbnails'
  }
end