OrelStateUniversity.API 1.0.0

There is a newer version of this package available.
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
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="OrelStateUniversity.API" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add OrelStateUniversity.API --version 1.0.0
#r "nuget: OrelStateUniversity.API, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// 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

.Net C#

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.1 667 9/2/2022
1.0.0 617 8/28/2022