using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SafeMobileLib.WebsocketClient.Models
{
///
/// Type that specify happened reconnection
///
public enum ReconnectionType
{
///
/// Type used for initial connection to websocket stream
///
Initial = 0,
///
/// Type used when connection to websocket was lost in meantime
///
Lost = 1,
///
/// Type used when connection to websocket was lost by not receiving any message in given time-range
///
NoMessageReceived = 2,
///
/// Type used after unsuccessful previous reconnection
///
Error = 3,
///
/// Type used when reconnection was requested by user
///
ByUser = 4,
///
/// Type used when reconnection was requested by server
///
ByServer = 5
}
}