齐越消息中心
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

71 lines
1.8 KiB

using CommunityToolkit.Mvvm.ComponentModel;
namespace QYMessageCenter.Client.Models
{
public class Message : ObservableObject
{
private string appCode;
private string title;
private string content;
public long Id { get; set; }
/// <summary>
/// 消息频道
/// </summary>
public string Channel { get; set; }
/// <summary>
/// 消息所属团队Id
/// </summary>
public string TeamId { get; set; }
/// <summary>
/// 消息所属店铺Id
/// </summary>
public string ShopId { get; set; }
public DateTime? CreateTime { get; set; }
/// <summary>
/// 自定义类型编码
/// </summary>
public string CustomTypeCode { get; set; }
/// <summary>
/// 已读人员
/// </summary>
public string ReaderId { get; set; }
/// <summary>
/// 发送人
/// </summary>
public string SenderId { get; set; }
/// <summary>
/// 接收人(可空)
/// </summary>
public string RecevierId { get; set; }
/// <summary>
/// 是否为Json消息, 解析规则参考CustomTypeCode的约定
/// </summary>
public bool IsJsonMsg { get; set; }
/// <summary>
/// 消息所属应用
/// </summary>
public string AppCode { get => appCode; set { SetProperty(ref appCode, value); } }
/// <summary>
/// 消息标题
/// </summary>
public string Title { get => title; set { SetProperty(ref title, value); } }
/// <summary>
/// 消息内容
/// </summary>
public string Content { get => content; set { SetProperty(ref content, value); } }
}
}