Quanxue.Zhanghao.Daochu/LearningOfficer.OA.Common/Dtos/TencentIM/TencentResult.cs

69 lines
1.8 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Dtos.TencentIM
{
public class TencentResult
{
/// <summary>
/// 请求处理的结果:
/// OK表示处理成功
/// FAIL表示失败
/// </summary>
public string ActionStatus { get; set; }
/// <summary>
/// 错误码
/// 0表示成功
/// 非0表示失败
/// </summary>
public int ErrorCode { get; set; }
/// <summary>
/// 详细错误信息
/// </summary>
public string ErrorInfo { get; set; }
/// <summary>
/// 详细的客户端展示信息
/// </summary>
public string? ErrorDisplay { get; set; }
}
public class TenantItemResult<TItem>: TencentResult
{
public List<TItem> ResultItem { get; set; }
}
public class SendMsgResult : TencentResult
{
/// <summary>
/// 消息时间戳
/// </summary>
public long MsgTime { get; set; }
/// <summary>
/// 消息唯一标识
/// </summary>
public string MsgKey { get; set; }
/// <summary>
/// 客户端唯一标识
/// </summary>
public string MsgId { get; set; }
/// <summary>
/// 部分发送失败的用户列表
/// </summary>
public List<ErrorListResult>? ErrorList { get; set; }
}
public class ErrorListResult
{
/// <summary>
/// 目标用户帐号
/// </summary>
public string To_Account { get; set; }
/// <summary>
/// 错误码
/// </summary>
public int ErrorCode { get; set; }
}
}