Esempio n. 1
0
 public Task <IPageCollection <ProjectResponse> > GetProjectsAsync(ProjectStatusEnum?status = null, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(GetProjectsAsync(
                status: EnumSerializer.Serialize(status),
                cancellationToken: cancellationToken
                ));
 }
Esempio n. 2
0
        public Task <IPageCollection <RecordingResponse> > GetRecordingsAsync(
            RecordingTypeEnum type,
            IReadOnlyCollection <int> buckets   = null,
            RecordingStatusEnum?status          = null,
            RecordingSortEnum?sort              = null,
            SortDirection?direction             = null,
            CancellationToken cancellationToken = default(CancellationToken))
        {
            var bucketString = buckets != null?string.Join(",", buckets) : null;

            return(GetRecordingsAsync(
                       type: EnumSerializer.Serialize(type),
                       bucket: bucketString,
                       status: EnumSerializer.Serialize(status),
                       sort: EnumSerializer.Serialize(sort),
                       direction: EnumSerializer.Serialize(direction),
                       cancellationToken: cancellationToken
                       ));
        }