Files
raven/server/AyaNova/models/Event.cs
2018-08-23 20:53:38 +00:00

49 lines
1.1 KiB
C#

using System;
using AyaNova.Biz;
using System.ComponentModel.DataAnnotations;
namespace AyaNova.Models
{
/// <summary>
/// Event log entry
/// </summary>
public partial class Event
{
public long Id { get; set; }
public uint ConcurrencyToken { get; set; }
public DateTime Created { get; set; }
[Required]
public long OwnerId { get; set; }
//-----------------------------------------
[Required]
public long AyId { get; set; }
[Required]
public AyaType AyType { get; set; }
[Required]
public AyaEvent AyEvent { get; set; }
public string Textra { get; set; }
public Event()
{
Created = System.DateTime.UtcNow;
}
public Event(long ownerId, long ayId, AyaType ayType, AyaEvent ayEvent, string textra = null)
{
Created = System.DateTime.UtcNow;
OwnerId = ownerId;
AyId = ayId;
AyType=ayType;
AyEvent = ayEvent;
if (textra != null)
{
Textra = textra;
}
}
}//eoc
}//eons