Showing
1 changed file
with
20 additions
and
0 deletions
| ... | @@ -1771,4 +1771,24 @@ public class swiftApi { | ... | @@ -1771,4 +1771,24 @@ public class swiftApi { |
| 1771 | return GlobalVariables.loyaltyBadge | 1771 | return GlobalVariables.loyaltyBadge |
| 1772 | } | 1772 | } |
| 1773 | 1773 | ||
| 1774 | + | ||
| 1775 | + public class CouponEventModel { | ||
| 1776 | + private var success: Bool | ||
| 1777 | + | ||
| 1778 | + | ||
| 1779 | + public init() { | ||
| 1780 | + self.success = true | ||
| 1781 | + | ||
| 1782 | + } | ||
| 1783 | + | ||
| 1784 | + public var _success: Bool { | ||
| 1785 | + get { // getter | ||
| 1786 | + return self.success | ||
| 1787 | + } | ||
| 1788 | + set(newValue) { //setter | ||
| 1789 | + self.success = newValue | ||
| 1790 | + } | ||
| 1791 | + } | ||
| 1792 | + } | ||
| 1793 | + | ||
| 1774 | } | 1794 | } | ... | ... |
-
Please register or login to post a comment