Рефактор
Some checks failed
Create and publish a Docker image / Publish image (push) Failing after 9s
Some checks failed
Create and publish a Docker image / Publish image (push) Failing after 9s
This commit is contained in:
51
ModeusSchedule.Abstractions/DTO/AttendeesDTO.cs
Normal file
51
ModeusSchedule.Abstractions/DTO/AttendeesDTO.cs
Normal file
@@ -0,0 +1,51 @@
|
||||
using System.Text.Json;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
#pragma warning disable CS8618
|
||||
#pragma warning disable CS8601
|
||||
#pragma warning disable CS8603
|
||||
|
||||
namespace ModeusSchedule.Abstractions.DTO;
|
||||
|
||||
public partial class Attendees
|
||||
{
|
||||
public static List<Attendees> FromJson(string json)
|
||||
{
|
||||
return JsonSerializer.Deserialize<List<Attendees>>(json);
|
||||
}
|
||||
}
|
||||
|
||||
public partial class Attendees
|
||||
{
|
||||
[JsonPropertyName("id")] public Guid Id { get; set; }
|
||||
|
||||
[JsonPropertyName("roleId")] public string RoleId { get; set; }
|
||||
|
||||
[JsonPropertyName("roleName")] public string RoleName { get; set; }
|
||||
|
||||
[JsonPropertyName("roleNamePlural")] public string RoleNamePlural { get; set; }
|
||||
|
||||
[JsonPropertyName("roleDisplayOrder")] public long RoleDisplayOrder { get; set; }
|
||||
|
||||
[JsonPropertyName("personId")] public Guid PersonId { get; set; }
|
||||
|
||||
[JsonPropertyName("lastName")] public string LastName { get; set; }
|
||||
|
||||
[JsonPropertyName("firstName")] public string FirstName { get; set; }
|
||||
|
||||
[JsonPropertyName("middleName")] public string MiddleName { get; set; }
|
||||
|
||||
[JsonPropertyName("fullName")] public string FullName { get; set; }
|
||||
|
||||
[JsonPropertyName("studentId")] public Guid? StudentId { get; set; }
|
||||
|
||||
[JsonPropertyName("specialtyCode")] public string SpecialtyCode { get; set; }
|
||||
|
||||
[JsonPropertyName("specialtyName")] public string SpecialtyName { get; set; }
|
||||
|
||||
[JsonPropertyName("specialtyProfile")] public string SpecialtyProfile { get; set; }
|
||||
}
|
||||
|
||||
#pragma warning restore CS8618
|
||||
#pragma warning restore CS8601
|
||||
#pragma warning restore CS8603
|
||||
Reference in New Issue
Block a user