Manos Chorianopoulos

add getters setters at ProfileModel

......@@ -172,7 +172,7 @@ import UIKit
func getProfileCallback (_ profileData: swiftApi.ProfileModel?) -> Void {
if (profileData != nil) {
DispatchQueue.main.async {
self.numbersList = profileData?.msisdnList ?? []
self.numbersList = profileData?._msisdnList ?? []
print("========= getProfileRequest SUCCESSSS =========")
}
......
......@@ -114,7 +114,7 @@ import UIKit
func getProfileCallback (_ profileData: swiftApi.ProfileModel?) -> Void {
if (profileData != nil) {
DispatchQueue.main.async {
self.numbersList = profileData?.msisdnList ?? []
self.numbersList = profileData?._msisdnList ?? []
}
} else {
}
......
......@@ -69,15 +69,15 @@ import SwiftEventBus
profileImage.layer.borderWidth = 1
profileImage.layer.borderColor = UIColor(red: 0.13, green: 0.66, blue: 0.71, alpha: 1.00).cgColor
if (profile != nil && profile?.image_url != nil && profile?.image_url != "") {
profileImage.load(link: profile?.image_url ?? "", placeholder: UIImage(), cache: URLCache())
if (profile != nil && profile?._image_url != nil && profile?._image_url != "") {
profileImage.load(link: profile?._image_url ?? "", placeholder: UIImage(), cache: URLCache())
} else {
profileImage.image = UIImage(named: "default_profile_image", in: Bundle(for: MyEmptyClass.self), compatibleWith: nil)
}
print("Profile Name: " + (profile?.firstname ?? "") + " " + (profile?.lastname ?? ""))
print("Profile Name: " + (profile?._firstname ?? "") + " " + (profile?._lastname ?? ""))
profileNameLabel.text = (profile?.firstname ?? "") + " " + (profile?.lastname ?? "")
profileNameLabel.text = (profile?._firstname ?? "") + " " + (profile?._lastname ?? "")
let userTag = swiftApi().getUserTag()
print("User tag: " + userTag)
......