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
2024-03-21 14:16:34 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e3f0189e6b173d0fcf34b67942ae20cf25a7cd8d
e3f0189e
1 parent
01c5c7f6
Added show_expiration key at 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 @
e3f0189
...
...
@@ -1194,6 +1194,7 @@ public class swiftApi {
private
var
start_date
:
String
?
private
var
end_date
:
String
?
private
var
filter
:
String
?
// supermarket - free - contest etc
private
var
show_expiration
:
Bool
?
public
init
()
{
self
.
index_url
=
""
...
...
@@ -1225,6 +1226,7 @@ public class swiftApi {
self
.
start_date
=
""
self
.
end_date
=
""
self
.
filter
=
""
self
.
show_expiration
=
false
}
public
init
(
dictionary
:
[
String
:
Any
])
{
...
...
@@ -1280,6 +1282,7 @@ public class swiftApi {
self
.
banner_title
=
extra_fields
[
"Banner_title"
]
as?
String
??
""
self
.
category_id
=
extra_fields
[
"category_id"
]
as?
String
??
""
self
.
filter
=
extra_fields
[
"filter"
]
as?
String
??
""
self
.
show_expiration
=
extra_fields
[
"show_expiration"
]
as?
Bool
?
??
false
}
else
{
self
.
subcategory
=
""
self
.
loyaltyCampaignId
=
""
...
...
@@ -1292,6 +1295,7 @@ public class swiftApi {
self
.
banner_img
=
""
self
.
banner_title
=
""
self
.
filter
=
""
self
.
show_expiration
=
false
}
// let extra_fields = dictionary["extra_fields"] as AnyObject
...
...
@@ -1555,6 +1559,15 @@ public class swiftApi {
self
.
filter
=
newValue
}
}
public
var
_show_expiration
:
Bool
?
{
get
{
// getter
return
self
.
show_expiration
}
set
(
newValue
)
{
//setter
self
.
show_expiration
=
newValue
}
}
}
public
class
CampaignDataModel
{
...
...
Please
register
or
login
to post a comment