Skip to content
Snippets Groups Projects
Select Git revision
  • 07f51aeb4855405fd71ec8f7a4c30c7ab50d2f83
  • main default protected
  • dev protected
  • hotfixes-oct-2022
  • refactor/avatar-cell
  • 1.1.5
  • 1.1.4
  • 1.1.3
  • 1.1
  • 1.0.8
  • 1.0.7
  • 1.0.6
12 results

CollectionView.xcscheme

Blame
  • NetworkFollowerStatus.swift 635 B
    public enum NetworkFollowerStatus: Equatable {
      case stopped
      case starting
      case running
      case stopping
      case unknown(code: Int)
    }
    
    extension NetworkFollowerStatus {
      public init(rawValue: Int) {
        switch rawValue {
        case 0: self = .stopped
        case 1_000: self = .starting
        case 2_000: self = .running
        case 3_000: self = .stopping
        case let code: self = .unknown(code: code)
        }
      }
    
      public var rawValue: Int {
        switch self {
        case .stopped: return 0
        case .starting: return 1_000
        case .running: return 2_000
        case .stopping: return 3_000
        case .unknown(let code): return code
        }
      }
    }