35 lines
803 B
C#
35 lines
803 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace MoviconHub.App.Models
|
|
{
|
|
/// <summary>
|
|
/// WebSocket连接事件参数
|
|
/// </summary>
|
|
public class WebSocketConnectEventArgs : EventArgs
|
|
{
|
|
/// <summary>
|
|
/// 服务器地址
|
|
/// </summary>
|
|
public string ServerAddress { get; set; }
|
|
|
|
/// <summary>
|
|
/// 服务器端口
|
|
/// </summary>
|
|
public int ServerPort { get; set; }
|
|
|
|
/// <summary>
|
|
/// 是否是重新连接
|
|
/// </summary>
|
|
public bool IsReconnection { get; set; }
|
|
|
|
/// <summary>
|
|
/// 连接时间
|
|
/// </summary>
|
|
public DateTime ConnectTime { get; set; } = DateTime.Now;
|
|
}
|
|
}
|