using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SafeMobileLib.WebsocketClient.Models { /// /// Type that specify happened disconnection /// public enum DisconnectionType { /// /// Type used for exit event, disposing of the websocket client /// Exit = 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 when connection or reconnection returned error /// Error = 3, /// /// Type used when disconnection was requested by user /// ByUser = 4, /// /// Type used when disconnection was requested by server /// ByServer = 5 } }