@@ -41,21 +41,21 @@ class PersonBasicPropertiesMixin(object):
41
41
@property
42
42
def id (self ):
43
43
"""A unique identifier for the person."""
44
- return self ._json_data .get ('id' )
44
+ return self ._json_data .get ("id" )
45
45
46
46
@property
47
47
def emails (self ):
48
48
"""The email addresses of the person."""
49
- return self ._json_data .get (' emails' )
49
+ return self ._json_data .get (" emails" )
50
50
51
51
def phoneNumbers (self ):
52
52
"""Phone numbers for the person."""
53
- return self ._json_data .get (' phoneNumbers' )
53
+ return self ._json_data .get (" phoneNumbers" )
54
54
55
55
@property
56
56
def displayName (self ):
57
57
"""The full name of the person."""
58
- return self ._json_data .get (' displayName' )
58
+ return self ._json_data .get (" displayName" )
59
59
60
60
@property
61
61
def nickName (self ):
@@ -64,43 +64,43 @@ def nickName(self):
64
64
If no nickname is configured for the person, this field will not be
65
65
present.
66
66
"""
67
- return self ._json_data .get (' nickName' )
67
+ return self ._json_data .get (" nickName" )
68
68
69
69
@property
70
70
def firstName (self ):
71
71
"""The first name of the person."""
72
- return self ._json_data .get (' firstName' )
72
+ return self ._json_data .get (" firstName" )
73
73
74
74
@property
75
75
def lastName (self ):
76
76
"""The last name of the person."""
77
- return self ._json_data .get (' lastName' )
77
+ return self ._json_data .get (" lastName" )
78
78
79
79
@property
80
80
def avatar (self ):
81
- """The URL to the person' s avatar in PNG format."""
82
- return self ._json_data .get (' avatar' )
81
+ """The URL to the person" s avatar in PNG format."""
82
+ return self ._json_data .get (" avatar" )
83
83
84
84
@property
85
85
def orgId (self ):
86
86
"""The ID of the organization to which this person belongs."""
87
- return self ._json_data .get (' orgId' )
87
+ return self ._json_data .get (" orgId" )
88
88
89
89
@property
90
90
def roles (self ):
91
91
"""An array of role strings representing the roles to which this
92
92
person belongs. """
93
- return self ._json_data .get (' roles' )
93
+ return self ._json_data .get (" roles" )
94
94
95
95
@property
96
96
def licenses (self ):
97
97
"""An array of license strings allocated to this person."""
98
- return self ._json_data .get (' licenses' )
98
+ return self ._json_data .get (" licenses" )
99
99
100
100
@property
101
101
def created (self ):
102
102
"""The date and time the person was created."""
103
- created = self ._json_data .get (' created' )
103
+ created = self ._json_data .get (" created" )
104
104
if created :
105
105
return WebexTeamsDateTime .strptime (created )
106
106
else :
@@ -109,7 +109,7 @@ def created(self):
109
109
@property
110
110
def lastModified (self ):
111
111
"""The date and time the person was last changed."""
112
- last_modified = self ._json_data .get (' lastModified' )
112
+ last_modified = self ._json_data .get (" lastModified" )
113
113
if last_modified :
114
114
return WebexTeamsDateTime .strptime (last_modified )
115
115
else :
@@ -122,13 +122,13 @@ def timezone(self):
122
122
If no timezone is configured on the account, this field will not be
123
123
present.
124
124
"""
125
- return self ._json .get (' timezone' )
125
+ return self ._json .get (" timezone" )
126
126
127
127
@property
128
128
def lastActivity (self ):
129
- """The date and time of the person' s last activity within Webex
129
+ """The date and time of the person" s last activity within Webex
130
130
Teams. """
131
- last_activity = self ._json_data .get (' lastActivity' )
131
+ last_activity = self ._json_data .get (" lastActivity" )
132
132
if last_activity :
133
133
return WebexTeamsDateTime .strptime (last_activity )
134
134
else :
@@ -160,7 +160,7 @@ def status(self):
160
160
161
161
`unknown`: The user’s status could not be determined
162
162
"""
163
- return self ._json_data .get (' status' )
163
+ return self ._json_data .get (" status" )
164
164
165
165
@property
166
166
def invitePending (self ):
@@ -173,7 +173,7 @@ def invitePending(self):
173
173
174
174
`false`: An invite is not pending for this person
175
175
"""
176
- return self ._json_data .get (' invitePending' )
176
+ return self ._json_data .get (" invitePending" )
177
177
178
178
@property
179
179
def loginEnabled (self ):
@@ -182,9 +182,9 @@ def loginEnabled(self):
182
182
Person Login Enabled Enum:
183
183
`true`: The person can log into Webex Teams
184
184
185
- ' false' : The person cannot log into Webex Teams
185
+ " false" : The person cannot log into Webex Teams
186
186
"""
187
- return self ._json_data .get (' loginEnabled' )
187
+ return self ._json_data .get (" loginEnabled" )
188
188
189
189
@property
190
190
def type (self ):
@@ -193,5 +193,6 @@ def type(self):
193
193
Person Type Enum:
194
194
`person`: Account belongs to a person
195
195
`bot`: Account is a bot user
196
+ `appuser`: Account is a guest user
196
197
"""
197
- return self ._json_data .get (' type' )
198
+ return self ._json_data .get (" type" )
0 commit comments