using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Backend.Models { public enum MessageNotificationTaskType : byte { email = 0, sms = 1, line_notify = 2, } public class BackgroundServiceMessageNotificationTask { private string complete_at; private string created_at; private string updated_at; public int Id { get; set; } public byte Task_type { get; set; } public string Recipient_name { get; set; } public string Recipient_phone { get; set; } public string Recipient_email { get; set; } public string Line_token { get; set; } public string Email_subject { get; set; } public string Message_content { get; set; } public int Repeat_times { get; set; } public byte Is_complete { get; set; } public string Complete_at { get { return Convert.ToDateTime(complete_at).ToString("yyyy-MM-dd HH:mm:ss"); } set { complete_at = value; } } public string Created_at { get { return Convert.ToDateTime(created_at).ToString("yyyy-MM-dd HH:mm:ss"); } set { created_at = value; } } public string Updated_at { get { return Convert.ToDateTime(updated_at).ToString("yyyy-MM-dd HH:mm:ss"); } set { updated_at = value; } } } }