WGShare.API/WGShare.Domain/Enums/LeaveReasonEnum.cs

60 lines
2.0 KiB
C#
Raw Permalink 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 WGShare.Domain.Enums
{
/// <summary>
/// 声网回调接口:主播离开频道的原因
/// </summary>
public enum LeaveReasonEnum
{
/// <summary>
/// 主播正常离开频道。
/// </summary>
normal = 1,
/// <summary>
/// 客户端与声网业务服务器连接超时。判断标准为声网 SD-RTN 超过 10 秒未收到该主播的任何数据包,或连接单台服务器 4 秒超时并在 1 秒内没有完成重连。
/// </summary>
timeout = 2,
/// <summary>
/// 权限问题。如被运营人员通过踢人 RESTful API 踢出频道。
/// </summary>
permission = 3,
/// <summary>
/// 声网业务服务器内部原因。如声网业务服务器在调整负载,和客户端短暂断开连接,之后会重新连接。
/// </summary>
agora_internal_error = 4,
/// <summary>
/// 主播切换新设备,迫使旧设备下线。。
/// </summary>
force_logout = 5,
/// <summary>
/// 由于客户端有多个 IP 地址SDK 主动与声网业务服务器断开连接并重连。此过程用户无感知。请检查用户是否存在多个公网 IP 或使用了 VPN。
/// </summary>
multiple_ip = 9,
/// <summary>
/// 由于网络连接问题,例如 SDK 超过 4 秒未收到来自声网业务服务器的任何数据包或 socket 连接错误SDK 主动与声网业务服务器断开连接并重连。此过程用户无感知。请检查网络连接状态。
/// </summary>
network_error = 10,
/// <summary>
/// 异常用户。例如,用户短时间内频繁登录登出频道会被判定为异常用户。
/// </summary>
abnormal_user = 999,
/// <summary>
/// 其他原因
/// </summary>
other = 0
}
}