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-06-27 14:51:20 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ebd74fe595e4c809e2a23715363aae784bb23461
ebd74fe5
1 parent
1d521993
add LoyaltyBadgeModel, set get couponList
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
0 deletions
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
View file @
ebd74fe
...
...
@@ -13,6 +13,7 @@ public struct GlobalVariables {
static
var
customerState
:
swiftApi
.
CustomerStateModel
?
static
var
userTag
:
String
=
""
static
var
dfyCoupons
:
Array
<
swiftApi
.
ActiveDFYCouponModel
>
=
[]
static
var
couponList
:
Array
<
swiftApi
.
CouponItemModel
>
=
[]
}
public
class
swiftApi
{
...
...
@@ -1712,5 +1713,46 @@ public class swiftApi {
}
}
}
public
class
LoyaltyBadgeModel
{
private
var
value
:
Float
private
var
couponCount
:
Int
public
init
()
{
self
.
value
=
0.0
self
.
couponCount
=
0
}
public
var
_value
:
Float
{
get
{
// getter
return
self
.
value
}
set
(
newValue
)
{
//setter
self
.
value
=
newValue
}
}
public
var
_couponCount
:
Int
{
get
{
// getter
return
self
.
couponCount
}
set
(
newValue
)
{
//setter
self
.
couponCount
=
newValue
}
}
}
public
func
setCouponList
(
_
coupons
:
Array
<
CouponItemModel
>
)
{
GlobalVariables
.
couponList
=
coupons
}
public
func
getCouponList
()
->
Array
<
CouponItemModel
>
{
return
GlobalVariables
.
couponList
}
}
...
...
Please
register
or
login
to post a comment