iOS/Sources/Shared/API/Responses/MobileAppRegistrationResponse.swift
Zac West 640cca884b
Add SwiftFormat to project (#1463)
Adds new fastlane lanes:
- `fastlane lint` which checks the linters
- `fastlane autocorrect` which applies the linters which can autocorrect (Rubocop, SwiftFormat)

Adds a build step to the Codegen abstract target which runs SwiftFormat in lint mode, pointing out what it's going to change when run.

Applies SwiftFormat to nearly all code -- exempts a few externally-sourced files and generated code.
2021-02-05 22:06:25 -08:00

19 lines
554 B
Swift

import Foundation
import ObjectMapper
public class MobileAppRegistrationResponse: Mappable {
public var CloudhookURL: URL?
public var RemoteUIURL: URL?
public var WebhookID: String = "THIS_SHOULDNT_BE_POSSIBLE_LOL"
public var WebhookSecret: String?
public required init?(map: Map) {}
public func mapping(map: Map) {
CloudhookURL <- (map["cloudhook_url"], URLTransform())
RemoteUIURL <- (map["remote_ui_url"], URLTransform())
WebhookID <- map["webhook_id"]
WebhookSecret <- map["secret"]
}
}