Skip to content
Snippets Groups Projects
Select Git revision
  • f41692a6d1b8afc648ff4aae8b2b9b249d8b0cf9
  • release default
  • master protected
  • XX-4441
  • projects/crust_RELEASE
  • project/channels
  • XX-4031/memprofile
  • hotfix/RenableHistorical
  • hotfix/SpamSingleUse
  • hotfix/dynamicRestrictedUsernameList
  • waitingRoundsRewrite
  • hotfix/byte
  • quantumSecure
  • fullRateLimit
  • XX-3564/TlsCipherSuite
  • hotfix/PermissioningRestart
  • hotfix/groupNotification
  • Josh/RateLimiting
  • Josh/Databaseless
  • jonah/delete-fix
  • hotfix/client-v2.8.1
  • v3.0.0
  • 2.3.0
  • v1.1.0
  • v1.0.0
  • v0.0.1
  • v0.0.0a
  • EmptyRepo
28 results

main.go

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
        }
      }
    }