OrelStateUniversity.API
1.0.0
See the version list below for details.
dotnet add package OrelStateUniversity.API --version 1.0.0
NuGet\Install-Package OrelStateUniversity.API -Version 1.0.0
<PackageReference Include="OrelStateUniversity.API" Version="1.0.0" />
paket add OrelStateUniversity.API --version 1.0.0
#r "nuget: OrelStateUniversity.API, 1.0.0"
// Install OrelStateUniversity.API as a Cake Addin #addin nuget:?package=OrelStateUniversity.API&version=1.0.0 // Install OrelStateUniversity.API as a Cake Tool #tool nuget:?package=OrelStateUniversity.API&version=1.0.0
Orel State University schedule API
This class library provides a client .NET implementation for interacting with the Oryol State University schedule API.
This library is not official.
Features
- Getting a list of divisions for students;
- Getting a list of courses;
- Getting a list of groups;
- Getting the schedule for the current week.
Usage
To start working with the API, you need to create an instance of the ScheduleApiClient
class.
For example, as follows:
IScheduleApiClient client = new ScheduleApiClient();
To get a list of divisions available to students, you need to use the GetStudentDivisionsAsync
method.
For example, as follows:
IEnumerable<Division> divisions = await client.GetStudentDivisionsAsync();
To get a list of available courses for the specified division, use the GetCoursesAsync
method.
For example, as follows:
Division division = divisions.FirstOrDefault();
IEnumerable<Course> courses = await client.GetCoursesAsync(division);
To get a list of all groups for the specified division on the specified course, use the GetGroupsAsync
method.
For example, as follows:
Course course = courses.FirstOrDefault();
IEnumerable<Group> groups = await client.GetGroupsAsync(division, course);
To get a schedule for the specified group, use the GetScheduleAsync
method.
For example, as follows:
Group group = groups.FirstOrDefault();
Schedule schedule = await client.GetScheduleAsync(group);
Lessons for the current week will be available in the Lessons
property.
For example, as follows:
Lesson lesson = schedule.Lessons.FirstOrDefault();
// Process the information about the lesson.
Non-asynchronous call
You can use all of these methods in non-synchronous projects as follows:
Schedule schedule = client.GetScheduleAsync(group).Result;
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net6.0
- Newtonsoft.Json (>= 13.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.