From 23b8b663c3b25984d65f10a24c87536ced73563e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=C3=B3thp=C3=A1l=20Csilla?= Date: Tue, 3 Nov 2020 12:07:42 +0100 Subject: [PATCH] Case, Update new fields --- CoviDok/data/Case.cs | 4 ++++ CoviDok/data/Update.cs | 1 + CoviDok/data/User.cs | 37 +++++++++++++++++++++++++++++++++++++ 3 files changed, 42 insertions(+) create mode 100644 CoviDok/data/User.cs diff --git a/CoviDok/data/Case.cs b/CoviDok/data/Case.cs index 9960088..ac0dea6 100644 --- a/CoviDok/data/Case.cs +++ b/CoviDok/data/Case.cs @@ -18,6 +18,10 @@ namespace CoviDok.data public string Assignee { get; set; } + public string Title { get; set; } + public DateTime StartDate { get; set; } //amikor a tünetek kezdődtek + public DateTime CreatedDate { get; set; } //amikor a taskot létrehozták + public DateTime LastModificationDate { get; set; } } diff --git a/CoviDok/data/Update.cs b/CoviDok/data/Update.cs index c73cc27..189afc3 100644 --- a/CoviDok/data/Update.cs +++ b/CoviDok/data/Update.cs @@ -10,6 +10,7 @@ namespace CoviDok.data public string Id { get; set; } public string Sender { get; set; } public string Content { get; set; } + public DateTime CreatedDate { get; set; } public ICollection Images = new List(); } diff --git a/CoviDok/data/User.cs b/CoviDok/data/User.cs new file mode 100644 index 0000000..0399f19 --- /dev/null +++ b/CoviDok/data/User.cs @@ -0,0 +1,37 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace CoviDokClientX.Models +{ + public class User + { + public string Id { get; set; } + public string FirstName { get; set; } + public string LastName { get; set; } + public Gender Gender { get; set; } + public Role Role { get; set; } + + public string Email { get; set; } + + public string Password { get; set; } + + public string ConfirmPassword { get; set; } + public string Address { get; set; } + public string Phone { get; set; } + public DateTime RegistrationDate { get; set; } + public int? PictureId { get; set; } + public string PictureName { get; set; } + + public string DisplayName + { + get + { + return $"{LastName} {FirstName}"; + } + } + } + + public enum Role { Doctor, Assistant, Parent, Child } + public enum Gender { Male, Female} +}