34 lines
762 B
C#
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);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|