Last Updated on : 2024-03-21 03:29:28download
Commercial Lock App SDK supports multiple types of user accounts, such as mobile phone numbers, email addresses, and app UIDs.
Different types of accounts support the following specific capabilities:
In this module, the ThingSmartUser
object is frequently called. This object is a singleton that stores all data of the current user, including login and registration methods. The following table describes the data model of the object.
Field | Type | Description |
---|---|---|
userName | NSString | The username.
|
headIconUrl | NSString | The URL of the user avatar. |
nickname | NSString | The nickname of the user. |
phoneNumber | NSString | The mobile phone number of the user. |
NSString | The email address. | |
countryCode | NSString | The country code. Valid values:
|
regionCode | NSString | The data center to which the current account belongs. Valid values:
|
timezoneId | NSString | The time zone ID. Example: Asia/Shanghai . |
tempUnit | NSInteger | The temperature unit. Valid values:
|
snsNickname | NSString | The nickname of a third-party account. |
isLogin | BOOL | The login status. |
regFrom | ThingRegType | The type of registration. Valid values:
|
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback