-
- All Implemented Interfaces:
-
com.thingclips.sdk.user.model.IUser
,com.thingclips.smart.interior.api.IUserCommonPlugin
,com.thingclips.smart.interior.api.IUserDomainPlugin
,com.thingclips.smart.interior.api.IUserGeneralBusiness
,com.thingclips.smart.interior.api.IUserHighwayPlugin
,com.thingclips.smart.interior.api.IUserRegionPlugin
public interface IThingUser implements IUserCommonPlugin, IUserRegionPlugin, IUserDomainPlugin, IUser, IUserGeneralBusiness, IUserHighwayPlugin
To manage user related operations, including but not limited to user registration, login, anonymous login, etc
-
-
Method Summary
Modifier and Type Method Description abstract void
loginWithPhone(String countryCode, String phone, String code, ILoginCallback callback)
Mobile Verification Code Login. abstract void
loginWithEmail(String countryCode, String email, String passwd, ILoginCallback callback)
Login with Email. abstract void
loginWithPhonePassword(String countryCode, String phone, String passwd, ILoginCallback callback)
Phone Password Login. abstract void
getEmailValidateCode(String countryCode, String email, IValidateCallback callback)
Get Verification code by email. abstract void
registerAccountWithEmail(String countryCode, String email, String passwd, IRegisterCallback callback)
Email Registration. abstract void
registerAccountWithPhone(String countryCode, String phone, String passwd, String code, IRegisterCallback callback)
Phone Password Registration. abstract void
resetEmailPassword(String countryCode, String email, String emailCode, String passwd, IResetPasswordCallback callback)
User Email Reset Password. abstract void
resetPhonePassword(String countryCode, String phone, String code, String newPasswd, IResetPasswordCallback callback)
Phone Reset Password. abstract void
logout(ILogoutCallback callback)
Logout. abstract void
getValidateCode(String countryCode, String phoneNumber, IValidateCallback callback)
Get phone verification code. abstract void
getRegisterEmailValidateCode(String countryCode, String email, IResultCallback callback)
Email registration to get verification code. abstract void
registerAccountWithEmail(String countryCode, String email, String passwd, String code, IRegisterCallback callback)
Email Registration. abstract void
reRickName(String name, IReNickNameCallback callback)
Modify the nickname. abstract void
updateNickName(String name, IReNickNameCallback callback)
Modify the nickname. abstract void
loginByTwitter(String countryCode, String key, String secret, ILoginCallback callback)
Login by Twitter. abstract void
loginByQQ(String countryCode, String userId, String accessToken, ILoginCallback callback)
Login by QQ. abstract void
loginByWechat(String countryCode, String code, ILoginCallback callback)
Login by WeChat. abstract void
loginByFacebook(String countryCode, String token, ILoginCallback callback)
Login by Facebook. abstract void
checkPhoneCode(String countryCode, String phoneNumber, String code, ICheckAccountCallback callback)
Check the verification code. abstract void
checkEmailPassword(String pwd, ICheckAccountCallback callback)
Check the password of email. abstract void
loginWithUid(String countryCode, String uid, String passwd, ILoginCallback callback)
Login by uid. abstract void
loginOrRegisterWithUid(String countryCode, String uid, String passwd, ILoginCallback callback)
User Uid Registration and Login. abstract void
loginOrRegisterWithUid(String countryCode, String uid, String passwd, boolean isCreateHome, IUidLoginCallback callback)
User Uid Registration and Login. abstract void
registerAccountWithUid(String countryCode, String uid, String passwd, IRegisterCallback callback)
User Uid Registration. abstract void
sendBindVerifyCode(String countryCode, String phoneNumber, IResultCallback callback)
Send Verification code to bind mobile. abstract void
sendBindVerifyCodeByTicket(String countryCode, String phoneNumber, Map<String, String> ticket, IResultCallback callback)
Send Verification code to bind mobile. abstract void
sendBindVerifyCodeWithEmail(String countryCode, String email, IResultCallback callback)
Send Verification code to bind email. abstract void
sendBindVerifyCodeWithEmailByTicket(String countryCode, String email, Map<String, String> ticket, IResultCallback callback)
Send Verification code to bind email. abstract void
bindEmail(String countryCode, String email, String code, String sId, IResultCallback callback)
Bind Email abstract void
setTempUnit(TempUnitEnum unit, IResultCallback callback)
Set Temperature unit. abstract void
uploadUserAvatar(File file, IBooleanCallback callback)
Update avatar of user. abstract void
updateAvatarWithImageUrl(String url, IBooleanCallback callback)
abstract boolean
checkVersionUpgrade()
Check whether to upgrade user information. abstract void
upgradeVersion(IResultCallback callback)
Upgrade user information. abstract void
cancelAccount(IResultCallback callback)
Disable Account abstract void
onDestroy()
Destroy service. abstract void
switchUserRegion(String region, ILoginCallback callback)
Switch the region of logged in user. abstract void
sendVerifyCodeWithUserName(String userName, String region, String countryCode, int type, IResultCallback callback)
Send verification code, used for register, login, reset password, etc. abstract void
sendVerifyCodeWithUserNameByTicket(String userName, String region, String countryCode, int type, Map<String, String> ticket, IResultCallback callback)
Send verification code, used for register, login, reset password, etc. abstract void
bindMobileSendCodeForVas(String countryCode, String mobile, IResultCallback callback)
Value-added service binding mobile phone number verification code sent. abstract void
bindMobileSendCodeForVasByTicket(String countryCode, String mobile, Map<String, String> ticket, IResultCallback callback)
Value-added service binding mobile phone number verification code sent. abstract void
checkCodeWithUserName(String userName, String region, String countryCode, String code, int type, IResultCallback callback)
Check verification code, used for register/login/reset password. abstract void
registerWithUserName(String userName, String region, String countryCode, String code, String password, IRegisterCallback callback)
Mobile phone or Email register. abstract void
thirdLogin(String countryCode, String accessToken, String type, ILoginCallback callback)
Login by Auth2 abstract void
thirdLogin(String countryCode, String accessToken, String type, String extraInfo, ILoginCallback callback)
Login by Auth2 abstract void
bindThirdPlatform(String countryCode, String type, String accessToken, String extraInfo, String options, IThirdBindCallback callback)
bind third platform abstract void
loginSuccess(User user)
Init for login succeed. abstract void
updateUserInfo(IResultCallback callback)
Sync user information. abstract void
getQRCodeToken(String countryCode, IGetQRCodeTokenCallback callback)
Get token for QR code login. abstract void
QRCodeLogin(String countryCode, String token, ILoginCallback callback)
QR code login abstract void
QRcodeAuth(String countryCode, long homeId, String token, IBooleanCallback callback)
QR code authorization login. abstract void
getQRDeviceAppInfo(String countryCode, String token, IGetQRDeviceInfoCallBack callBack)
Get information of device by QR code. abstract void
touristRegisterAndLogin(String countryCode, String nickName, IRegisterCallback callback)
Tourist login registration. abstract void
touristRegisterAndLogin(String countryCode, IRegisterCallback callback)
Tourist login registration. abstract void
touristLogOut(ILogoutCallback callback)
Tourist logout. abstract void
touristBindWithUserName(String countryCode, String userName, String verifyCode, String password, IBooleanCallback callback)
Tourist accounts are bound by username. abstract void
getWhiteListWhoCanSendMobileCodeSuccess(IWhiteListCallback callback)
Gets white list who can send mobile verification code success. abstract void
ticketGetUserInfo(String ticket, ILoginCallback callback)
Login by ticket. abstract void
loginWithTicket(String ticket, ILoginCallback callback)
Login by ticket. abstract void
changeUserName(String countryCode, String code, String sId, String userName, IResultCallback callback)
change bind username abstract void
loginWithEmailCode(String countryCode, String email, String code, ILoginCallback callback)
email code login abstract void
upgradeAlreadyOnlineUser(String countryCode, String username, String uniqueKey, String regionCode, IResultCallback callback)
email code login -
Methods inherited from class com.thingclips.smart.interior.api.IUserCommonPlugin
getCommonServices, updateTimeZone
-
Methods inherited from class com.thingclips.smart.interior.api.IUserRegionPlugin
getRegionListWithCountryCode
-
Methods inherited from class com.thingclips.smart.interior.api.IUserDomainPlugin
queryAllBizDomains, queryAllBizDomainsFromCache, queryDomainByBizCodeAndKey, queryDomainByBizCodeAndKeyFromCache
-
Methods inherited from class com.thingclips.sdk.user.model.IUser
getUser, isLogin, removeUser, saveUser
-
Methods inherited from class com.thingclips.smart.interior.api.IUserGeneralBusiness
bindMobile, sendBindVerifyCodeByTicket
-
Methods inherited from class com.thingclips.smart.interior.api.IUserHighwayPlugin
requestHighwayToken
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
loginWithPhone
abstract void loginWithPhone(String countryCode, String phone, String code, ILoginCallback callback)
Mobile Verification Code Login.
- Parameters:
countryCode
- Mobile Area Code: Such as "86".phone
- Mobile number.code
- Verification code.callback
- Callback com.thingclips.smart.android.user.api.ILoginCallback.
-
loginWithEmail
abstract void loginWithEmail(String countryCode, String email, String passwd, ILoginCallback callback)
Login with Email.
- Parameters:
countryCode
- Country code, for example: 86.email
- Email.passwd
- Login password.callback
- Callback com.thingclips.smart.android.user.api.ILoginCallback.
-
loginWithPhonePassword
abstract void loginWithPhonePassword(String countryCode, String phone, String passwd, ILoginCallback callback)
Phone Password Login.
- Parameters:
countryCode
- Mobile Area Code: Such as "86".phone
- Mobile number.passwd
- Login password.callback
- Callback com.thingclips.smart.android.user.api.ILoginCallback.
-
getEmailValidateCode
@Deprecated() abstract void getEmailValidateCode(String countryCode, String email, IValidateCallback callback)
Get Verification code by email.The interface has been deprecated, please use the new interface sendVerifyCodeWithUserName.
- Parameters:
countryCode
- Country code, for example: 86.email
- Email.callback
- Callback com.thingclips.smart.android.user.api.IValidateCallback.
-
registerAccountWithEmail
@Deprecated() abstract void registerAccountWithEmail(String countryCode, String email, String passwd, IRegisterCallback callback)
Email Registration.
- Parameters:
countryCode
- Country code, for example: 86.email
- Email.passwd
- Login password.callback
- Callback com.thingclips.smart.android.user.api.IRegisterCallback.
-
registerAccountWithPhone
abstract void registerAccountWithPhone(String countryCode, String phone, String passwd, String code, IRegisterCallback callback)
Phone Password Registration.
- Parameters:
countryCode
- Mobile Area Code: Such as "86".phone
- Mobile number.passwd
- Login password.code
- Verification code.callback
- Callback com.thingclips.smart.android.user.api.IRegisterCallback.
-
resetEmailPassword
abstract void resetEmailPassword(String countryCode, String email, String emailCode, String passwd, IResetPasswordCallback callback)
User Email Reset Password.
- Parameters:
countryCode
- Country code, for example: 86.email
- Email.emailCode
- Verification code.passwd
- Login password.callback
- Callback com.thingclips.smart.android.user.api.IResetPasswordCallback.
-
resetPhonePassword
abstract void resetPhonePassword(String countryCode, String phone, String code, String newPasswd, IResetPasswordCallback callback)
Phone Reset Password.
- Parameters:
countryCode
- Mobile Area Code: Such as "86".phone
- Mobile number.code
- Verification code.newPasswd
- Login password.callback
- Callback com.thingclips.smart.android.user.api.IResetPasswordCallback.
-
logout
abstract void logout(ILogoutCallback callback)
Logout.
- Parameters:
callback
- Callback com.thingclips.smart.android.user.api.ILogoutCallback.
-
getValidateCode
@Deprecated() abstract void getValidateCode(String countryCode, String phoneNumber, IValidateCallback callback)
Get phone verification code.The interface has been deprecated, please use the new interface sendVerifyCodeWithUserName.
- Parameters:
countryCode
- Mobile Area Code: Such as "86".phoneNumber
- Mobile number.callback
- Callback IValidateCallback.
-
getRegisterEmailValidateCode
@Deprecated() abstract void getRegisterEmailValidateCode(String countryCode, String email, IResultCallback callback)
Email registration to get verification code.The interface has been deprecated, please use the new interface sendVerifyCodeWithUserName.
- Parameters:
countryCode
- Country code, for example: 86.email
- Email.callback
- Callback com.thingclips.smart.sdk.api.IResultCallback.
-
registerAccountWithEmail
abstract void registerAccountWithEmail(String countryCode, String email, String passwd, String code, IRegisterCallback callback)
Email Registration.
- Parameters:
countryCode
- Country code, for example: 86.email
- Email.passwd
- Login password.code
- Verification code.callback
- Callback com.thingclips.smart.android.user.api.IRegisterCallback.
-
reRickName
@Deprecated() abstract void reRickName(String name, IReNickNameCallback callback)
Modify the nickname.
- Parameters:
name
- Nickname.callback
- Callback com.thingclips.smart.android.user.api.IReNickNameCallback.
-
updateNickName
abstract void updateNickName(String name, IReNickNameCallback callback)
Modify the nickname.
- Parameters:
name
- Nickname.callback
- Callback com.thingclips.smart.android.user.api.IReNickNameCallback.
-
loginByTwitter
abstract void loginByTwitter(String countryCode, String key, String secret, ILoginCallback callback)
Login by Twitter.
- Parameters:
countryCode
- Country code, for example: 86.key
- Token from Twitter developer platform.secret
- Token Secret from Twitter developer platform.callback
- Callback com.thingclips.smart.android.user.api.ILoginCallback.
-
loginByQQ
abstract void loginByQQ(String countryCode, String userId, String accessToken, ILoginCallback callback)
Login by QQ.
- Parameters:
countryCode
- Country code, for example: 86.userId
- OpenId from QQ developer platform.accessToken
- AccessToken from QQ developer platform.callback
- Callback com.thingclips.smart.android.user.api.ILoginCallback.
-
loginByWechat
abstract void loginByWechat(String countryCode, String code, ILoginCallback callback)
Login by WeChat.
- Parameters:
countryCode
- Country code, for example: 86.code
- Authorization code from WeChat developer platform.callback
- Callback com.thingclips.smart.android.user.api.ILoginCallback.
-
loginByFacebook
abstract void loginByFacebook(String countryCode, String token, ILoginCallback callback)
Login by Facebook.
- Parameters:
countryCode
- Country code, for example: 86.token
- AccessToken from Facebook developer platform.callback
- Callback com.thingclips.smart.android.user.api.ILoginCallback.
-
checkPhoneCode
abstract void checkPhoneCode(String countryCode, String phoneNumber, String code, ICheckAccountCallback callback)
Check the verification code.
- Parameters:
countryCode
- Country code, for example: 86.phoneNumber
- Mobile number.code
- Verification code.callback
- Callback com.thingclips.smart.android.user.api.ICheckAccountCallback.
-
checkEmailPassword
abstract void checkEmailPassword(String pwd, ICheckAccountCallback callback)
Check the password of email.
- Parameters:
pwd
- Login password.callback
- Callback com.thingclips.smart.android.user.api.ICheckAccountCallback.
-
loginWithUid
abstract void loginWithUid(String countryCode, String uid, String passwd, ILoginCallback callback)
Login by uid.
- Parameters:
countryCode
- Country code, for example: 86.uid
- User Uid.passwd
- Login password.callback
- Callback com.thingclips.smart.android.user.api.ILoginCallback.
-
loginOrRegisterWithUid
abstract void loginOrRegisterWithUid(String countryCode, String uid, String passwd, ILoginCallback callback)
User Uid Registration and Login.
- Parameters:
countryCode
- Country code, for example: 86.uid
- User Uid.passwd
- Login password.callback
- Callback com.thingclips.smart.android.user.api.ILoginCallback.
-
loginOrRegisterWithUid
abstract void loginOrRegisterWithUid(String countryCode, String uid, String passwd, boolean isCreateHome, IUidLoginCallback callback)
User Uid Registration and Login.
Can choose whether to create default family, user isCreateHome.
- Parameters:
countryCode
- Country code, for example: 86.uid
- User Uid.passwd
- Login password.isCreateHome
- Whether to create default family.callback
- Callback com.thingclips.smart.android.user.api.IUidLoginCallback.
-
registerAccountWithUid
abstract void registerAccountWithUid(String countryCode, String uid, String passwd, IRegisterCallback callback)
User Uid Registration.
- Parameters:
countryCode
- Country code, for example: 86.uid
- User Uid.passwd
- Login password.callback
- Callback com.thingclips.smart.android.user.api.IRegisterCallback.
-
sendBindVerifyCode
abstract void sendBindVerifyCode(String countryCode, String phoneNumber, IResultCallback callback)
Send Verification code to bind mobile.
- Parameters:
countryCode
- Country code, for example: 86.phoneNumber
- Mobile number.callback
- Callback com.thingclips.smart.sdk.api.IResultCallback.
-
sendBindVerifyCodeByTicket
abstract void sendBindVerifyCodeByTicket(String countryCode, String phoneNumber, Map<String, String> ticket, IResultCallback callback)
Send Verification code to bind mobile.
- Parameters:
countryCode
- Country code, for example: 86.phoneNumber
- Mobile number.ticket
- Incoming when the graphic verification code is enabledcallback
- Callback IResultCallback.
-
sendBindVerifyCodeWithEmail
abstract void sendBindVerifyCodeWithEmail(String countryCode, String email, IResultCallback callback)
Send Verification code to bind email.
- Parameters:
countryCode
- Country code, for example: 86.email
- email.callback
- Callback com.thingclips.smart.sdk.api.IResultCallback.
-
sendBindVerifyCodeWithEmailByTicket
abstract void sendBindVerifyCodeWithEmailByTicket(String countryCode, String email, Map<String, String> ticket, IResultCallback callback)
Send Verification code to bind email.
- Parameters:
countryCode
- Country code, for example: 86.email
- email.ticket
- Incoming when the graphic verification code is enabledcallback
- Callback com.thingclips.smart.sdk.api.IResultCallback.
-
bindEmail
abstract void bindEmail(String countryCode, String email, String code, String sId, IResultCallback callback)
Bind Email
- Parameters:
countryCode
- Country code, for example: 86.email
- emailcode
- Verification code, from sendBindVerifyCodeWithEmailsId
- User session Idcallback
- Callback com.thingclips.smart.sdk.api.IResultCallback.
-
setTempUnit
abstract void setTempUnit(TempUnitEnum unit, IResultCallback callback)
Set Temperature unit.
- Parameters:
unit
- Set the com.thingclips.smart.sdk.enums.TempUnitEnumcallback
- Callback com.thingclips.smart.sdk.api.IResultCallback.
-
uploadUserAvatar
abstract void uploadUserAvatar(File file, IBooleanCallback callback)
Update avatar of user.
- Parameters:
file
- Image file.callback
- Callback com.thingclips.smart.android.user.api.IBooleanCallback.
-
updateAvatarWithImageUrl
abstract void updateAvatarWithImageUrl(String url, IBooleanCallback callback)
- Parameters:
url
- image urlcallback
- Callback com.thingclips.smart.android.user.api.IBooleanCallback.
-
checkVersionUpgrade
abstract boolean checkVersionUpgrade()
Check whether to upgrade user information.
-
upgradeVersion
abstract void upgradeVersion(IResultCallback callback)
Upgrade user information.
- Parameters:
callback
- Callback com.thingclips.smart.sdk.api.IResultCallback.
-
cancelAccount
abstract void cancelAccount(IResultCallback callback)
Disable Account
- Parameters:
callback
- Callback com.thingclips.smart.sdk.api.IResultCallback.
-
onDestroy
abstract void onDestroy()
Destroy service.
-
switchUserRegion
abstract void switchUserRegion(String region, ILoginCallback callback)
Switch the region of logged in user.
- Parameters:
region
- The region to register account.callback
- Callback com.thingclips.smart.android.user.api.ILoginCallback.
-
sendVerifyCodeWithUserName
abstract void sendVerifyCodeWithUserName(String userName, String region, String countryCode, int type, IResultCallback callback)
Send verification code, used for register, login, reset password, etc.
- Parameters:
userName
- Mobile phone number or Email addressregion
- for register is requiredcountryCode
- Country codetype
- 1: register,2: login,3: password reset,4: bind mobile phone number(This type error is not available),5: guest binding interface,6: second login,7: account swap,8: logout account verification verification codecallback
- callback com.thingclips.smart.sdk.api.IResultCallback
-
sendVerifyCodeWithUserNameByTicket
abstract void sendVerifyCodeWithUserNameByTicket(String userName, String region, String countryCode, int type, Map<String, String> ticket, IResultCallback callback)
Send verification code, used for register, login, reset password, etc.
- Parameters:
userName
- Mobile phone number or Email addressregion
- for register is requiredcountryCode
- Country codetype
- 1: register,2: login,3: password reset,4: bind mobile phone number(This type error is not available),5: guest binding interface,6: second login,7: account swap,8: logout account verification verification codeticket
- Incoming when the graphic verification code is enabledcallback
- callback com.thingclips.smart.sdk.api.IResultCallback
-
bindMobileSendCodeForVas
abstract void bindMobileSendCodeForVas(String countryCode, String mobile, IResultCallback callback)
Value-added service binding mobile phone number verification code sent.
- Parameters:
countryCode
- Country code, for example: 86mobile
- Mobile number.callback
- Callback com.thingclips.smart.sdk.api.IResultCallback.
-
bindMobileSendCodeForVasByTicket
abstract void bindMobileSendCodeForVasByTicket(String countryCode, String mobile, Map<String, String> ticket, IResultCallback callback)
Value-added service binding mobile phone number verification code sent.
- Parameters:
countryCode
- Country code, for example: 86mobile
- Mobile number.ticket
- Incoming when the graphic verification code is enabledcallback
- Callback com.thingclips.smart.sdk.api.IResultCallback.
-
checkCodeWithUserName
abstract void checkCodeWithUserName(String userName, String region, String countryCode, String code, int type, IResultCallback callback)
Check verification code, used for register/login/reset password.
- Parameters:
userName
- Mobile phone number or Email addressregion
- for register is requiredcountryCode
- Country codecode
- Verification codetype
- 1: mobile phone verification code register,2: mobile phone verification code login,3: mobile phone password reset.callback
- callback com.thingclips.smart.sdk.api.IResultCallback
-
registerWithUserName
abstract void registerWithUserName(String userName, String region, String countryCode, String code, String password, IRegisterCallback callback)
Mobile phone or Email register.
- Parameters:
userName
- Mobile phone number or Email addressregion
- The region to register accountcountryCode
- Country codecode
- Verification codepassword
- Passwordcallback
- Callback com.thingclips.smart.android.user.api.IRegisterCallback.
-
thirdLogin
abstract void thirdLogin(String countryCode, String accessToken, String type, ILoginCallback callback)
Login by Auth2
- Parameters:
countryCode
- Country code, for example: 86.accessToken
- AccessToken from third developer platform.type
- Type of Auth2 interface call, for example: "gg" for Google logincallback
- Callback com.thingclips.smart.android.user.api.ILoginCallback.
-
thirdLogin
abstract void thirdLogin(String countryCode, String accessToken, String type, String extraInfo, ILoginCallback callback)
Login by Auth2
- Parameters:
countryCode
- Country code, for example: 86.accessToken
- AccessToken from third developer platform.type
- Type of Auth2 interface call, for example: "gg" for Google loginextraInfo
- Extra Info.callback
- Callback com.thingclips.smart.android.user.api.ILoginCallback.
-
bindThirdPlatform
abstract void bindThirdPlatform(String countryCode, String type, String accessToken, String extraInfo, String options, IThirdBindCallback callback)
bind third platform
- Parameters:
countryCode
- Country code, for example: 86.type
- Type of Auth2 interface call, for example: "gg" for Google loginaccessToken
- AccessToken from third developer platform.extraInfo
- Extra Info.options
- optionscallback
- Callback com.thingclips.smart.android.user.api.IThirdBindCallback.
-
loginSuccess
abstract void loginSuccess(User user)
Init for login succeed.
Login and get user information, then use this method.
- Parameters:
user
- User information
-
updateUserInfo
abstract void updateUserInfo(IResultCallback callback)
Sync user information.
- Parameters:
callback
- Callback com.thingclips.smart.sdk.api.IResultCallback.
-
getQRCodeToken
abstract void getQRCodeToken(String countryCode, IGetQRCodeTokenCallback callback)
Get token for QR code login.
- Parameters:
countryCode
- Country code, for example: 86.callback
- Callback com.thingclips.smart.android.user.api.IGetQRCodeTokenCallback.
-
QRCodeLogin
abstract void QRCodeLogin(String countryCode, String token, ILoginCallback callback)
QR code login
- Parameters:
countryCode
- Country code, for example: 86.token
- token, from getQRCodeTokencallback
- Callback com.thingclips.smart.android.user.api.ILoginCallback.
-
QRcodeAuth
abstract void QRcodeAuth(String countryCode, long homeId, String token, IBooleanCallback callback)
QR code authorization login.
- Parameters:
countryCode
- Country code, for example: 86.homeId
- Home id.token
- token, from getQRCodeTokencallback
- Callback com.thingclips.smart.android.user.api.IBooleanCallback.
-
getQRDeviceAppInfo
abstract void getQRDeviceAppInfo(String countryCode, String token, IGetQRDeviceInfoCallBack callBack)
Get information of device by QR code.
- Parameters:
countryCode
- Country code, for example: 86.token
- token, from getQRCodeTokencallBack
- Callback com.thingclips.smart.android.user.api.IGetQRDeviceInfoCallBack.
-
touristRegisterAndLogin
@Deprecated() abstract void touristRegisterAndLogin(String countryCode, String nickName, IRegisterCallback callback)
Tourist login registration.
- Parameters:
countryCode
- Country code, for example: 86.nickName
- Nickname.callback
- Callback com.thingclips.smart.android.user.api.IRegisterCallback.
-
touristRegisterAndLogin
abstract void touristRegisterAndLogin(String countryCode, IRegisterCallback callback)
Tourist login registration.
- Parameters:
countryCode
- Country code, for example: 86.callback
- Callback com.thingclips.smart.android.user.api.IRegisterCallback.
-
touristLogOut
abstract void touristLogOut(ILogoutCallback callback)
Tourist logout.
- Parameters:
callback
- Callback com.thingclips.smart.android.user.api.ILogoutCallback.
-
touristBindWithUserName
abstract void touristBindWithUserName(String countryCode, String userName, String verifyCode, String password, IBooleanCallback callback)
Tourist accounts are bound by username.
- Parameters:
countryCode
- Country code, for example: 86.userName
- User name.verifyCode
- Verification code.password
- Password.callback
- Callback com.thingclips.smart.android.user.api.IBooleanCallback.
-
getWhiteListWhoCanSendMobileCodeSuccess
abstract void getWhiteListWhoCanSendMobileCodeSuccess(IWhiteListCallback callback)
Gets white list who can send mobile verification code success.
- Parameters:
callback
- Callback IWhiteListCallback.
-
ticketGetUserInfo
abstract void ticketGetUserInfo(String ticket, ILoginCallback callback)
Login by ticket.
Deprecated, recommended to use loginWithTicket
- Parameters:
ticket
- ticketcallback
- Callback com.thingclips.smart.android.user.api.ILoginCallback.
-
loginWithTicket
abstract void loginWithTicket(String ticket, ILoginCallback callback)
Login by ticket.
- Parameters:
ticket
- ticketcallback
- Callback com.thingclips.smart.android.user.api.ILoginCallback.
-
changeUserName
abstract void changeUserName(String countryCode, String code, String sId, String userName, IResultCallback callback)
change bind username
- Parameters:
countryCode
- countryCodecode
- codesId
- sIduserName
- userNamecallback
- callback com.thingclips.smart.sdk.api.IResultCallback.
-
loginWithEmailCode
abstract void loginWithEmailCode(String countryCode, String email, String code, ILoginCallback callback)
email code login
- Parameters:
countryCode
- Mobile Area Code: Such as "86".email
- Email.code
- Verification code.callback
- Callback com.thingclips.smart.android.user.api.ILoginCallback.
-
upgradeAlreadyOnlineUser
abstract void upgradeAlreadyOnlineUser(String countryCode, String username, String uniqueKey, String regionCode, IResultCallback callback)
email code login
- Parameters:
countryCode
- Mobile Area Code: Such as "86".username
- username.uniqueKey
- sid.regionCode
- regionCode.callback
- Callback com.thingclips.smart.sdk.api.IResultCallback.
-
-
-
-