mirror of
https://github.com/home-assistant/iOS.git
synced 2026-02-04 11:42:39 -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.
25 lines
576 B
Swift
25 lines
576 B
Swift
import Foundation
|
|
import ObjectMapper
|
|
|
|
class MobileAppUpdateRegistrationRequest: Mappable {
|
|
var AppData: [String: Any]?
|
|
var AppVersion: String?
|
|
var DeviceName: String?
|
|
var Manufacturer: String?
|
|
var Model: String?
|
|
var OSVersion: String?
|
|
|
|
init() {}
|
|
|
|
required init?(map: Map) {}
|
|
|
|
func mapping(map: Map) {
|
|
AppData <- map["app_data"]
|
|
AppVersion <- map["app_version"]
|
|
DeviceName <- map["device_name"]
|
|
Manufacturer <- map["manufacturer"]
|
|
Model <- map["model"]
|
|
OSVersion <- map["os_version"]
|
|
}
|
|
}
|