Toggle navigation
Toggle navigation
This project
Loading...
Sign in
open-source
/
warply_sdk_framework
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
Manos Chorianopoulos
2022-06-29 18:34:23 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
1fc8834fe244584deb3fd5f13b0f6c598d1b354b
1fc8834f
1 parent
95758c7a
modify CampaignItemModel v2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
View file @
1fc8834
...
...
@@ -435,6 +435,7 @@ public class swiftApi {
public
let
loyaltyCampaignId
:
String
?
public
let
hasExtraFields
:
Bool
?
public
let
ccms_offer
:
String
?
public
var
loyaltyPackageId
:
String
?
public
init
()
{
self
.
index_url
=
""
...
...
@@ -449,6 +450,7 @@ public class swiftApi {
self
.
loyaltyCampaignId
=
""
self
.
hasExtraFields
=
false
self
.
ccms_offer
=
"false"
self
.
loyaltyPackageId
=
""
}
public
init
(
dictionary
:
[
String
:
Any
])
{
...
...
@@ -460,6 +462,7 @@ public class swiftApi {
self
.
session_uuid
=
dictionary
[
"session_uuid"
]
as?
String
?
??
""
self
.
is_new
=
dictionary
[
"is_new"
]
as?
Bool
?
??
false
self
.
message
=
dictionary
[
"message"
]
as?
String
?
??
""
self
.
loyaltyPackageId
=
""
// let extra_fields = dictionary["extra_fields"] as? [String: Any]? ?? ["":""]
let
extra_fields
=
dictionary
[
"extra_fields"
]
as
AnyObject
...
...
@@ -507,6 +510,15 @@ public class swiftApi {
self
.
title
=
newValue
}
}
public
var
_loyaltyPackageId
:
String
?
{
get
{
// getter
return
self
.
loyaltyPackageId
}
set
(
newValue
)
{
//setter
self
.
loyaltyPackageId
=
newValue
}
}
}
public
class
CampaignDataModel
{
...
...
Please
register
or
login
to post a comment