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-05-24 12:08:56 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
9e09df04cd1610fa35b0ef93a470de865735486a
9e09df04
1 parent
55c2e60e
add LoyaltyContextualOfferModel
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
70 additions
and
0 deletions
.DS_Store
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
.DS_Store
View file @
9e09df0
No preview for this file type
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
View file @
9e09df0
...
...
@@ -456,6 +456,76 @@ public class swiftApi {
return
CampaignDataModel
()
.
getData
}
public
class
LoyaltyContextualOfferModel
{
private
var
sessionId
:
String
private
var
eligibleAssets
:
Array
<
String
>
private
var
id
:
String
private
var
businessAdditionalId
:
String
private
var
treatmentCode
:
String
public
init
(
sessionId
:
String
?,
eligibleAssets
:
Array
<
String
>
?,
id
:
String
?,
businessAdditionalId
:
String
?,
treatmentCode
:
String
?)
{
self
.
sessionId
=
sessionId
??
""
self
.
eligibleAssets
=
eligibleAssets
??
[]
self
.
id
=
id
??
""
self
.
businessAdditionalId
=
businessAdditionalId
??
""
self
.
treatmentCode
=
treatmentCode
??
""
}
public
init
()
{
self
.
sessionId
=
""
self
.
eligibleAssets
=
[]
self
.
id
=
""
self
.
businessAdditionalId
=
""
self
.
treatmentCode
=
""
}
public
var
_sessionId
:
String
{
get
{
// getter
return
self
.
sessionId
}
set
(
newValue
)
{
//setter
self
.
sessionId
=
newValue
}
}
public
var
_eligibleAssets
:
Array
<
String
>
{
get
{
// getter
return
self
.
eligibleAssets
}
set
(
newValue
)
{
//setter
self
.
eligibleAssets
=
newValue
}
}
public
var
_id
:
String
{
get
{
// getter
return
self
.
id
}
set
(
newValue
)
{
//setter
self
.
id
=
newValue
}
}
public
var
_businessAdditionalId
:
String
{
get
{
// getter
return
self
.
businessAdditionalId
}
set
(
newValue
)
{
//setter
self
.
businessAdditionalId
=
newValue
}
}
public
var
_treatmentCode
:
String
{
get
{
// getter
return
self
.
treatmentCode
}
set
(
newValue
)
{
//setter
self
.
treatmentCode
=
newValue
}
}
}
// public func openCoupon(parent: UIView, coupon: CouponSetItemModel) -> UIViewController {
// return UIHostingController(rootView: CouponView(parentView: parent, coupon: coupon))
// }
...
...
Please
register
or
login
to post a comment