19 lines
306 B
Swift
19 lines
306 B
Swift
|
import Foundation
|
||
|
|
||
|
enum RequestType {
|
||
|
case challenge
|
||
|
case unlock
|
||
|
}
|
||
|
|
||
|
extension RequestType: CustomStringConvertible {
|
||
|
|
||
|
var description: String {
|
||
|
switch self {
|
||
|
case .challenge:
|
||
|
return "Challenge"
|
||
|
case .unlock:
|
||
|
return "Unlock"
|
||
|
}
|
||
|
}
|
||
|
}
|