iOS/Sources/Shared/API/Requests/MobileAppRegistrationRequest.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

37 lines
1.0 KiB
Swift

import Foundation
import ObjectMapper
class MobileAppRegistrationRequest: Mappable {
var AppData: [String: Any]?
var AppIdentifier: String?
var AppName: String?
var AppVersion: String?
var DeviceName: String?
var DeviceID: String?
var Manufacturer: String?
var Model: String?
var OSName: String?
var OSVersion: String?
var SupportsEncryption: Bool = true
// var SupportsMediaPlayer: Bool = true
init() {}
required init?(map: Map) {}
func mapping(map: Map) {
AppData <- map["app_data"]
AppIdentifier <- map["app_id"]
AppName <- map["app_name"]
AppVersion <- map["app_version"]
DeviceName <- map["device_name"]
DeviceID <- map["device_id"]
Manufacturer <- map["manufacturer"]
Model <- map["model"]
OSName <- map["os_name"]
OSVersion <- map["os_version"]
SupportsEncryption <- map["supports_encryption"]
// SupportsMediaPlayer <- map["supports_media_player"]
}
}