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-10-10 17:30:54 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
36ea1332f9cb0fd30249c7cb9c62811be1ff4c46
36ea1332
1 parent
4800ab0b
update CampaignItemModel
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
View file @
36ea133
...
...
@@ -804,6 +804,7 @@ public class swiftApi {
public
var
sorting
:
Int
?
private
var
ccms
:
LoyaltyContextualOfferModel
?
private
var
carousel
:
String
?
private
var
category_title
:
String
?
public
init
()
{
self
.
index_url
=
""
...
...
@@ -827,6 +828,7 @@ public class swiftApi {
self
.
sorting
=
0
self
.
ccms
=
nil
self
.
carousel
=
"false"
self
.
category_title
=
""
}
public
init
(
dictionary
:
[
String
:
Any
])
{
...
...
@@ -852,6 +854,7 @@ public class swiftApi {
self
.
badge
=
extra_fields
[
"badge"
]
as?
String
?
??
""
self
.
type
=
extra_fields
[
"type"
]
as?
String
?
??
""
self
.
carousel
=
extra_fields
[
"carousel"
]
as?
String
?
??
"false"
self
.
category_title
=
extra_fields
[
"category_title"
]
as?
String
??
""
}
else
{
self
.
subcategory
=
""
self
.
loyaltyCampaignId
=
""
...
...
@@ -860,6 +863,7 @@ public class swiftApi {
self
.
badge
=
""
self
.
type
=
""
self
.
carousel
=
"false"
self
.
category_title
=
""
}
// let extra_fields = dictionary["extra_fields"] as AnyObject
...
...
@@ -1051,6 +1055,15 @@ public class swiftApi {
self
.
carousel
=
newValue
}
}
public
var
_category_title
:
String
?
{
get
{
// getter
return
self
.
category_title
}
set
(
newValue
)
{
//setter
self
.
category_title
=
newValue
}
}
}
public
class
CampaignDataModel
{
...
...
Please
register
or
login
to post a comment