-
Notifications
You must be signed in to change notification settings - Fork 2
/
Student.cs
35 lines (30 loc) · 966 Bytes
/
Student.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Scholar
{
public sealed class Student
{
public int error { get; set; }
public Information information { get; set; }
public class Verify
{
public int error { get; set; }
public string message { get; set; }
}
public static Verify VerifyStudent(string username, string password)
{
return new Request<Verify>("student/verify/u=" + username + "&p=" + password).Send();
}
public static Student GetInformation(string username)
{
return new Request<Student>("student/" + username).Send();
}
public static Classes GetClasses(string username)
{
return new Request<Classes>("student/" + username + "/classes").Send();
}
}
}