/// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='dateFrom'>
 /// Beginning of the range for absence date. The {DateFrom} parameter
 /// determines date to get absence data from, as well as the school year period
 /// </param>
 /// <param name='dateTo'>
 /// End of the range for absence date.
 /// The {DateTo} parameter must be within the same school year as {DateFrom}
 /// </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='studentId'>
 /// Absent student.
 /// </param>
 /// <param name='lessonId'>
 /// Lesson of absence.
 /// </param>
 /// <param name='onlyAbsenceReports'>
 /// Only retrieve reports of absence or partial absence,
 /// defaults to false (retrieve everything)
 /// </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 <PagedResponseAbsenceRegistrationExternalResponse> GetAsync(this IAbsenceRegistrationsExternal operations, System.DateTime dateFrom, System.DateTime dateTo, int pageNumber, int pageSize, bool inlineCount, string schoolCode, System.Guid?studentId = default(System.Guid?), System.Guid?lessonId = default(System.Guid?), bool?onlyAbsenceReports = default(bool?), string xSelectedSchoolCode = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(dateFrom, dateTo, pageNumber, pageSize, inlineCount, schoolCode, studentId, lessonId, onlyAbsenceReports, xSelectedSchoolCode, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='dateFrom'>
 /// Beginning of the range for absence date. The {DateFrom} parameter
 /// determines date to get absence data from, as well as the school year period
 /// </param>
 /// <param name='dateTo'>
 /// End of the range for absence date.
 /// The {DateTo} parameter must be within the same school year as {DateFrom}
 /// </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='studentId'>
 /// Absent student.
 /// </param>
 /// <param name='lessonId'>
 /// Lesson of absence.
 /// </param>
 /// <param name='onlyAbsenceReports'>
 /// Only retrieve reports of absence or partial absence,
 /// defaults to false (retrieve everything)
 /// </param>
 /// <param name='xSelectedSchoolCode'>
 /// Selected school code, used when multiple impersonation permissions are
 /// available on the token
 /// </param>
 public static PagedResponseAbsenceRegistrationExternalResponse Get(this IAbsenceRegistrationsExternal operations, System.DateTime dateFrom, System.DateTime dateTo, int pageNumber, int pageSize, bool inlineCount, string schoolCode, System.Guid?studentId = default(System.Guid?), System.Guid?lessonId = default(System.Guid?), bool?onlyAbsenceReports = default(bool?), string xSelectedSchoolCode = default(string))
 {
     return(operations.GetAsync(dateFrom, dateTo, pageNumber, pageSize, inlineCount, schoolCode, studentId, lessonId, onlyAbsenceReports, xSelectedSchoolCode).GetAwaiter().GetResult());
 }