public SchoolCoursesExample(ITokenProvider tokenProvider, AppConfiguration configuration) { this.tokenProvider = tokenProvider; this.configuration = configuration; }
public LessonsExample(ITokenProvider tokenProvider, AppConfiguration configuration) { this.tokenProvider = tokenProvider; this.configuration = configuration; }
public EmployeeExample(ITokenProvider tokenProvider, AppConfiguration configuration) { this.tokenProvider = tokenProvider; this.configuration = configuration; }
public DepartmentsExample(ITokenProvider tokenProvider, AppConfiguration configuration) { this.tokenProvider = tokenProvider; this.configuration = configuration; }
private static async Task Run(AppConfiguration configuration) { Console.WriteLine("KMD Studica Examples"); using var httpClient = new HttpClient(); var tokenProvider = string.IsNullOrEmpty(configuration.LocalTestJwtToken) ? new LogicTokenProviderFactory(configuration.TokenProvider).GetProvider(httpClient) : new LocalTestTokenProvider(configuration.LocalTestJwtToken); /* * Students API examples */ // await new StudentsExample(tokenProvider, configuration).Execute(); // await new StudentsExample(tokenProvider, configuration).ExecuteBulk(); // await new StudentMarksExample(tokenProvider, configuration).Execute(); /* * School administration API examples */ // await new AreaOfResponsibilityExample(tokenProvider, configuration).Execute(); // await new AreaOfResponsibilityExample(tokenProvider, configuration).ExecuteBulk(); // await new DayCalendarsExample(tokenProvider, configuration).Execute(); // await new DepartmentsExample(tokenProvider, configuration).Execute(); // await new DepartmentsExample(tokenProvider, configuration).ExecuteBulk(); // await new EmployeeExample(tokenProvider, configuration).Execute(); // await new EmployeeExample(tokenProvider, configuration).ExecuteBulk(); // await new EmployeeExample(tokenProvider, configuration).ExecuteActiveEmployees(); // await new SchoolHourEntryExample(tokenProvider, configuration).Execute(); // await new SchoolHoursPlansExample(tokenProvider, configuration).Execute(); // await new SchoolHoursPlansExample(tokenProvider, configuration).ExecuteDetailed(); // await new RoomsExample(tokenProvider, configuration).Execute(); // await new RoomsExample(tokenProvider, configuration).ExecuteBulk(); /* * Programmes API examples */ // await new EducationalProgrammesExample(tokenProvider, configuration).Execute(); // await new EducationalProgrammesExample(tokenProvider, configuration).ExecuteBulk(); // await new SubjectCoursesExample(tokenProvider, configuration).Execute(); // await new SubjectCoursesExample(tokenProvider, configuration).ExecuteBulk(); // await new SubjectCoursesExample(tokenProvider, configuration).ExecuteStudentSubjectCourses(); // await new SubjectCoursesExample(tokenProvider, configuration).ExecuteActiveSubjectCourses(); // await new LessonsExample(tokenProvider, configuration).ExecuteGet(); // await new LessonsExample(tokenProvider, configuration).ExecuteGetBulk(); // await new LessonsExample(tokenProvider, configuration).ExecuteGetUnscheduled(); // await new LessonsExample(tokenProvider, configuration).ExecuteAddLessons(); // await new LessonsExample(tokenProvider, configuration).ExecuteEditLesson(); // await new LessonsExample(tokenProvider, configuration).ExecuteDeleteLesson(); // await new LessonsExample(tokenProvider, configuration).ExecuteDeleteLessons(); // await new AbsenceRegistrationsExample(tokenProvider, configuration).Execute(); // await new AbsenceRegistrationsExample(tokenProvider, configuration).ExecuteRegisterAbsence(); // await new SchoolCoursesExample(tokenProvider, configuration).Execute(); // await new SchoolCoursesExample(tokenProvider, configuration).ExecuteStudentSchoolCourses(); // await new ActivityReportsExample(tokenProvider, configuration).Execute(); // await new BridgingCoursesExample(tokenProvider, configuration).Execute(); /* * School Internships API examples */ // await new SchoolInternshipExample(tokenProvider, configuration).ExecuteSchoolInternship(); // await new SchoolInternshipExample(tokenProvider, configuration).ExecuteSchoolInternshipAbsence(); // await new SchoolInternshipExample(tokenProvider, configuration).ExecuteStudentInternsipLegacyApi(); }
public DayCalendarsExample(ITokenProvider tokenProvider, AppConfiguration configuration) { this.tokenProvider = tokenProvider; this.configuration = configuration; }
public AbsenceRegistrationsExample(ITokenProvider tokenProvider, AppConfiguration configuration) { this.tokenProvider = tokenProvider; this.configuration = configuration; }
public AreaOfResponsibilityExample(ITokenProvider tokenProvider, AppConfiguration configuration) { this.tokenProvider = tokenProvider; this.configuration = configuration; }
public SchoolInternshipExample(ITokenProvider tokenProvider, AppConfiguration configuration) { this.tokenProvider = tokenProvider; this.configuration = configuration; }