required identifiers
This commit is contained in:
parent
57fa72545b
commit
8da16fe18b
@ -10,7 +10,7 @@ import Foundation
|
|||||||
|
|
||||||
@objcMembers public class ActionBackModel: ActionModelProtocol {
|
@objcMembers public class ActionBackModel: ActionModelProtocol {
|
||||||
public static var identifier: String = "back"
|
public static var identifier: String = "back"
|
||||||
public var actionType: String?
|
public var actionType: String
|
||||||
public var extraParameters: JSONValueDictionary?
|
public var extraParameters: JSONValueDictionary?
|
||||||
public var analyticsData: JSONValueDictionary?
|
public var analyticsData: JSONValueDictionary?
|
||||||
// Temporary fix till server changes
|
// Temporary fix till server changes
|
||||||
|
|||||||
@ -10,7 +10,7 @@ import Foundation
|
|||||||
|
|
||||||
@objcMembers public class ActionCallModel: ActionModelProtocol {
|
@objcMembers public class ActionCallModel: ActionModelProtocol {
|
||||||
public static var identifier: String = "call"
|
public static var identifier: String = "call"
|
||||||
public var actionType: String?
|
public var actionType: String = ActionCallModel.identifier
|
||||||
// TODO: decode into phone number once action handler is re-written
|
// TODO: decode into phone number once action handler is re-written
|
||||||
public var callNumber: String
|
public var callNumber: String
|
||||||
public var extraParameters: JSONValueDictionary?
|
public var extraParameters: JSONValueDictionary?
|
||||||
|
|||||||
@ -10,7 +10,7 @@ import UIKit
|
|||||||
|
|
||||||
@objcMembers public class ActionCancelModel: ActionModelProtocol {
|
@objcMembers public class ActionCancelModel: ActionModelProtocol {
|
||||||
public static var identifier: String = "cancel"
|
public static var identifier: String = "cancel"
|
||||||
public var actionType: String?
|
public var actionType: String
|
||||||
public var extraParameters: JSONValueDictionary?
|
public var extraParameters: JSONValueDictionary?
|
||||||
public var analyticsData: JSONValueDictionary?
|
public var analyticsData: JSONValueDictionary?
|
||||||
public var title: String?
|
public var title: String?
|
||||||
|
|||||||
@ -10,7 +10,7 @@ import Foundation
|
|||||||
|
|
||||||
public protocol ActionModelProtocol: ModelProtocol {
|
public protocol ActionModelProtocol: ModelProtocol {
|
||||||
|
|
||||||
var actionType: String? { get }
|
var actionType: String { get }
|
||||||
var extraParameters: JSONValueDictionary? { get set }
|
var extraParameters: JSONValueDictionary? { get set }
|
||||||
var analyticsData: JSONValueDictionary? { get set }
|
var analyticsData: JSONValueDictionary? { get set }
|
||||||
|
|
||||||
@ -20,7 +20,7 @@ public protocol ActionModelProtocol: ModelProtocol {
|
|||||||
|
|
||||||
public extension ActionModelProtocol {
|
public extension ActionModelProtocol {
|
||||||
|
|
||||||
var actionType: String? {
|
var actionType: String {
|
||||||
get { return Self.identifier }
|
get { return Self.identifier }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -10,7 +10,7 @@ import Foundation
|
|||||||
|
|
||||||
@objcMembers public class ActionOpenAppModel: ActionModelProtocol {
|
@objcMembers public class ActionOpenAppModel: ActionModelProtocol {
|
||||||
public static var identifier: String = "openApp"
|
public static var identifier: String = "openApp"
|
||||||
public var actionType: String?
|
public var actionType: String = ActionOpenAppModel.identifier
|
||||||
// TODO: decode into url once action handler is re-written
|
// TODO: decode into url once action handler is re-written
|
||||||
public var appURL: String
|
public var appURL: String
|
||||||
public var extraParameters: JSONValueDictionary?
|
public var extraParameters: JSONValueDictionary?
|
||||||
|
|||||||
@ -10,7 +10,7 @@ import Foundation
|
|||||||
|
|
||||||
@objcMembers public class ActionOpenPageModel: ActionModelProtocol {
|
@objcMembers public class ActionOpenPageModel: ActionModelProtocol {
|
||||||
public static var identifier: String = "openPage"
|
public static var identifier: String = "openPage"
|
||||||
public var actionType: String?
|
public var actionType: String = ActionOpenPageModel.identifier
|
||||||
public var pageType: String
|
public var pageType: String
|
||||||
public var extraParameters: JSONValueDictionary?
|
public var extraParameters: JSONValueDictionary?
|
||||||
public var analyticsData: JSONValueDictionary?
|
public var analyticsData: JSONValueDictionary?
|
||||||
|
|||||||
@ -10,7 +10,7 @@ import Foundation
|
|||||||
|
|
||||||
@objcMembers public class ActionOpenUrlModel: ActionModelProtocol {
|
@objcMembers public class ActionOpenUrlModel: ActionModelProtocol {
|
||||||
public static var identifier: String = "openURL"
|
public static var identifier: String = "openURL"
|
||||||
public var actionType: String?
|
public var actionType: String = ActionOpenUrlModel.identifier
|
||||||
// TODO: decode into url once action handler is re-written
|
// TODO: decode into url once action handler is re-written
|
||||||
public var browserUrl: String
|
public var browserUrl: String
|
||||||
public var extraParameters: JSONValueDictionary?
|
public var extraParameters: JSONValueDictionary?
|
||||||
|
|||||||
@ -10,7 +10,7 @@ import Foundation
|
|||||||
|
|
||||||
@objcMembers public class ActionPopupModel: ActionModelProtocol {
|
@objcMembers public class ActionPopupModel: ActionModelProtocol {
|
||||||
public static var identifier: String = "popup"
|
public static var identifier: String = "popup"
|
||||||
public var actionType: String?
|
public var actionType: String = ActionPopupModel.identifier
|
||||||
public var title: String?
|
public var title: String?
|
||||||
public var pageType: String
|
public var pageType: String
|
||||||
public var extraParameters: JSONValueDictionary?
|
public var extraParameters: JSONValueDictionary?
|
||||||
|
|||||||
@ -10,7 +10,7 @@ import UIKit
|
|||||||
|
|
||||||
@objcMembers public class ActionPreviousSubmitModel: ActionModelProtocol {
|
@objcMembers public class ActionPreviousSubmitModel: ActionModelProtocol {
|
||||||
public static var identifier: String = "previousSubmit"
|
public static var identifier: String = "previousSubmit"
|
||||||
public var actionType: String?
|
public var actionType: String
|
||||||
public var extraParameters: JSONValueDictionary?
|
public var extraParameters: JSONValueDictionary?
|
||||||
public var analyticsData: JSONValueDictionary?
|
public var analyticsData: JSONValueDictionary?
|
||||||
public var title: String?
|
public var title: String?
|
||||||
|
|||||||
@ -10,7 +10,7 @@ import UIKit
|
|||||||
|
|
||||||
@objcMembers public class ActionRestartModel: ActionModelProtocol {
|
@objcMembers public class ActionRestartModel: ActionModelProtocol {
|
||||||
public static var identifier: String = "restart"
|
public static var identifier: String = "restart"
|
||||||
public var actionType: String?
|
public var actionType: String
|
||||||
public var extraParameters: JSONValueDictionary?
|
public var extraParameters: JSONValueDictionary?
|
||||||
public var analyticsData: JSONValueDictionary?
|
public var analyticsData: JSONValueDictionary?
|
||||||
public var title: String?
|
public var title: String?
|
||||||
|
|||||||
@ -10,7 +10,7 @@ import UIKit
|
|||||||
|
|
||||||
@objcMembers public class ActionSettingModel: ActionModelProtocol {
|
@objcMembers public class ActionSettingModel: ActionModelProtocol {
|
||||||
public static var identifier: String = "openSettings"
|
public static var identifier: String = "openSettings"
|
||||||
public var actionType: String?
|
public var actionType: String
|
||||||
public var extraParameters: JSONValueDictionary?
|
public var extraParameters: JSONValueDictionary?
|
||||||
public var analyticsData: JSONValueDictionary?
|
public var analyticsData: JSONValueDictionary?
|
||||||
public var title: String?
|
public var title: String?
|
||||||
|
|||||||
@ -15,7 +15,7 @@ import UIKit
|
|||||||
|
|
||||||
public static var identifier: String = "share"
|
public static var identifier: String = "share"
|
||||||
|
|
||||||
public var actionType: String?
|
public var actionType: String = ActionShareModel.identifier
|
||||||
public var title: String?
|
public var title: String?
|
||||||
public var sharedType: String
|
public var sharedType: String
|
||||||
public var sharedText: String
|
public var sharedText: String
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user