action type
This commit is contained in:
parent
34ea20934a
commit
ccaba9b0b4
@ -22,6 +22,7 @@
|
||||
|
||||
/* Begin PBXBuildFile section */
|
||||
01C851CF23CF7B260021F976 /* JSONMap.swift in Sources */ = {isa = PBXBuildFile; fileRef = 01C851CE23CF7B260021F976 /* JSONMap.swift */; };
|
||||
01C851D123CF97FE0021F976 /* ActionBack.swift in Sources */ = {isa = PBXBuildFile; fileRef = 01C851D023CF97FE0021F976 /* ActionBack.swift */; };
|
||||
01DF561421F90ADC00CC099B /* Dictionary+MFConvenience.swift in Sources */ = {isa = PBXBuildFile; fileRef = 01DF561321F90ADC00CC099B /* Dictionary+MFConvenience.swift */; };
|
||||
01F2A03623A80A7300D954D8 /* ActionProtocol.swift in Sources */ = {isa = PBXBuildFile; fileRef = 01F2A03523A80A7300D954D8 /* ActionProtocol.swift */; };
|
||||
01F2A03923A812DD00D954D8 /* ActionOpenUrl.swift in Sources */ = {isa = PBXBuildFile; fileRef = 01F2A03823A812DD00D954D8 /* ActionOpenUrl.swift */; };
|
||||
@ -166,6 +167,7 @@
|
||||
|
||||
/* Begin PBXFileReference section */
|
||||
01C851CE23CF7B260021F976 /* JSONMap.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = JSONMap.swift; sourceTree = "<group>"; };
|
||||
01C851D023CF97FE0021F976 /* ActionBack.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ActionBack.swift; sourceTree = "<group>"; };
|
||||
01DF561321F90ADC00CC099B /* Dictionary+MFConvenience.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "Dictionary+MFConvenience.swift"; sourceTree = "<group>"; };
|
||||
01F2A03523A80A7300D954D8 /* ActionProtocol.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ActionProtocol.swift; sourceTree = "<group>"; };
|
||||
01F2A03823A812DD00D954D8 /* ActionOpenUrl.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ActionOpenUrl.swift; sourceTree = "<group>"; };
|
||||
@ -454,6 +456,7 @@
|
||||
01F2A04B23A82B1B00D954D8 /* ActionCall.swift */,
|
||||
01F2A04D23A82CF500D954D8 /* ActionPopup.swift */,
|
||||
01F2A04F23A82D0800D954D8 /* ActionTopAlert.swift */,
|
||||
01C851D023CF97FE0021F976 /* ActionBack.swift */,
|
||||
);
|
||||
path = ActionType;
|
||||
sourceTree = "<group>";
|
||||
@ -931,6 +934,7 @@
|
||||
AFEA17A9209B6A1C00BC6740 /* MVMCoreBlockOperation.m in Sources */,
|
||||
AF43A70A1FC4F415008E9347 /* MVMCoreCache.m in Sources */,
|
||||
AF43A6FF1FBE3252008E9347 /* Reachability.m in Sources */,
|
||||
01C851D123CF97FE0021F976 /* ActionBack.swift in Sources */,
|
||||
01F2A03B23A8159900D954D8 /* ActionOpenApp.swift in Sources */,
|
||||
AFBB96921FBA3A9A0008D868 /* MVMCoreNavigationOperation.m in Sources */,
|
||||
AFBB96611FBA3A570008D868 /* MVMCoreLoadObject.m in Sources */,
|
||||
|
||||
16
MVMCore/MVMCore/Models/ActionType/ActionBack.swift
Normal file
16
MVMCore/MVMCore/Models/ActionType/ActionBack.swift
Normal file
@ -0,0 +1,16 @@
|
||||
//
|
||||
// File.swift
|
||||
// MVMCore
|
||||
//
|
||||
// Created by Suresh, Kamlesh on 1/15/20.
|
||||
// Copyright © 2020 myverizon. All rights reserved.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
|
||||
@objcMembers public class ActionBack: ActionProtocol {
|
||||
public static var identifier: String = "back"
|
||||
public var actionType: String?
|
||||
public var extraParameter: JSONValueDictionary?
|
||||
public var analyticsData: JSONValueDictionary?
|
||||
}
|
||||
@ -10,6 +10,7 @@ import Foundation
|
||||
|
||||
@objcMembers public class ActionCall: ActionProtocol {
|
||||
public static var identifier: String = "call"
|
||||
public var actionType: String?
|
||||
public var callNumber: String
|
||||
public var extraParameter: JSONValueDictionary?
|
||||
public var analyticsData: JSONValueDictionary?
|
||||
|
||||
@ -10,10 +10,11 @@ import Foundation
|
||||
|
||||
@objcMembers public class ActionOpenApp: ActionProtocol {
|
||||
public static var identifier: String = "openApp"
|
||||
public var appUrl: String
|
||||
public var actionType: String?
|
||||
public var appURL: String
|
||||
public var extraParameter: JSONValueDictionary?
|
||||
public var analyticsData: JSONValueDictionary?
|
||||
public init(appUrl: String) {
|
||||
self.appUrl = appUrl
|
||||
public init(appURL: String) {
|
||||
self.appURL = appURL
|
||||
}
|
||||
}
|
||||
|
||||
@ -10,6 +10,7 @@ import Foundation
|
||||
|
||||
@objcMembers public class ActionOpenPage: ActionProtocol {
|
||||
public static var identifier: String = "openPage"
|
||||
public var actionType: String?
|
||||
public var pageType: String
|
||||
public var extraParameter: JSONValueDictionary?
|
||||
public var analyticsData: JSONValueDictionary?
|
||||
|
||||
@ -10,6 +10,7 @@ import Foundation
|
||||
|
||||
@objcMembers public class ActionOpenUrl: ActionProtocol {
|
||||
public static var identifier: String = "openUrl"
|
||||
public var actionType: String?
|
||||
public var browserUrl: String
|
||||
public var extraParameter: JSONValueDictionary?
|
||||
public var analyticsData: JSONValueDictionary?
|
||||
|
||||
@ -10,6 +10,7 @@ import Foundation
|
||||
|
||||
@objcMembers public class ActionPopup: ActionProtocol {
|
||||
public static var identifier: String = "popup"
|
||||
public var actionType: String?
|
||||
public var pageType: String
|
||||
public var extraParameter: JSONValueDictionary?
|
||||
public var analyticsData: JSONValueDictionary?
|
||||
|
||||
@ -13,13 +13,7 @@ public enum ActionCodingKey: String, CodingKey {
|
||||
}
|
||||
|
||||
public protocol ActionProtocol: Model {
|
||||
var actionType: String? { get }
|
||||
var actionType: String? { get set }
|
||||
var extraParameter: JSONValueDictionary? { get set }
|
||||
var analyticsData: JSONValueDictionary? { get set }
|
||||
}
|
||||
|
||||
extension ActionProtocol {
|
||||
public var actionType: String? {
|
||||
get { return Self.identifier }
|
||||
}
|
||||
}
|
||||
|
||||
@ -10,6 +10,7 @@ import Foundation
|
||||
|
||||
@objcMembers public class ActionTopAlert: ActionProtocol {
|
||||
public static var identifier: String = "topAlert"
|
||||
public var actionType: String?
|
||||
public var pageType: String
|
||||
public var extraParameter: JSONValueDictionary?
|
||||
public var analyticsData: JSONValueDictionary?
|
||||
|
||||
@ -16,5 +16,6 @@ import Foundation
|
||||
ModelRegistry.register(ActionCall.self)
|
||||
ModelRegistry.register(ActionPopup.self)
|
||||
ModelRegistry.register(ActionTopAlert.self)
|
||||
ModelRegistry.register(ActionBack.self)
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user