@@ -23,7 +23,7 @@ class ConferenceOwner(dict):
23
23
def __init__ (self , dictionary : dict ):
24
24
dict .__init__ (self , dictionary )
25
25
26
- self .user_id = get_value_or_default (self , 'userID ' , None )
26
+ self .user_id = get_value_or_default (self , 'userId ' , None )
27
27
28
28
if in_and_not_none (self , 'metadata' ):
29
29
self .metadata = UserMetadata (self ['metadata' ])
@@ -194,71 +194,48 @@ def __init__(self, dictionary: dict):
194
194
self .external_photo_url = get_value_or_default (self , 'externalPhotoUrl' , None )
195
195
self .ip_address = get_value_or_default (self , 'ipAddress' , None )
196
196
197
- class RecordingSplit (dict ):
198
- """Representation of a Recording Split ."""
197
+ class ConferenceRecordingMix (dict ):
198
+ """Representation of a Conference Recording Mix ."""
199
199
200
200
def __init__ (self , dictionary : dict ):
201
201
dict .__init__ (self , dictionary )
202
202
203
- self .start_time = get_value_or_default (self , 'startTime' , 0 )
204
- self .duration = get_value_or_default (self , 'duration' , 0 )
205
- self .size = get_value_or_default (self , 'size' , 0 )
206
- self .file_name = get_value_or_default (self , 'fileName' , None )
207
- self .url = get_value_or_default (self , 'url' , None )
203
+ self .mix_id = get_value_or_default (self , 'mixId' , None )
204
+ self .width = get_value_or_default (self , 'width' , - 1 )
205
+ self .height = get_value_or_default (self , 'height' , - 1 )
206
+ self .layout_url = get_value_or_default (self , 'layoutUrl' , None )
208
207
209
- if in_and_not_none (self , 'metadata' ):
210
- self .metadata = UserMetadata (self ['metadata' ])
211
-
212
- class RecordingRecord (dict ):
213
- """Representation of a Recording Record."""
208
+ class Conference (dict ):
209
+ """Representation of a Conference."""
214
210
215
211
def __init__ (self , dictionary : dict ):
216
212
dict .__init__ (self , dictionary )
217
213
218
- self .start_time = get_value_or_default (self , 'startTime' , 0 )
219
- self .duration = get_value_or_default (self , 'duration' , 0 )
220
- self .size = get_value_or_default (self , 'size' , 0 )
221
- self .file_name = get_value_or_default (self , 'fileName' , None )
222
- self .url = get_value_or_default (self , 'url' , None )
223
-
224
- self .splits = []
225
- if in_and_not_none (self , 'splits' ):
226
- for split in self ['splits' ]:
227
- self .splits .append (RecordingSplit (split ))
214
+ self .conf_id = get_value_or_default (self , 'confId' , None )
215
+ self .conf_alias = get_value_or_default (self , 'confAlias' , None )
228
216
229
- class RecordingAudio (dict ):
230
- """Representation of a Recording Audio ."""
217
+ class ConferenceRecording (dict ):
218
+ """Representation of a Conference Recording ."""
231
219
232
220
def __init__ (self , dictionary : dict ):
233
221
dict .__init__ (self , dictionary )
234
222
235
- self .region = get_value_or_default (self , 'region' , None )
236
-
237
- if in_and_not_none (self , 'mix' ):
238
- self .mix = RecordingMix (self ['mix' ])
239
-
240
- self .records = []
241
- if in_and_not_none (self , 'records' ):
242
- for record in self ['records' ]:
243
- self .records .append (RecordingRecord (record ))
244
-
245
- class Recording (dict ):
246
- """Representation of a Recording."""
247
-
248
- def __init__ (self , dictionary : dict ):
249
- dict .__init__ (self , dictionary )
223
+ if in_and_not_none (self , 'conference' ):
224
+ self .conference = Conference (self ['conference' ])
250
225
251
- self .conf_id = get_value_or_default (self , 'confId' , None )
252
- self .alias = get_value_or_default (self , 'alias' , None )
253
- self .duration = get_value_or_default (self , 'duration' , 0 )
254
- self .ts = get_value_or_default (self , 'ts' , 0 )
226
+ self .region = get_value_or_default (self , 'region' , None )
227
+ self .url = get_value_or_default (self , 'url' , None )
228
+ self .created_at = get_value_or_default (self , 'createdAt' , None )
229
+ self .recording_type = get_value_or_default (self , 'recordingType' , None )
230
+ self .duration = get_value_or_default (self , 'duration' , - 1 )
231
+ self .filename = get_value_or_default (self , 'filename' , None )
232
+ self .size = get_value_or_default (self , 'size' , - 1 )
233
+ self .start_time = get_value_or_default (self , 'startTime' , 0 )
234
+ self .media_type = get_value_or_default (self , 'mediaType' , None )
255
235
self .region = get_value_or_default (self , 'region' , None )
256
236
257
237
if in_and_not_none (self , 'mix' ):
258
- self .mix = RecordingMix (self ['mix' ])
259
-
260
- if in_and_not_none (self , 'audio' ):
261
- self .audio = RecordingAudio (self ['audio' ])
238
+ self .mix = ConferenceRecordingMix (self ['mix' ])
262
239
263
240
class GetRecordingsResponse (PagedResponse ):
264
241
"""Representation of a Recordings response."""
@@ -269,25 +246,23 @@ def __init__(self, dictionary: dict):
269
246
self .recordings = []
270
247
if in_and_not_none (self , 'recordings' ):
271
248
for recording in self ['recordings' ]:
272
- self .recordings .append (Recording (recording ))
249
+ self .recordings .append (ConferenceRecording (recording ))
273
250
274
- class DolbyVoiceRecording ( dict ):
275
- """Representation of a Dolby Voice Recording ."""
251
+ class GetConferenceRecordingsResponse ( GetRecordingsResponse ):
252
+ """Representation of a Conference Recordings response ."""
276
253
277
254
def __init__ (self , dictionary : dict ):
278
- dict .__init__ (self , dictionary )
255
+ GetRecordingsResponse .__init__ (self , dictionary )
279
256
280
- self .region = get_value_or_default (self , 'region' , None )
281
- self .conf_id = None
282
- self .conf_alias = None
283
257
if in_and_not_none (self , 'conference' ):
284
- self .conf_id = get_value_or_default (self , 'confId' , None )
285
- self .conf_alias = get_value_or_default (self , 'confAlias' , None )
258
+ self .conference = Conference (self ['conference' ])
286
259
287
- self .records = []
288
- if in_and_not_none (self , 'records' ):
289
- for record in self ['records' ]:
290
- self .records .append (RecordingRecord (record ))
260
+ self .live_conference = get_value_or_default (self , 'liveConference' , False )
261
+
262
+ self .recordings = []
263
+ if in_and_not_none (self , 'recordings' ):
264
+ for recording in self ['recordings' ]:
265
+ self .recordings .append (ConferenceRecording (recording ))
291
266
292
267
class WebHookResponse (dict ):
293
268
"""Representation of a WebHook event response."""
0 commit comments