Reworked login system + added substitution page
This commit is contained in:
9
BetterIServ.Backend/Entities/AuthKeys.cs
Normal file
9
BetterIServ.Backend/Entities/AuthKeys.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
namespace BetterIServ.Backend.Entities;
|
||||
|
||||
public struct AuthKeys {
|
||||
public string Session { get; set; }
|
||||
public string Sat { get; set; }
|
||||
public string AuthSid { get; set; }
|
||||
public string SatId { get; set; }
|
||||
public string AuthSession { get; set; }
|
||||
}
|
||||
@@ -1,8 +1,7 @@
|
||||
namespace BetterIServ.Backend.Entities;
|
||||
|
||||
public class Credentials {
|
||||
public string? Domain { get; set; }
|
||||
public string? Username { get; set; }
|
||||
public string? Password { get; set; }
|
||||
public string? Token { get; set; }
|
||||
}
|
||||
public required string Domain { get; set; }
|
||||
public required string Username { get; set; }
|
||||
public required string Password { get; set; }
|
||||
}
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
|
||||
public sealed class MailData : Credentials {
|
||||
|
||||
public string? MailBody { get; set; }
|
||||
public string? Receiver { get; set; }
|
||||
public string? Subject { get; set; }
|
||||
public required string MailBody { get; set; }
|
||||
public required string Receiver { get; set; }
|
||||
public required string Subject { get; set; }
|
||||
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
namespace BetterIServ.Backend.Entities;
|
||||
|
||||
public class SingleResult<TValue> {
|
||||
public struct SingleResult<TValue> {
|
||||
public TValue? Value { get; set; }
|
||||
}
|
||||
12
BetterIServ.Backend/Entities/Substitution.cs
Normal file
12
BetterIServ.Backend/Entities/Substitution.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
namespace BetterIServ.Backend.Entities;
|
||||
|
||||
public struct Substitution {
|
||||
public string Class { get; set; }
|
||||
public int[] Times { get; set; }
|
||||
public string Type { get; set; }
|
||||
public string Representative { get; set; }
|
||||
public string Lesson { get; set; }
|
||||
public string Room { get; set; }
|
||||
public string Teacher { get; set; }
|
||||
public string Description { get; set; }
|
||||
}
|
||||
6
BetterIServ.Backend/Entities/UnitsData.cs
Normal file
6
BetterIServ.Backend/Entities/UnitsData.cs
Normal file
@@ -0,0 +1,6 @@
|
||||
namespace BetterIServ.Backend.Entities;
|
||||
|
||||
public struct UnitsData {
|
||||
public IList<string> Notifications { get; set; }
|
||||
public IList<Substitution> Substitutions { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user