Showing
1 changed file
with
42 additions
and
0 deletions
... | @@ -1041,4 +1041,46 @@ public class swiftApi { | ... | @@ -1041,4 +1041,46 @@ public class swiftApi { |
1041 | } | 1041 | } |
1042 | } | 1042 | } |
1043 | 1043 | ||
1044 | + public class LoyaltySDKFirebaseEventModel { | ||
1045 | + private var eventName: String | ||
1046 | + private var parameters: [String: String] | ||
1047 | + | ||
1048 | + | ||
1049 | + public init() { | ||
1050 | + self.eventName = "" | ||
1051 | + self.parameters = [String: String]() | ||
1052 | + | ||
1053 | + } | ||
1054 | + | ||
1055 | + public var _eventName: String { | ||
1056 | + get { // getter | ||
1057 | + return self.eventName | ||
1058 | + } | ||
1059 | + set(newValue) { //setter | ||
1060 | + self.eventName = newValue | ||
1061 | + } | ||
1062 | + } | ||
1063 | + | ||
1064 | + public var _parameters: [String: String] { | ||
1065 | + get { // getter | ||
1066 | + return self.parameters | ||
1067 | + } | ||
1068 | + set(newValue) { //setter | ||
1069 | + self.parameters = newValue | ||
1070 | + } | ||
1071 | + } | ||
1072 | + | ||
1073 | + public var setParameter: (key: String, value: String) { | ||
1074 | + @available(*, unavailable) | ||
1075 | + get { | ||
1076 | +// fatalError("You cannot read from this object.") | ||
1077 | + return (key: "", value: "") | ||
1078 | + } | ||
1079 | + set(newValue) { //setter | ||
1080 | + self.parameters.updateValue(newValue.1, forKey: newValue.0) | ||
1081 | + | ||
1082 | + } | ||
1083 | + } | ||
1084 | + } | ||
1085 | + | ||
1044 | } | 1086 | } | ... | ... |
-
Please register or login to post a comment