Manos Chorianopoulos

update ProfileModel

...@@ -1561,6 +1561,7 @@ public class swiftApi { ...@@ -1561,6 +1561,7 @@ public class swiftApi {
1561 private var badge: String? 1561 private var badge: String?
1562 private var msisdnList: Array<String>? 1562 private var msisdnList: Array<String>?
1563 private var answered: Bool? 1563 private var answered: Bool?
1564 + private var nonTelco: Bool?
1564 1565
1565 1566
1566 public init() { 1567 public init() {
...@@ -1603,6 +1604,7 @@ public class swiftApi { ...@@ -1603,6 +1604,7 @@ public class swiftApi {
1603 self.badge = "" 1604 self.badge = ""
1604 self.msisdnList = [] 1605 self.msisdnList = []
1605 self.answered = false 1606 self.answered = false
1607 + self.nonTelco = false
1606 } 1608 }
1607 1609
1608 public init(dictionary: [String: Any]) { 1610 public init(dictionary: [String: Any]) {
...@@ -1654,11 +1656,13 @@ public class swiftApi { ...@@ -1654,11 +1656,13 @@ public class swiftApi {
1654 self.badge = profile_metadata_parsed["badge"] as? String? ?? "" 1656 self.badge = profile_metadata_parsed["badge"] as? String? ?? ""
1655 self.msisdnList = profile_metadata_parsed["msisdnList"] as? Array<String>? ?? [] 1657 self.msisdnList = profile_metadata_parsed["msisdnList"] as? Array<String>? ?? []
1656 self.answered = profile_metadata_parsed["answered"] as? Bool? ?? false 1658 self.answered = profile_metadata_parsed["answered"] as? Bool? ?? false
1659 + self.nonTelco = profile_metadata_parsed["nonTelco"] as? Bool? ?? false
1657 } else { 1660 } else {
1658 self.profile_metadata = [String: Any]() 1661 self.profile_metadata = [String: Any]()
1659 self.badge = "" 1662 self.badge = ""
1660 self.msisdnList = [] 1663 self.msisdnList = []
1661 self.answered = false 1664 self.answered = false
1665 + self.nonTelco = false
1662 print("bad json") 1666 print("bad json")
1663 } 1667 }
1664 } catch let error as NSError { 1668 } catch let error as NSError {
...@@ -1666,6 +1670,7 @@ public class swiftApi { ...@@ -1666,6 +1670,7 @@ public class swiftApi {
1666 self.badge = "" 1670 self.badge = ""
1667 self.msisdnList = [] 1671 self.msisdnList = []
1668 self.answered = false 1672 self.answered = false
1673 + self.nonTelco = false
1669 print(error) 1674 print(error)
1670 } 1675 }
1671 1676
...@@ -1986,6 +1991,15 @@ public class swiftApi { ...@@ -1986,6 +1991,15 @@ public class swiftApi {
1986 } 1991 }
1987 } 1992 }
1988 1993
1994 + public var _nonTelco: Bool {
1995 + get { // getter
1996 + return self.nonTelco ?? false
1997 + }
1998 + set(newValue) { //setter
1999 + self.nonTelco = newValue
2000 + }
2001 + }
2002 +
1989 } 2003 }
1990 2004
1991 public class ProfileDataModel { 2005 public class ProfileDataModel {
......