แก้บั้กออกคำสั่ง + ใส่ Payload ใน inbox + noti
This commit is contained in:
parent
e451149b2f
commit
356fcba76a
9 changed files with 785 additions and 222 deletions
14
BMA.EHR.Application/Responses/CommandPayload.cs
Normal file
14
BMA.EHR.Application/Responses/CommandPayload.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
19
BMA.EHR.Application/Responses/Messages/InboxResponse.cs
Normal file
19
BMA.EHR.Application/Responses/Messages/InboxResponse.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
|
|
@ -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; }
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue