OnvifCreateRecordingJobRecordingsCommand constructor

OnvifCreateRecordingJobRecordingsCommand()

Implementation

OnvifCreateRecordingJobRecordingsCommand() {
  argParser
    ..addOption('job-configuration-schedule-token',
        valueHelp: 'string',
        help:
            'This attribute adds an additional requirement for activating the recording job. If this optional field is provided the job shall only record if the schedule exists and is active.')
    ..addOption('job-configuration-recording-token',
        valueHelp: 'string',
        mandatory: true,
        help:
            'Identifies the recording to which this job shall store the received data.')
    ..addOption('job-configuration-mode',
        valueHelp: 'string',
        allowed: RecordingJobConfigurationMode.values
            .map((mode) => mode.value)
            .toList(),
        help:
            '''The mode of the job. If it is idle, nothing shall happen. If it is active, the device shall try to obtain data from the receivers. A client shall use GetRecordingJobState to determine if data transfer is really taking place.

The only valid values for Mode shall be “Idle” and “Active”.''')
    ..addOption('job-configuration-priority',
        valueHelp: 'int',
        mandatory: true,
        help:
            'This shall be a non-negative number. If there are multiple recording jobs that store data to the same track, the device will only store the data for the recording job with the highest priority. The priority is specified per recording job, but the device shall determine the priority of each track individually. If there are two recording jobs with the same priority, the device shall record the data corresponding to the recording job that was activated the latest.');
}