/// <summary> /// Initializes a new instance of the ApplicationList class. /// </summary> /// <param name="applicationListResult"> /// Result of a REST call, containing list of applications. /// </param> internal ApplicationList(ApplicationListResult applicationListResult) { if (applicationListResult == null) { throw new ArgumentNullException("applicationListResult"); } this.Applications = applicationListResult.Applications.Select(applicationResult => new ApplicationDetails(applicationResult)); }
/// <inheritdoc /> public async Task <IEnumerable <ApplicationDetails> > ListCompletedApplicationsAsync(DateTime submittedAfterInUtc, DateTime submittedBeforeInUtc) { long submittedTimeBegin = ConvertDateTimeToUnixEpoch(submittedAfterInUtc); long submittedTimeEnd = ConvertDateTimeToUnixEpoch(submittedBeforeInUtc); ApplicationListResult result = await this.readProxy.ListCompletedApplicationsAsync(submittedTimeBegin.ToString(), submittedTimeEnd.ToString()); ApplicationList applications = new ApplicationList(result); return(applications.Applications); }