using APT.BaseData.Domain.Enums;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace APT.BaseData.Domain.ApiModel.EX
{
public class NotificationBase
{
///
/// FMNotificationShowTypeEnum
///
public int ShowInfoType { get; set; }
public string Title { get; set; }
public string Message { get; set; }
///
/// FMNotificationTypeEnum
///
public int NotificatoinType { get; set; }
}
public class SendNotificationModel : NotificationBase
{
public SendNotificationModel()
{
this.ClientType = (int)FMNotificationClientTypeEnum.默认;
}
public Guid? UserId { get; set; }
public Guid? OrgId { get; set; }
///
/// FMNotificationOrgTypeEnum
///
public int CheckOrgType { get; set; }
///
/// FMNotificationClientTypeEnum
///
public int ClientType { get; set; }
///
/// 报警通知ID
///
public Guid? AlarmId { get; set; }
///
/// 用户组
///
public List UserIds { get; set; }
}
public class NotificationModel : NotificationBase
{
public Guid? NotificationId { get; set; }
///
/// 发布人
///
public Guid? UserId { get; set; }
///
/// 发布人
///
public string UserName { get; set; }
///
/// 发布时间
///
public DateTime? Time { get; set; }
///
/// 是否已经查看
///
public bool IsAccepted { get; set; }
}
public class AlarmNotificationModel
{
public Guid? AlarmId { get; set; }
public int TotalCount { get; set; }
public string Message { get; set; }
}
}