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
2023-03-21 12:25:06 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a24f1c7745d71723d2558eb3401cbba7ea05d327
a24f1c77
1 parent
b20b8d73
Add banner_img, banner_title at CampaignItemModel
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
View file @
a24f1c7
...
...
@@ -903,6 +903,8 @@ public class swiftApi {
private
var
ccms
:
LoyaltyContextualOfferModel
?
private
var
carousel
:
String
?
private
var
category_title
:
String
?
private
var
banner_img
:
String
?
private
var
banner_title
:
String
?
public
init
()
{
self
.
index_url
=
""
...
...
@@ -927,6 +929,8 @@ public class swiftApi {
self
.
ccms
=
nil
self
.
carousel
=
"false"
self
.
category_title
=
""
self
.
banner_img
=
""
self
.
banner_title
=
""
}
public
init
(
dictionary
:
[
String
:
Any
])
{
...
...
@@ -953,6 +957,8 @@ public class swiftApi {
self
.
type
=
extra_fields
[
"type"
]
as?
String
?
??
""
self
.
carousel
=
extra_fields
[
"carousel"
]
as?
String
?
??
"false"
self
.
category_title
=
extra_fields
[
"category_title"
]
as?
String
??
""
self
.
banner_img
=
extra_fields
[
"Banner_img"
]
as?
String
??
""
self
.
banner_title
=
extra_fields
[
"Banner_title"
]
as?
String
??
""
}
else
{
self
.
subcategory
=
""
self
.
loyaltyCampaignId
=
""
...
...
@@ -962,6 +968,8 @@ public class swiftApi {
self
.
type
=
""
self
.
carousel
=
"false"
self
.
category_title
=
""
self
.
banner_img
=
""
self
.
banner_title
=
""
}
// let extra_fields = dictionary["extra_fields"] as AnyObject
...
...
@@ -1162,6 +1170,24 @@ public class swiftApi {
self
.
category_title
=
newValue
}
}
public
var
_banner_img
:
String
?
{
get
{
// getter
return
self
.
banner_img
}
set
(
newValue
)
{
//setter
self
.
banner_img
=
newValue
}
}
public
var
_banner_title
:
String
?
{
get
{
// getter
return
self
.
banner_title
}
set
(
newValue
)
{
//setter
self
.
banner_title
=
newValue
}
}
}
public
class
CampaignDataModel
{
...
...
Please
register
or
login
to post a comment