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-08-31 13:27:48 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
cec3efb4554f00551b1d95102a1ee0f93a7ad712
cec3efb4
1 parent
192a1e89
update ProfileModel
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
View file @
cec3efb
...
...
@@ -1561,6 +1561,7 @@ public class swiftApi {
private
var
badge
:
String
?
private
var
msisdnList
:
Array
<
String
>
?
private
var
answered
:
Bool
?
private
var
nonTelco
:
Bool
?
public
init
()
{
...
...
@@ -1603,6 +1604,7 @@ public class swiftApi {
self
.
badge
=
""
self
.
msisdnList
=
[]
self
.
answered
=
false
self
.
nonTelco
=
false
}
public
init
(
dictionary
:
[
String
:
Any
])
{
...
...
@@ -1654,11 +1656,13 @@ public class swiftApi {
self
.
badge
=
profile_metadata_parsed
[
"badge"
]
as?
String
?
??
""
self
.
msisdnList
=
profile_metadata_parsed
[
"msisdnList"
]
as?
Array
<
String
>
?
??
[]
self
.
answered
=
profile_metadata_parsed
[
"answered"
]
as?
Bool
?
??
false
self
.
nonTelco
=
profile_metadata_parsed
[
"nonTelco"
]
as?
Bool
?
??
false
}
else
{
self
.
profile_metadata
=
[
String
:
Any
]()
self
.
badge
=
""
self
.
msisdnList
=
[]
self
.
answered
=
false
self
.
nonTelco
=
false
print
(
"bad json"
)
}
}
catch
let
error
as
NSError
{
...
...
@@ -1666,6 +1670,7 @@ public class swiftApi {
self
.
badge
=
""
self
.
msisdnList
=
[]
self
.
answered
=
false
self
.
nonTelco
=
false
print
(
error
)
}
...
...
@@ -1986,6 +1991,15 @@ public class swiftApi {
}
}
public
var
_nonTelco
:
Bool
{
get
{
// getter
return
self
.
nonTelco
??
false
}
set
(
newValue
)
{
//setter
self
.
nonTelco
=
newValue
}
}
}
public
class
ProfileDataModel
{
...
...
Please
register
or
login
to post a comment