ayType aytype all now AyaType or ayaType

This commit is contained in:
2020-05-15 21:08:37 +00:00
parent 7806e0df26
commit 8f3118d309
11 changed files with 77 additions and 42 deletions

View File

@@ -19,7 +19,7 @@ namespace AyaNova.Models
[Required]
public long AyId { get; set; }
[Required]
public AyaType AyType { get; set; }
public AyaType AyaType { get; set; }
[Required]
public AyaEvent AyEvent { get; set; }
@@ -32,12 +32,12 @@ namespace AyaNova.Models
Created = System.DateTime.UtcNow;
}
public Event(long userId, long ayId, AyaType ayType, AyaEvent ayEvent, string textra = null)
public Event(long userId, long ayId, AyaType ayaType, AyaEvent ayEvent, string textra = null)
{
Created = System.DateTime.UtcNow;
UserId = userId;
AyId = ayId;
AyType = ayType;
AyaType = ayaType;
AyEvent = ayEvent;
if (textra != null)
{
@@ -47,12 +47,12 @@ namespace AyaNova.Models
}
}
public Event(long userId, long ayId, AyaType ayType, AyaEvent ayEvent, DateTime created, string textra = null)
public Event(long userId, long ayId, AyaType ayaType, AyaEvent ayEvent, DateTime created, string textra = null)
{
Created = created;
UserId = userId;
AyId = ayId;
AyType = ayType;
AyaType = ayaType;
AyEvent = ayEvent;
if (textra != null)
{