mirror of
https://github.com/home-assistant/iOS.git
synced 2026-02-16 18:58:17 -06:00
## Summary This pr intruduces the following changes: - Upgrades the [Alomofire dependecy](142efae0cc). - Removes not needed [available anotations](a4e71a3c88) and split up code in multiple files; The anotations are not needed since https://github.com/home-assistant/iOS/pull/2469. ## Screenshots No user faceing changes ## Link to pull request in Documentation repository NA ## Any other notes NA
18 lines
500 B
Swift
18 lines
500 B
Swift
import Foundation
|
|
import ObjectMapper
|
|
|
|
public struct MobileAppConfig: ImmutableMappable {
|
|
public var push: MobileAppConfigPush
|
|
public var actions: [MobileAppConfigAction]
|
|
|
|
init(push: MobileAppConfigPush = .init(), actions: [MobileAppConfigAction] = []) {
|
|
self.push = push
|
|
self.actions = actions
|
|
}
|
|
|
|
public init(map: Map) throws {
|
|
self.push = (try? map.value("push")) ?? MobileAppConfigPush()
|
|
self.actions = map.value("actions", default: [])
|
|
}
|
|
}
|