WGShare.API/WGShare.Domain/DTOs/AgoraCallback/EventBody.cs

51 lines
1.4 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;
using WGShare.Domain.Enums;
namespace WGShare.Domain.DTOs.AgoraCallback
{
public class EventBody
{
/// <summary>
/// 通知 ID标识来自声网业务服务器的一次事件通知。
/// </summary>
public string noticeId { get; set; }
/// <summary>
/// 业务 ID。值为 1 表示实时通信业务。
/// </summary>
public int productId { get; set; }
/// <summary>
/// 通知的事件类型。详见频道事件类型。
/// </summary>
public EventType eventType { get; set; }
/// <summary>
/// 声网消息服务器向你的服务器发送事件通知的 Unix 时间戳 (ms)。通知重试时该值会更新。
/// </summary>
public int notifyMs { get; set; }
/// <summary>
/// 会话 ID。
/// </summary>
public string sid { get; set; }
/// <summary>
/// 通知事件的具体内容。payload 因 eventType 而异,详见频道事件类型。
/// </summary>
public string payload { get; set; }
}
public class AgoraCallbackPayload
{
/// <summary>
/// 频道名称
/// </summary>
public string channelName { get; set; }
}
}