コード例 #1
0
        private List <RecordingDTO> GetRecordings(CanvasConnectCredentials credentials, int courseId, AdobeConnectProvider provider)
        {
            var meeting = this.CanvasCourseMeetingModel.GetOneByCourseId(credentials.Id, courseId).Value;

            if (meeting == null)
            {
                return(null);
            }

            var result = provider.GetMeetingRecordings(new string[] { meeting.ScoId });

            return(result.Values.Select(v => new RecordingDTO()
            {
                name = v.Name,
                description = v.Description,
                begin_date = v.BeginDate.ToString("MM-dd-yyyy h:mm:ss tt"),
                end_date = v.EndDate.ToString("MM-dd-yyyy h:mm:ss tt"),
                duration = v.Duration,
                url = Credentials.ACDomain + v.UrlPath.Trim("/".ToCharArray())
            }).ToList());
        }