SafeDispatch/SafeMobileLIB_DLL/WebsocketClient/Models/ReconnectionInfo.cs
2024-02-22 18:43:59 +02:00

34 lines
762 B
C#

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);
}
}
}