Skip to content
Snippets Groups Projects
Commit 924e5217 authored by Dariusz Rybicki's avatar Dariusz Rybicki
Browse files

Update NetworkFollowerStatus model

parent 9ef9abd1
No related branches found
No related tags found
2 merge requests!102Release 1.0.0,!18Update Bindings
public enum NetworkFollowerStatus: Equatable { public enum NetworkFollowerStatus: Equatable {
case stopped case stopped
case starting
case running case running
case stopping case stopping
case unknown(code: Int) case unknown(code: Int)
...@@ -10,7 +9,6 @@ extension NetworkFollowerStatus { ...@@ -10,7 +9,6 @@ extension NetworkFollowerStatus {
public init(rawValue: Int) { public init(rawValue: Int) {
switch rawValue { switch rawValue {
case 0: self = .stopped case 0: self = .stopped
case 1_000: self = .starting
case 2_000: self = .running case 2_000: self = .running
case 3_000: self = .stopping case 3_000: self = .stopping
case let code: self = .unknown(code: code) case let code: self = .unknown(code: code)
...@@ -20,7 +18,6 @@ extension NetworkFollowerStatus { ...@@ -20,7 +18,6 @@ extension NetworkFollowerStatus {
public var rawValue: Int { public var rawValue: Int {
switch self { switch self {
case .stopped: return 0 case .stopped: return 0
case .starting: return 1_000
case .running: return 2_000 case .running: return 2_000
case .stopping: return 3_000 case .stopping: return 3_000
case .unknown(let code): return code case .unknown(let code): return code
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment