2023-03-16 13:49:04 -04:00
|
|
|
import GeneratedConnectionRecordingModel from '../generated/models/connection-recording';
|
|
|
|
|
import { belongsTo, hasMany } from '@ember-data/model';
|
2023-04-24 12:10:17 -05:00
|
|
|
import { sort } from '@ember/object/computed';
|
2023-03-16 13:49:04 -04:00
|
|
|
|
|
|
|
|
export default class ConnectionRecordingModel extends GeneratedConnectionRecordingModel {
|
2023-03-31 17:19:46 -04:00
|
|
|
@belongsTo('session-recording', { async: false }) session_recording;
|
|
|
|
|
@hasMany('channel-recording', { async: false }) channel_recordings;
|
2023-04-24 12:10:17 -05:00
|
|
|
|
|
|
|
|
startTimeSortingDesc = ['start_time:desc'];
|
|
|
|
|
@sort('channel_recordings', 'startTimeSortingDesc')
|
|
|
|
|
sortedChannelsByStartTimeDesc;
|
2023-03-16 13:49:04 -04:00
|
|
|
}
|