You've already forked ios-client
mirror of
https://github.com/netbirdio/ios-client.git
synced 2026-05-22 17:10:12 -07:00
28 lines
552 B
Swift
28 lines
552 B
Swift
//
|
|
// ClientState.swift
|
|
// NetBird
|
|
//
|
|
// Created by Pascal Fischer on 09.11.23.
|
|
//
|
|
|
|
enum ClientState: Codable, CustomStringConvertible, Hashable {
|
|
case connected
|
|
case connecting
|
|
case disconnected
|
|
case disconnecting
|
|
|
|
var description: String {
|
|
switch self {
|
|
case .connected:
|
|
return "Connected"
|
|
case .connecting:
|
|
return "Connecting..."
|
|
case .disconnected:
|
|
return "Disconnected"
|
|
case .disconnecting:
|
|
return "Disconnecting..."
|
|
}
|
|
}
|
|
}
|
|
|