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-04-01 12:37:57 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e89206daa39cbc594d40ed155d01c25998bd9c67
e89206da
1 parent
c0a70418
Add coupon_img key at CampaignItemModel
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 @
e89206d
...
...
@@ -1195,6 +1195,7 @@ public class swiftApi {
private
var
end_date
:
String
?
private
var
filter
:
String
?
// supermarket - free - contest etc
private
var
show_expiration
:
Bool
?
private
var
coupon_img
:
String
?
public
init
()
{
self
.
index_url
=
""
...
...
@@ -1227,6 +1228,7 @@ public class swiftApi {
self
.
end_date
=
""
self
.
filter
=
""
self
.
show_expiration
=
false
self
.
coupon_img
=
""
}
public
init
(
dictionary
:
[
String
:
Any
])
{
...
...
@@ -1243,6 +1245,7 @@ public class swiftApi {
self
.
sorting
=
dictionary
[
"sorting"
]
as?
Int
?
??
0
self
.
ccms
=
nil
self
.
coupon_availability
=
nil
self
.
coupon_img
=
dictionary
[
"coupon_img"
]
as?
String
?
??
""
let
startDateString
=
dictionary
[
"start_date"
]
as?
String
?
??
""
// Example expirationString: "start_date" = "2022-06-29 00:00:00";
...
...
@@ -1568,6 +1571,15 @@ public class swiftApi {
self
.
show_expiration
=
newValue
}
}
public
var
_coupon_img
:
String
?
{
get
{
// getter
return
self
.
coupon_img
}
set
(
newValue
)
{
//setter
self
.
coupon_img
=
newValue
}
}
}
public
class
CampaignDataModel
{
...
...
Please
register
or
login
to post a comment