Manos Chorianopoulos

add logs at WalletVC

......@@ -33,7 +33,7 @@ import SwiftEventBus
@IBOutlet weak var tableView: UITableView!
@IBOutlet weak var activeCodeImage: UIImageView!
public var coupons:Array<swiftApi.CouponItemModel> = swiftApi().getCouponList()
public var coupons:Array<swiftApi.CouponItemModel> = swiftApi().filterActiveCoupons(swiftApi().getCouponList())
public var dfyCoupons:Array<swiftApi.ActiveDFYCouponModel> = swiftApi().getActiveDFYCoupons()
public var loyaltyBadge:swiftApi.LoyaltyBadgeModel = swiftApi().getLoyaltyBadge()
public var profile:swiftApi.ProfileModel? = swiftApi().getConsumer()
......@@ -48,6 +48,8 @@ import SwiftEventBus
tableView.delegate = self
tableView.dataSource = self
print("Active Gifts Count: " + String(coupons.count))
headerImage.image = UIImage(named: "ic_background_circle", in: Bundle(for: MyEmptyClass.self), compatibleWith: nil)
dfyEarnImage.image = UIImage(named: "wallet_dfy_earn", in: Bundle(for: MyEmptyClass.self), compatibleWith: nil)
......@@ -64,8 +66,13 @@ import SwiftEventBus
} else {
profileImage.image = UIImage(named: "default_profile_image", in: Bundle(for: MyEmptyClass.self), compatibleWith: nil)
}
print("Profile Name: " + (profile?.firstname ?? "") + " " + (profile?.lastname ?? ""))
profileNameLabel.text = (profile?.firstname ?? "") + " " + (profile?.lastname ?? "")
let userTag = swiftApi().getUserTag()
print("User tag: " + userTag)
if (userTag != "" && userTag != "undefined") {
questionnaireButton.setTitle(userTag, for: .normal)
questionnaireButton.titleLabel?.font = UIFont.systemFont(ofSize: 13, weight: .semibold)
......@@ -115,6 +122,9 @@ import SwiftEventBus
couponEarnLabel.text = "Μέχρι τώρα έχεις κερδίσει " + totalCouponDiscountString + "€ σε προσφορές από " + String(loyaltyBadge._couponCount) + " κουπόνια!"
couponEarnAmountLabel.text = totalCouponDiscountString + "€"
print("Loyalty Badge Value: " + totalCouponDiscountString)
print("Loyalty Badge Count: " + String(loyaltyBadge._couponCount))
activeCodeView.layer.cornerRadius = 5.0
activeCodeView.layer.shadowColor = UIColor(red: 0.00, green: 0.00, blue: 0.00, alpha: 0.16).cgColor
......