แก้บั้กออกคำสั่ง + ใส่ Payload ใน inbox + noti

This commit is contained in:
Suphonchai Phoonsawat 2023-09-11 13:53:53 +07:00
parent e451149b2f
commit 356fcba76a
9 changed files with 785 additions and 222 deletions

View file

@ -0,0 +1,14 @@
namespace BMA.EHR.Application.Responses
{
public class CommandPayload
{
public List<PayloadAttachment> attachments { get; set; }
}
public class PayloadAttachment
{
public string name { get; set; }
public string url { get; set; }
}
}

View file

@ -0,0 +1,19 @@
namespace BMA.EHR.Application.Responses.Messages
{
public class InboxResponse
{
public string Subject { get; set; } = string.Empty;
public string Body { get; set; } = string.Empty;
public Guid ReceiverUserId { get; set; } = Guid.Empty;
public CommandPayload Payload { get; set; } = new CommandPayload();
public bool IsOpen { get; set; } = false;
public DateTime ReceiveDate { get; set; } = DateTime.Now;
public DateTime? OpenDate { get; set; }
}
}

View file

@ -0,0 +1,19 @@
namespace BMA.EHR.Application.Responses.Messages
{
public class NotificationResponse
{
public string Body { get; set; } = string.Empty;
public Guid ReceiverUserId { get; set; } = Guid.Empty;
public string Type { get; set; } = "TEXT";
public CommandPayload Payload { get; set; } = new();
public bool IsOpen { get; set; } = false;
public DateTime ReceiveDate { get; set; } = DateTime.Now;
public DateTime? OpenDate { get; set; }
}
}