Archived
Private
Public Access
1
0

Reworked login system + added substitution page

This commit is contained in:
2023-04-23 20:38:12 +02:00
parent c15df303f0
commit 45a7457ef3
26 changed files with 412 additions and 79 deletions

View 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; }
}

View File

@@ -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; }
}

View File

@@ -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; }
}

View File

@@ -1,5 +1,5 @@
namespace BetterIServ.Backend.Entities;
public class SingleResult<TValue> {
public struct SingleResult<TValue> {
public TValue? Value { get; set; }
}

View 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; }
}

View File

@@ -0,0 +1,6 @@
namespace BetterIServ.Backend.Entities;
public struct UnitsData {
public IList<string> Notifications { get; set; }
public IList<Substitution> Substitutions { get; set; }
}