SafeDispatch/SafeMobileLIB_DLL/WebsocketClient/Models/ReconnectionInfo.cs

34 lines
762 B
C#
Raw Permalink Normal View History

2024-02-22 16:43:59 +00:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SafeMobileLib.WebsocketClient.Models
{
/// <summary>
/// Info about happened reconnection
/// </summary>
public class ReconnectionInfo
{
/// <inheritdoc />
public ReconnectionInfo(ReconnectionType type)
{
Type = type;
}
/// <summary>
/// Reconnection reason
/// </summary>
public ReconnectionType Type { get; }
/// <summary>
/// Simple factory method
/// </summary>
public static ReconnectionInfo Create(ReconnectionType type)
{
return new ReconnectionInfo(type);
}
}
}