mirror of
https://github.com/home-assistant/iOS.git
synced 2026-02-18 23:10:10 -06:00
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.
19 lines
554 B
Swift
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"]
|
|
}
|
|
}
|