예제 #1
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='periodFrom'>
 /// School courses start on or after this date
 /// </param>
 /// <param name='pageNumber'>
 /// The number of the page to return (1 is the first page).
 /// </param>
 /// <param name='pageSize'>
 /// Number of objects per page.
 /// </param>
 /// <param name='inlineCount'>
 /// A flag indicating if total number of items should be included.
 /// </param>
 /// <param name='schoolCode'>
 /// The school code for which to get data.
 /// </param>
 /// <param name='periodTo'>
 /// School courses must end on or before this date
 /// Property is nullable
 /// </param>
 /// <param name='xSelectedSchoolCode'>
 /// Selected school code, used when multiple impersonation permissions are
 /// available on the token
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <PagedResponseSchoolCourseExternalResponse> GetAsync(this ISchoolCoursesExternal operations, System.DateTime periodFrom, int pageNumber, int pageSize, bool inlineCount, string schoolCode, System.DateTime?periodTo = default(System.DateTime?), string xSelectedSchoolCode = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(periodFrom, pageNumber, pageSize, inlineCount, schoolCode, periodTo, xSelectedSchoolCode, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
예제 #2
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='periodFrom'>
 /// School courses start on or after this date
 /// </param>
 /// <param name='pageNumber'>
 /// The number of the page to return (1 is the first page).
 /// </param>
 /// <param name='pageSize'>
 /// Number of objects per page.
 /// </param>
 /// <param name='inlineCount'>
 /// A flag indicating if total number of items should be included.
 /// </param>
 /// <param name='schoolCode'>
 /// The school code for which to get data.
 /// </param>
 /// <param name='periodTo'>
 /// School courses must end on or before this date
 /// Property is nullable
 /// </param>
 /// <param name='xSelectedSchoolCode'>
 /// Selected school code, used when multiple impersonation permissions are
 /// available on the token
 /// </param>
 public static PagedResponseSchoolCourseExternalResponse Get(this ISchoolCoursesExternal operations, System.DateTime periodFrom, int pageNumber, int pageSize, bool inlineCount, string schoolCode, System.DateTime?periodTo = default(System.DateTime?), string xSelectedSchoolCode = default(string))
 {
     return(operations.GetAsync(periodFrom, pageNumber, pageSize, inlineCount, schoolCode, periodTo, xSelectedSchoolCode).GetAwaiter().GetResult());
 }