OrelStateUniversity.API 1.0.1

dotnet add package OrelStateUniversity.API --version 1.0.1
NuGet\Install-Package OrelStateUniversity.API -Version 1.0.1
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.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add OrelStateUniversity.API --version 1.0.1
#r "nuget: OrelStateUniversity.API, 1.0.1"
#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.1

// Install OrelStateUniversity.API as a Cake Tool
#tool nuget:?package=OrelStateUniversity.API&version=1.0.1

Orel State University Schedule API

.Net C#

This class library provides a client .NET implementation for interacting with the Orel 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 a schedule for a group for 7 days starting from the current moment.

Install

You can install this package at this link or using the following commands:

Install-Package OrelStateUniversity.API -Version 1.0.1

or

dotnet add package OrelStateUniversity.API --version 1.0.1

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.Id);

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.Id, course.Number);

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.Id);

Lessons for 7 days starting from the current moment 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.Id)
  .GetAwaiter()
  .GetResult();
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 649 9/2/2022
1.0.0 602 8/28/2022