Provides APIs for user management features.
See Also: Inherited members from KiiBaseObject.
[read-only] static |
AccessToken | string . Gets the access token. |
|
Country | string . Gets or sets the country. |
[read-only] static |
CurrentUser | KiiUser . Gets the current user. |
[read-only] | Disabled | bool . Return true if the user is disabled, false otherwise. |
|
Displayname | string . Gets or sets the displayname. |
[read-only] | string . Gets the email. | |
[read-only] | EmailVerified | bool . Gets a value whether email verified on KiiCloud. |
[read-only] | ID | string . Returns the ID of this user. |
[read-only] | IsPseudoUser | bool . Gets a value whether user is pseudo. |
default property
|
Item (string) | object . Gets or sets the object with the specified key. (Inherited from KiiBaseObject.) |
[read-only] | LinkedSocialAccounts | Dictionary<KiiCorp.Cloud.Storage.Connector.Provider, KiiCorp.Cloud.Storage.Connector.SocialAccountInfo> . Gets the linked social accounts. |
|
Locale | LocaleContainer . Gets or sets the locale. |
[read-only] | PendingEmail | string . Get the email of this user that has not been verified. When the user's email has been changed and email verification is required in you app configuration, New email is stored as pending email. After the new email has been verified, the address can be obtained by KiiUser.Email |
[read-only] | PendingPhone | string . Get the phone of this user that has not been verified. When the user's phone has been changed and phone verification is required in you app configuration, New phone is stored as pending phone. After the new phone has been verified, the number can be obtained by KiiUser.Phone |
[read-only] | Phone | string . Gets the phone number. |
[read-only] | PhoneVerified | bool . Gets a value whether phone verified on KiiCloud. |
[read-only] | PushSubscription | KiiPushSubscription . Get KiiPushSubscription instance of the user. The user will subscribe to the push service by using the returned instance. |
[read-only] | Subject | string . Gets the subject string. |
[read-only] | Uri | Uri . URI of this user. |
[read-only] | Username | string . Gets the username. |
|
Bucket
(string)Returns bucket belongs to this user. |
|
static
|
BuilderWithEmail
(string)Create Builder with email. |
|
static
|
BuilderWithIdentifier
(string)Create Builder with identifier. |
|
static
|
BuilderWithLocalPhone
(string, string)Create Builder with local phone. |
|
static
|
BuilderWithName
(string)Create Builder with user name. |
|
static
|
BuilderWithPhone
(string)Create Builder with phone. |
|
static
|
ChangeEmail
(string)Change email of logged in user. If the email address verification is required by your app configuration, User's email would not changed to new one until the new email verification has been done. In this case, new mail address can be obtained by KiiUser.PendingEmail. This API does not refresh the KiiUser automatically. Please execute KiiUser.Refresh before checking the value of KiiUser.Email or KiiUser.PendingEmail |
|
static
|
ChangeEmail
(string, KiiCallback)Changes the email of CurrentUser |
|
static
|
ChangePassword
(string, string)Changes the password of CurrentUser. |
|
static
|
ChangePassword
(string, string, KiiCallback)Changes the password of CurrentUser. |
|
static
|
ChangePhone
(string)Change phone number of logged in user. If the phone number verification is required by your app configuration, User's phone number would not changed to new one until the new phone number verification has been done. In this case, new phone can be obtained by KiiUser.PendingPhone This API does not refresh the KiiUser automatically. Please execute KiiUser.Refresh before checking the value of KiiUser.Phone or KiiUser.PendingPhone |
|
static
|
ChangePhone
(string, KiiCallback)Changes the phone number of CurrentUser. |
|
static
|
CompleteResetPassword
(string, string, string)Reset password with the PIN code in receipt SMS. After KiiUser.ResetPassword(string, KiiCorp.Cloud.Storage.KiiUser.NotificationMethod) is called with KiiCorp.Cloud.Storage.KiiUser.NotificationMethod.SMS_PIN, SMS include the PIN code will be sent to the user's phone. User can set a new password for login with the PIN code. Need to call KiiUser.LogIn(string, string) to login after the new password is determined. |
|
static
|
CompleteResetPassword
(string, string, string, KiiCallback)Reset password with the PIN code in receipt SMS. After KiiUser.ResetPassword(string, KiiCorp.Cloud.Storage.KiiUser.NotificationMethod) is called with KiiCorp.Cloud.Storage.KiiUser.NotificationMethod.SMS_PIN, SMS include the PIN code will be sent to the user's phone. User can set a new password for login with the PIN code. Need to call KiiUser.LogIn(string, string) to login after the new password is determined. |
|
static
|
CreateByUri
(Uri)Creates KiiUser instance by URI. |
|
|
Delete
()Delete this user from KiiCloud. |
|
|
Delete
(KiiCallback)Delete this user from KiiCloud. |
|
override
|
Equals
(object)Determines whether the specified object is equal to the current KiiCorp.Cloud.Storage.KiiUser. |
|
static
|
FindUserByEmail
(string)Finds the user by Email. |
|
static
|
FindUserByEmail
(string, KiiUserCallback)Finds the user by Email. |
|
static
|
FindUserByPhone
(string)Finds the user by phone. |
|
static
|
FindUserByPhone
(string, KiiUserCallback)Finds the user by phone. |
|
static
|
FindUserByUserName
(string)Finds the user by UserName |
|
static
|
FindUserByUserName
(string, KiiUserCallback)Finds the user by UserName |
|
|
GetAccessTokenDictionary
()Return the access tokens in a dictionary. |
|
|
GetBoolean
(string)Gets the boolean in KiiBaseObject. (Inherited from KiiBaseObject.) |
|
|
GetBoolean
(string, bool)Gets the boolean. If key is not found, returns fallback. (Inherited from KiiBaseObject.) |
|
|
GetByteArray
(string)Gets the byte array with the specified key. (Inherited from KiiBaseObject.) |
|
|
GetDouble
(string)Gets the double in KiiBaseObject. (Inherited from KiiBaseObject.) |
|
|
GetDouble
(string, double)Gets the double. If key is not found, returns fallback. (Inherited from KiiBaseObject.) |
|
override
|
GetHashCode
()Serves as a hash function for a KiiCorp.Cloud.Storage.KiiUser object. |
|
|
GetInt
(string)Gets the integer in KiiBaseObject. (Inherited from KiiBaseObject.) |
|
|
GetInt
(string, int)Gets the integer. If key is not found, returns fallback. (Inherited from KiiBaseObject.) |
|
|
GetJsonArray
(string)Gets the Json array with the specified key. (Inherited from KiiBaseObject.) |
|
|
GetJsonObject
(string)Gets the JSON object with the specified key. (Inherited from KiiBaseObject.) |
|
|
GetLong
(string)Gets the long in KiiBaseObject. (Inherited from KiiBaseObject.) |
|
|
GetLong
(string, long)Gets the long. If key is not found, returns fallback. (Inherited from KiiBaseObject.) |
|
|
GetSocialAccessTokenDictionary
()Return the access token and related information of access token for logged-in social network in a dictionary. |
|
|
GetString
(string)Gets the string in KiiBaseObject. (Inherited from KiiBaseObject.) |
|
|
GetString
(string, string)Gets the string. If key is not found, returns fallback. (Inherited from KiiBaseObject.) |
|
|
GetUri
(string)Gets the Uri with the specified key. (Inherited from KiiBaseObject.) |
|
|
Has
(string)Determine if this instance has the specified key. (Inherited from KiiBaseObject.) |
|
|
IsLinkedWithSocialProvider
(KiiCorp.Cloud.Storage.Connector.Provider)Determines whether this instance is linked with specified social provider. |
|
static
|
IsValidCountry
(string)Determines whether an argument is valid country. |
|
static
|
IsValidDisplayName
(string)Determines whether an argument is valid display name. |
|
static
|
IsValidEmail
(string)Determines whether an argument is valid email. |
|
static
|
IsValidGlobalPhone
(string)Determines whether an argument is valid global phone. |
|
static
|
IsValidLocalPhone
(string)Determines whether an argument is valid local phone. |
|
static
|
IsValidPassword
(string)Determines whether an argument is valid password. |
|
static
|
IsValidPhone
(string)Determines whether an argument is valid phone. |
|
static
|
IsValidUserName
(string)Determines whether an argument is valid user name. |
|
|
Keys
()Gets the list of keys (Inherited from KiiBaseObject.) |
|
|
LinkWithSocialNetwork
(Dictionary<string, string>, KiiCorp.Cloud.Storage.Connector.Provider)Links the with social network. |
|
|
LinkWithSocialNetwork
(Dictionary<string, string>, KiiCorp.Cloud.Storage.Connector.Provider, KiiGenericsCallback<KiiUser>)Links the with social network. |
|
|
ListTopics
()Gets the list of topics in this user scope. |
|
|
ListTopics
(KiiGenericsCallback<KiiListResult<KiiTopic>>)Asynchronous call for KiiUser.ListTopics. |
|
|
ListTopics
(string)Gets the list of next page of topics in this user scope. |
|
|
ListTopics
(string, KiiGenericsCallback<KiiListResult<KiiTopic>>)Asynchronous call for KiiUser.ListTopics(string). |
|
static
|
LogIn
(string, string)Login with username/email/phone and password. |
|
static
|
LogIn
(string, string, KiiUserCallback)Login with username/email/phone and password. |
|
static
|
LoginWithFacebookToken
(string)Login with Facebook Token. |
|
static
|
LoginWithFacebookToken
(string, KiiUserCallback)Login with Facebook Token. |
|
static
|
LogInWithLocalPhone
(string, string, string)LogIn with local phone number, country and password. |
|
static
|
LogInWithLocalPhone
(string, string, string, KiiUserCallback)LogIn with local phone number, country and password. |
|
static
|
LoginWithSocialNetwork
(Dictionary<string, string>, KiiCorp.Cloud.Storage.Connector.Provider)Logins the with social network token. |
|
static
|
LoginWithSocialNetwork
(Dictionary<string, string>, KiiCorp.Cloud.Storage.Connector.Provider, KiiGenericsCallback<KiiUser>)Login with Social Network Token. |
|
static
|
LoginWithToken
(string)Login with Access Token. |
|
static
|
LoginWithToken
(string, KiiUserCallback)Login with Access Token. |
|
static
|
LoginWithToken
(string, DateTime)Login with Access Token. |
|
static
|
LoginWithToken
(string, DateTime, KiiUserCallback)Login with Access Token. |
|
static
|
LogOut
()Logout Current User |
|
|
MemberOfGroups
()Returns the list of groups which the user is a member of. |
|
|
MemberOfGroups
(KiiGroupListCallback)Returns the list of groups which the user is a member of. |
|
|
OwnerOfGroups
()Returns the groups owned by this user. |
|
|
OwnerOfGroups
(KiiGroupListCallback)Returns the groups owned by this user. |
|
static
|
PushInstallation
()Get KiiPushInstallation instance of current logged in user. The installation will be created for production. (Same as calling KiiUser.PushInstallation(bool) with false.) You can control sending message to production/development installation, by specifying the flag when sending push message. |
|
static
|
PushInstallation
(bool)Get KiiPushInstallation instance of current logged in user. development : true would be used for testing push before release application / new version. other wise, use KiiUser.PushInstallation. You can control sending message to production/ development installation, by specifying the flag when sending push message. |
|
|
PutIdentity
(IdentityData, UserFields, string)Puts identity data to pseudo user. This method is exclusive to pseudo user. If this method is called for user who has identity, KiiCorp.Cloud.Storage.AlreadyHasIdentityException will be thrown. |
|
|
PutIdentity
(IdentityData, UserFields, string, KiiUserCallback)Puts identity data to pseudo user. This method is exclusive to pseudo user. If this method is called for user who has identity, KiiCorp.Cloud.Storage.AlreadyHasIdentityException will be passed to callback. |
|
|
Refresh
()Refresh this instance. |
|
|
Refresh
(KiiUserCallback)Refresh this instance. |
|
|
Register
(string)Register this user on KiiCloud. |
|
|
Register
(string, KiiUserCallback)Register this user on KiiCloud. |
|
static
|
RegisterAsPseudoUser
(UserFields)Register as pseudo user on KiiCloud. |
|
static
|
RegisterAsPseudoUser
(UserFields, KiiUserCallback)Register as pseudo user on KiiCloud. |
|
|
Remove
(string)Remove the specified key and value. (Inherited from KiiBaseObject.) |
|
static
|
RequestResendEmailVerification
()Requests for letting server send email verification. |
|
static
|
RequestResendEmailVerification
(KiiCallback)Requests for letting server send email verification. |
|
static
|
RequestResendPhoneVerificationCode
()Requests for letting server send phone verification code. |
|
static
|
RequestResendPhoneVerificationCode
(KiiCallback)Requests for letting server send phone verification code. |
|
static
|
ResetPassword
(string)Resets the password. |
|
static
|
ResetPassword
(string, KiiCallback)Resets the password. |
|
static
|
ResetPassword
(string, KiiUser.NotificationMethod)Resets the password. |
|
static
|
ResetPassword
(string, KiiUser.NotificationMethod, KiiCallback)Resets the password. |
|
|
Topic
(string)Get instance of user scope topic. The topic bound to this user. |
|
|
UnLinkWithSocialNetwork
(KiiCorp.Cloud.Storage.Connector.Provider)Uns the link with social network. |
|
|
UnLinkWithSocialNetwork
(KiiCorp.Cloud.Storage.Connector.Provider, KiiGenericsCallback<KiiUser>)Uns the link with social network. |
|
|
Update
()Update user. |
|
|
Update
(KiiUserCallback)Update user. |
|
|
Update
(UserFields)Update user attributes. To update IdentityData of pseudo user, use KiiUser.PutIdentity(IdentityData, UserFields, string) |
|
|
Update
(IdentityData, UserFields)Update user attributes. If this method is called for pseudo user with IdentityData, ArgumentException will be thrown. To update IdentityData of pseudo user, use KiiUser.PutIdentity(IdentityData, UserFields, string) |
|
|
Update
(UserFields, KiiUserCallback)Update user attributes. To update IdentityData of pseudo user, use KiiUser.PutIdentity(IdentityData, UserFields, string) |
|
|
Update
(IdentityData, UserFields, KiiUserCallback)Update user attributes. If this method is called for pseudo user with IdentityData, KiiCorp.Cloud.Storage.BadRequestException will be thrown. To update IdentityData of pseudo user, use KiiUser.PutIdentity(IdentityData, UserFields, string) |
|
static
|
UserWithID
(string)KiiUser.Phone Instantiate KiiUser that refers to existing user which has specified ID. |
|
|
VerifyPhone
(string)Verifies the user. |
|
|
VerifyPhone
(string, KiiUserCallback)Verifies the user. |
|
IEquatable<KiiCorp.Cloud.Storage.KiiUser>.Equals | Determines whether the specified KiiCorp.Cloud.Storage.KiiUser is equal to the current KiiCorp.Cloud.Storage.KiiUser. |
Gets the access token.Syntax
public static string AccessToken { get; }Value
The access token.Remarks
If user is not logged in, return null.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Returns bucket belongs to this user.Syntax
Parameters
- bucketName
- Bucket name.
Returns
User scope KiiBucket instance.Exceptions
Type Reason ArgumentException Is throwns when bucket name is invalid. Remarks
Returns bucket belongs to this user.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Create Builder with email.Syntax
public static KiiUser.Builder BuilderWithEmail (string email)Parameters
- Email.
Returns
KiiUser builder instance.Exceptions
Type Reason ArgumentException Email is not valid Remarks
Email must be valid. See KiiUser.IsValidEmail(string)Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Create Builder with identifier.Syntax
public static KiiUser.Builder BuilderWithIdentifier (string identifier)Parameters
- identifier
- The user's user name, email address or phone number.
Returns
Documentation for this section has not yet been entered.Exceptions
Type Reason ArgumentException Identifier is not user name, email address or phone number. Remarks
This factory method receives identifier. The identifier is one of use name, email address or phone number. This constructor automatically identities what identifier is.
Some Strings can be accepted as both user name and phone number. If such string is passed to this constructor as identifier, then phone number is prior to user name. String of email address is in different class against user name and phone number. So email address is always identified correctly.
This method accepts local phone number as identifier but if You use local phone number as identifier, You need to set country code to KiiUser instance built by KiiCorp.Cloud.Storage.KiiUser.Builder.Build.
Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Create Builder with local phone.Syntax
Parameters
- phone
- Local phone.
- country
- Country.
Returns
KiiUser builder instance.Exceptions
Type Reason ArgumentException One of phone and country is not valid or both of phone and country are not valid. Remarks
Phone and country must be valid. For phone, See KiiUser.IsValidLocalPhone(string). For country, See KiiUser.IsValidCountry(string).Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Create Builder with user name.Syntax
public static KiiUser.Builder BuilderWithName (string userName)Parameters
- userName
- Username.
Returns
KiiUser builder instance.Exceptions
Type Reason ArgumentException Username is not valid Remarks
Username must be valid. See KiiUser.IsValidUserName(string)Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Create Builder with phone.Syntax
public static KiiUser.Builder BuilderWithPhone (string phone)Parameters
- phone
- Phone.
Returns
KiiUser builder instance.Exceptions
Type Reason ArgumentException Phone is not valid Remarks
Phone must be valid. See KiiUser.IsValidPhone(string)Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Change email of logged in user. If the email address verification is required by your app configuration, User's email would not changed to new one until the new email verification has been done. In this case, new mail address can be obtained by KiiUser.PendingEmail. This API does not refresh the KiiUser automatically. Please execute KiiUser.Refresh before checking the value of KiiUser.Email or KiiUser.PendingEmailSyntax
[System.Obsolete("ChangeEmail(string) is deprecated, please use Update(IdentityData, CustomFields) instead", false)]
public static void ChangeEmail (string email)Parameters
- New email.
Exceptions
Type Reason ArgumentException Is thrown when an argument is invalid. KiiCorp.Cloud.Storage.CloudException Is thrown when server sends error response. Remarks
Email must be validRequirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Changes the email of CurrentUserSyntax
[System.Obsolete("ChangeEmail(string, KiiCallback) is deprecated, please use Update(IdentityData, CustomFields, KiiUserCallback) instead", false)]
public static void ChangeEmail (string email, KiiCallback callback)Parameters
- New email.
- callback
- Callback.
Remarks
Email must be validRequirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Changes the password of CurrentUser.Syntax
Parameters
- newPassword
- New password.
- oldPassword
- Old password.
Exceptions
Type Reason ArgumentException Is thrown when password is invalid. InvalidOperationException Is thrown when this user is not CurrentUser. KiiCorp.Cloud.Storage.CloudException Is thrown when server sends error response. Remarks
NewPassword must be valid.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Changes the password of CurrentUser.Syntax
Parameters
- newPassword
- New password.
- oldPassword
- Old password.
- callback
- Callback.
Remarks
NewPassword must be valid.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Change phone number of logged in user. If the phone number verification is required by your app configuration, User's phone number would not changed to new one until the new phone number verification has been done. In this case, new phone can be obtained by KiiUser.PendingPhone This API does not refresh the KiiUser automatically. Please execute KiiUser.Refresh before checking the value of KiiUser.Phone or KiiUser.PendingPhoneSyntax
[System.Obsolete("ChangePhone(string) is deprecated, please use Update(IdentityData, CustomFields) instead", false)]
public static void ChangePhone (string phoneNumber)Parameters
- phoneNumber
- New phone number.
Exceptions
Type Reason ArgumentException Is thrown when an argument is null or invalid. KiiCorp.Cloud.Storage.CloudException Is thrown when server sends error response. Remarks
Phone number must be valid.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Changes the phone number of CurrentUser.Syntax
[System.Obsolete("ChangePhone(string, KiiCallback) is deprecated, please use Update(IdentityData, CustomFields, KiiUserCallback) instead", false)]
public static void ChangePhone (string phoneNumber, KiiCallback callback)Parameters
- phoneNumber
- New phone number.
- callback
- Callback.
Remarks
Phone number must be valid.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Reset password with the PIN code in receipt SMS. After KiiUser.ResetPassword(string, KiiCorp.Cloud.Storage.KiiUser.NotificationMethod) is called with KiiCorp.Cloud.Storage.KiiUser.NotificationMethod.SMS_PIN, SMS include the PIN code will be sent to the user's phone. User can set a new password for login with the PIN code. Need to call KiiUser.LogIn(string, string) to login after the new password is determined.Syntax
Parameters
- identifier
- should be valid email address, global phone number or user identifier obtained by KiiUser.ID.
- pinCode
- Received PIN code.
- newPassword
- New password for login. If the 'Password Reset Flow' in app's security setting is set to 'Generate password', it would be ignored and null can be passed. In this case, new password is generated on Kii Cloud and sent to user's phone. Otherwise valid password is required.
Exceptions
Type Reason KiiCorp.Cloud.Storage.BadRequestException Is thrown when newPassword is invalid. KiiCorp.Cloud.Storage.ForbiddenException Is thrown when PIN code doesn’t match with sent via SMS. KiiCorp.Cloud.Storage.ConflictException Is thrown when the user does not have a verified phone number. KiiCorp.Cloud.Storage.GoneException Is thrown when PIN code to reset password has expired Remarks
Documentation for this section has not yet been entered.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Reset password with the PIN code in receipt SMS. After KiiUser.ResetPassword(string, KiiCorp.Cloud.Storage.KiiUser.NotificationMethod) is called with KiiCorp.Cloud.Storage.KiiUser.NotificationMethod.SMS_PIN, SMS include the PIN code will be sent to the user's phone. User can set a new password for login with the PIN code. Need to call KiiUser.LogIn(string, string) to login after the new password is determined.Syntax
public static void CompleteResetPassword (string identifier, string pinCode, string newPassword, KiiCallback callback)Parameters
- identifier
- should be valid email address, global phone number or user identifier obtained by KiiUser.ID.
- pinCode
- Received PIN code.
- newPassword
- New password for login. If the 'Password Reset Flow' in app's security setting is set to 'Generate password', it would be ignored and null can be passed. In this case, new password is generated on Kii Cloud and sent to user's phone. Otherwise valid password is required.
- callback
- Callback.
Remarks
Documentation for this section has not yet been entered.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Gets or sets the country.Syntax
public string Country { get; set; }Value
The country.Exceptions
Type Reason ArgumentException Is thrown when an argument is invalid. Remarks
Country must be valid.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Creates KiiUser instance by URI.Syntax
Parameters
- uri
- User's URI.
Returns
KiiUser instance.Exceptions
Type Reason ArgumentException Is thrown when an argument is invalid. Remarks
URI format is kiiuser:Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Gets the current user.Syntax
public static KiiUser CurrentUser { get; }Value
The current user.Remarks
Current user is set when login is done.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Delete this user from KiiCloud.Syntax
public void Delete ()Exceptions
Type Reason InvalidOperationException Is thrown when user ID is empty. KiiCorp.Cloud.Storage.CloudException Is thrown when server sends error response. Remarks
If this user currently logged in, LogOut will be done and cached user info and token in the SDK will be cleared.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Delete this user from KiiCloud.Syntax
public void Delete (KiiCallback callback)Parameters
- callback
- Callback.
Remarks
If this user currently logged in, LogOut will be done and cached user info and token in the SDK will be cleared.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Return true if the user is disabled, false otherwise.Syntax
public bool Disabled { get; }Value
Documentation for this section has not yet been entered.Remarks
Call KiiUser.Refresh, or KiiUser.Refresh(KiiUserCallback) prior calling this method to get correct status.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Gets or sets the displayname.Syntax
public string Displayname { get; set; }Value
The displayname.Exceptions
Type Reason ArgumentException Is thrown when an argument is invalid. Remarks
Display name must be valid.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Gets the email.Syntax
public string Email { get; }Value
The email.Remarks
If email is not set, return null.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Gets a value whether email verified on KiiCloud.Syntax
public bool EmailVerified { get; }Value
true if email verified; otherwise, false.Remarks
Email verification is done from the verification email sent to the registered email.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Determines whether the specified object is equal to the current KiiCorp.Cloud.Storage.KiiUser.Syntax
Parameters
- obj
- The object to compare with the current KiiCorp.Cloud.Storage.KiiUser.
Returns
true if the specified object is equal to the current KiiCorp.Cloud.Storage.KiiUser; otherwise, false.Remarks
Return true when the specified KiiCorp.Cloud.Storage.KiiUser is in following conditions.
- KiiUser ID is equal to this one.
- (If KiiUser does not have ID) KiiUser instance is equal to this one.
Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Finds the user by Email.Syntax
Parameters
- User's Email.
Returns
KiiUser instance.Remarks
Email must be valid. See KiiUser.IsValidEmail(string)Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Finds the user by Email.Syntax
Parameters
- User's Email.
- callback
- Callback.
Returns
KiiUser instance.Remarks
Email must be valid. See KiiUser.IsValidEmail(string)Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Finds the user by phone.Syntax
Parameters
- phone
- User's Phone.
Returns
KiiUser instanceRemarks
Phone must be valid. See KiiUser.IsValidPhone(string)Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Finds the user by phone.Syntax
Parameters
- phone
- User's Phone.
- callback
- Callback.
Returns
KiiUser instanceRemarks
Phone must be valid. See KiiUser.IsValidPhone(string)Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Finds the user by UserNameSyntax
Parameters
- username
- User's Username.
Returns
KiiUser instance.Exceptions
Type Reason KiiCorp.Cloud.Storage.IllegalKiiBaseObjectFormatException Is thrown when server sends broken Json. Remarks
Username must be valid. See KiiUser.IsValidUserName(string)Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Finds the user by UserNameSyntax
Parameters
- username
- User's Username.
- callback
- Callback.
Returns
KiiUser instance.Exceptions
Type Reason KiiCorp.Cloud.Storage.IllegalKiiBaseObjectFormatException Is thrown when server sends broken Json. Remarks
Username must be valid. See KiiUser.IsValidUserName(string)Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Return the access tokens in a dictionary.Syntax
public Dictionary<string, object> GetAccessTokenDictionary ()Returns
Access token dictionary or null if user is not logged-in.Remarks
Key Type Value access_token string required for accessing KiiCloud. expires_at DateTime Access token expiration time. Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Serves as a hash function for a KiiCorp.Cloud.Storage.KiiUser object.Syntax
public override int GetHashCode ()Returns
A hash code for this instance that is suitable for use in hashing algorithms and data structures such as a hash table.Remarks
If this KiiUser instance has user ID, hash code is based on its ID. Otherwise, hash codes is based on an object's reference.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Return the access token and related information of access token for logged-in social network in a dictionary.Syntax
public Dictionary<string, object> GetSocialAccessTokenDictionary ()Returns
Access token and related information dictionary for the provider or null if user is not logged-in a social network.Remarks
Key Type Value oauth_token string access token for the provider. oauth_token_secret string access token secret for the provider. provider_user_id string user id of the provider provider KiiCorp.Cloud.Storage.Connector.Provider value to identity the provider. kii_new_user bool Indicates if user was created during connection. oauth_token_expires_in long Social provider's token expiration time. Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Returns the ID of this user.Syntax
public string ID { get; }Value
The user ID.Remarks
If the user has not saved to the cloud, returns null.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Determines whether this instance is linked with specified social provider.Syntax
public bool IsLinkedWithSocialProvider (KiiCorp.Cloud.Storage.Connector.Provider provider)Parameters
- provider
- Provider.
Returns
true if this instance is linked social provider the specified provider; otherwise, false.Remarks
Before call this method, calling the KiiUser.Refresh method is necessary to get the correct value.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Gets a value whether user is pseudo.Syntax
public bool IsPseudoUser { get; }Value
true if user is pseudo; otherwise, false.Remarks
If this method is not called for current login user, calling the Refresh() method is necessary to get a correct value.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Determines whether an argument is valid country.Syntax
Parameters
- country
- Country you want to check.
Returns
true if an argument is valid country ; otherwise, false.Remarks
Valid country is
- Not null
- Matches ^[A-Z]{2}$
Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Determines whether an argument is valid display name.Syntax
Parameters
- displayname
- Display name you want to check.
Returns
true if an argument is valid display name ; otherwise, false.Remarks
Valid display name is
- Not null
- Length is 1 - 50
Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Determines whether an argument is valid email.Syntax
Parameters
- Email you want to check
Returns
true if an argument is valid email ; otherwise, false.Remarks
Valid email is
- Not null
- Not empty
- matches ^[a-zA-Z0-9\\+\\.\\_\\%\\-\\+]{1,256}\\@[a-zA-Z0-9][a-zA-Z0-9\\-]{0,64}(\\.[a-zA-Z0-9][a-zA-Z0-9\\-]{0,25})+$
Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Determines whether an argument is valid global phone.Syntax
Parameters
- phone
- Global phone number you want to check
Returns
true if an argument is valid global phone ; otherwise, false.Remarks
Valid global phone isRequirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Determines whether an argument is valid local phone.Syntax
Parameters
- phone
- Local phone number you want to check
Returns
true if an argument is valid local phone ; otherwise, false.Remarks
Valid local phone isRequirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Determines whether an argument is valid password.Syntax
Parameters
- password
- Password you want to check.
Returns
true if an argument is valid password ; otherwise, false.Remarks
Valid password is
- Not null
- Matches ^[a-zA-Z0-9]{4,64}$
Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Determines whether an argument is valid phone.Syntax
Parameters
- phone
- Phone number you want to check
Returns
true if an argument is valid phone ; otherwise, false.Remarks
Valid phone is
- Not null
- matches ^[\\+]?[0-9.-]+
Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Determines whether an argument is valid user name.Syntax
Parameters
- username
- username you want to check
Returns
true if an argument is valid user name ; otherwise, false.Remarks
Valid username is
- Not null.
- matches [a-zA-Z0-9-_\\.]{3,64}$
Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Gets the linked social accounts.Syntax
public Dictionary<KiiCorp.Cloud.Storage.Connector.Provider, KiiCorp.Cloud.Storage.Connector.SocialAccountInfo> LinkedSocialAccounts { get; }Value
Dictionary<Provider,SocialAccountInfo> Provider as key and SocialAccountInfo as valueRemarks
Before call this method, calling the KiiUser.Refresh method is necessary. Otherwise, empty list will be returned.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Links the with social network.Syntax
public KiiUser LinkWithSocialNetwork (Dictionary<string, string> accessCredential, KiiCorp.Cloud.Storage.Connector.Provider provider)Parameters
- accessCredential
- following parameters can be assigned to bundle:
Key Value accessToken Access token accessTokenSecret Access Token Secret for Twitter integration openID OpenID for QQ integration - provider
- Social Network Provider.It must be FACEBOOK, GOOGLE, GOOGLEPLUS, TWITTER, RENREN or QQ.
Returns
KiiUser instance.Exceptions
Type Reason ArgumentException Is thrown when an argument is invalid. Remarks
Documentation for this section has not yet been entered.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Links the with social network.Syntax
public void LinkWithSocialNetwork (Dictionary<string, string> accessCredential, KiiCorp.Cloud.Storage.Connector.Provider provider, KiiGenericsCallback<KiiUser> callback)Parameters
- accessCredential
- following parameters can be assigned to bundle:
Key Value accessToken Access token accessTokenSecret Access Token Secret for Twitter integration openID OpenID for QQ integration - provider
- Social Network Provider.It must be FACEBOOK, GOOGLE, GOOGLEPLUS, TWITTER, RENREN or QQ.
- callback
- Callback.
Exceptions
Type Reason ArgumentNullException Is thrown when callback is null. Remarks
Documentation for this section has not yet been entered.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Gets the list of topics in this user scope.Syntax
public KiiListResult<KiiTopic> ListTopics ()Returns
A list of the topics in this user scope.Exceptions
Type Reason KiiCorp.Cloud.Storage.CloudException Is thrown when server sends error response. KiiCorp.Cloud.Storage.UnauthorizedException Is thrown when this method called by anonymous user. InvalidOperationException Is thrown when this instance does not have ID Remarks
This api sends a request to server.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Asynchronous call for KiiUser.ListTopics.Syntax
public void ListTopics (KiiGenericsCallback<KiiListResult<KiiTopic>> callback)Parameters
- callback
- Callback.
Exceptions
Type Reason KiiCorp.Cloud.Storage.CloudException Is thrown when server sends error response. Remarks
This api sends a request to server.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Gets the list of next page of topics in this user scope.Syntax
public KiiListResult<KiiTopic> ListTopics (string paginationKey)Parameters
- paginationKey
- Specifies the pagination key that is obtained by KiiListResult`1.PaginationKey. If specified null or empty, it's same as the KiiUser.ListTopics.
Returns
A list of the topics in this user scope.Exceptions
Type Reason KiiCorp.Cloud.Storage.CloudException Is thrown when server sends error response. KiiCorp.Cloud.Storage.UnauthorizedException Is thrown when this method called by anonymous user. Remarks
This api sends a request to server.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Asynchronous call for KiiUser.ListTopics(string).Syntax
public void ListTopics (string paginationKey, KiiGenericsCallback<KiiListResult<KiiTopic>> callback)Parameters
- paginationKey
- Specifies the pagination key that is obtained by KiiListResult`1.PaginationKey. If specified null or empty, it's same as the KiiUser.ListTopics(KiiGenericsCallback<KiiListResult<KiiTopic>>).
- callback
- Callback.
Exceptions
Type Reason KiiCorp.Cloud.Storage.CloudException Is thrown when server sends error response. Remarks
This api sends a request to server.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Gets or sets the locale.Syntax
public LocaleContainer Locale { get; set; }Value
The locale.Exceptions
Type Reason ArgumentException Is thrown when an argument is null. Remarks
locale must be not null.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Login with username/email/phone and password.Syntax
Parameters
- userIdentifier
- Username, email or phone.
- password
- User's password.
Returns
KiiUser instance.Remarks
UserIdentifier is username, email or phone.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Login with username/email/phone and password.Syntax
Parameters
- userIdentifier
- Username, email or phone.
- password
- User's password.
- callback
- Callback delegate. If exception is null, execution is succeeded.
Returns
KiiUser instance.Remarks
UserIdentifier is username, email or phone.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Login with Facebook Token.Syntax
Parameters
- facebookToken
- Facebook Access token.
Returns
KiiUser instance.Exceptions
Type Reason ArgumentException Is thrown when an argument is invalid. KiiCorp.Cloud.Storage.IllegalKiiBaseObjectFormatException Is thrown when Server sends Json string which is not parserable. Remarks
If token is valid, The user is stored as CurrentUser. Facebook app id must be configured in app settings on the developer console. If successful, the user is cached inside SDK as current user, and accessible via KiiUser.CurrentUser. This user token and token expiration is also cached and can be get by KiiUser.GetAccessTokenDictionary. Access token won't be expired unless you set it explicitly by Kii.AccessTokenExpiration.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Login with Facebook Token.Syntax
Parameters
- facebookToken
- Access token.
- callback
- Callback.
Exceptions
Type Reason ArgumentException Is thrown when an argument is invalid. KiiCorp.Cloud.Storage.IllegalKiiBaseObjectFormatException Is thrown when Server sends Json string which is not parserable. Remarks
If token is valid, The user is stored as CurrentUser. Facebook app id must be configured in app settings on the developer console.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
LogIn with local phone number, country and password.Syntax
public static KiiUser LogInWithLocalPhone (string localPhoneNumber, string password, string country)Parameters
- localPhoneNumber
- Local phone number. Must be valid.
- password
- Password. Must be valid.
- country
- Country. Must be valid.
Returns
KiiUser instance.Remarks
Phone number must be valid local Phone number. Country must be valid country code.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
LogIn with local phone number, country and password.Syntax
public static void LogInWithLocalPhone (string localPhoneNumber, string password, string country, KiiUserCallback callback)Parameters
- localPhoneNumber
- Local phone number. Must be valid.
- password
- Password. Must be valid.
- country
- Country. Must be valid.
- callback
- Callback
Remarks
Phone number must be valid local Phone number. Country must be valid country code.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Logins the with social network token.Syntax
public static KiiUser LoginWithSocialNetwork (Dictionary<string, string> accessCredential, KiiCorp.Cloud.Storage.Connector.Provider provider)Parameters
- accessCredential
- following parameters can be assigned to bundle:
Key Value accessToken Access token accessTokenSecret Access Token Secret for Twitter integration openID OpenID for QQ integration - provider
- Social Network Provider.It must be FACEBOOK, GOOGLE, GOOGLEPLUS, TWITTER, RENREN or QQ.
Returns
KiiUser instance.Exceptions
Type Reason ArgumentException Is thrown when an argument is invalid. KiiCorp.Cloud.Storage.IllegalKiiBaseObjectFormatException Is thrown when Server sends Json string which is not parserable. Remarks
Documentation for this section has not yet been entered.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Login with Social Network Token.Syntax
public static void LoginWithSocialNetwork (Dictionary<string, string> accessCredential, KiiCorp.Cloud.Storage.Connector.Provider provider, KiiGenericsCallback<KiiUser> callback)Parameters
- accessCredential
- following parameters can be assigned to bundle:
Key Value accessToken Access token accessTokenSecret Access Token Secret for Twitter integration openID OpenID for QQ integration - provider
- Social Network Provider.It must be FACEBOOK, GOOGLE, GOOGLEPLUS, TWITTER, RENREN or QQ.
- callback
- Callback.
Exceptions
Type Reason ArgumentNullException Is thrown when callback is null. Remarks
Documentation for this section has not yet been entered.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Login with Access Token.Syntax
Parameters
- token
- Access token.
Returns
KiiUser instance.Exceptions
Type Reason ArgumentException Is thrown when an argument is invalid. KiiCorp.Cloud.Storage.IllegalKiiBaseObjectFormatException Is thrown when Server sends Json string which is not parserable. Remarks
If successful, the user is cached inside SDK as current user, and accessible via KiiUser.CurrentUser. Specified token is also cached and can be get by KiiUser.GetAccessTokenDictionary. Note that, token expiration time is not cached and set to DateTime.MaxValue in the dicitonary. If you want token expiration time also be cached, use KiiUser.LoginWithToken(string, DateTime) instead.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Login with Access Token.Syntax
Parameters
- token
- Access token.
- callback
- Callback.
Exceptions
Type Reason ArgumentException Is thrown when an argument is invalid. KiiCorp.Cloud.Storage.IllegalKiiBaseObjectFormatException Is thrown when Server sends Json string which is not parserable. Remarks
If successful, the user is cached inside SDK as current user, and accessible via KiiUser.CurrentUser. Specified token is also cached and can be get by KiiUser.GetAccessTokenDictionary. Note that, token expiration time is not cached and set to DateTime.MaxValue in the dicitonary. If you want token expiration time also be cached, use KiiUser.LoginWithToken(string, DateTime, KiiUserCallback) instead. Login again to renew the token.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Login with Access Token.Syntax
Parameters
- token
- Access token.
- expiresAt
- Access token expire time that has received by KiiUser.GetAccessTokenDictionary.
Returns
KiiUser instance.Exceptions
Type Reason ArgumentException Is thrown when specified token is null/empty. KiiCorp.Cloud.Storage.CloudException Is thrown when server sends error response. KiiCorp.Cloud.Storage.IllegalKiiBaseObjectFormatException Is thrown when Server sends Json string which is not parserable. Remarks
Specified expiresAt won't be used by SDK. IF login successful, we set this property so that you can get it later along with token by KiiUser.GetAccessTokenDictionary. Also, if successful, returned user is cached inside SDK as current user, and accessible via KiiUser.CurrentUser.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Login with Access Token.Syntax
Parameters
- token
- Access token.
- expiresAt
- Access token expire time that has received by KiiUser.GetAccessTokenDictionary.
- callback
- Callback.
Exceptions
Type Reason ArgumentException Is thrown when specified token is null/empty or callback is null. Remarks
Specified expiresAt won't be used by SDK. IF login successful, we set this property so that you can get it later along with token by KiiUser.GetAccessTokenDictionary. Also, if successful, returned user is cached inside SDK as current user, and accessible via KiiUser.CurrentUser.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Logout Current UserSyntax
public static void LogOut ()Remarks
Logout Current UserRequirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Returns the list of groups which the user is a member of.Syntax
public IList<KiiGroup> MemberOfGroups ()Returns
The list of groups.Exceptions
Type Reason InvalidOperationException Is thrown when this instance doesn't have ID KiiCorp.Cloud.Storage.IllegalKiiBaseObjectFormatException Is thrown when server sends broken Json Remarks
Group item in the list does not contain all the property of group. To get all the property from cloud, a KiiGroup.Refresh() is necessary.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Returns the list of groups which the user is a member of.Syntax
public void MemberOfGroups (KiiGroupListCallback callback)Parameters
- callback
- Callback.
Exceptions
Type Reason InvalidOperationException Is thrown when this instance doesn't have ID KiiCorp.Cloud.Storage.IllegalKiiBaseObjectFormatException Is thrown when server sends broken Json Remarks
Group item in the list does not contain all the property of group. To get all the property from cloud, a KiiGroup.Refresh() is necessary.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Returns the groups owned by this user.Syntax
public IList<KiiGroup> OwnerOfGroups ()Returns
The list of groups.Exceptions
Type Reason InvalidOperationException Is thrown when this instance doesn't have ID KiiCorp.Cloud.Storage.IllegalKiiBaseObjectFormatException Is thrown when server sends broken Json Remarks
Group in the list does not contain all the property of group. To get all the property from cloud, a KiiGroup.Refresh is necessary.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Returns the groups owned by this user.Syntax
public void OwnerOfGroups (KiiGroupListCallback callback)Parameters
- callback
- Callback.
Exceptions
Type Reason InvalidOperationException Is thrown when this instance doesn't have ID KiiCorp.Cloud.Storage.IllegalKiiBaseObjectFormatException Is thrown when server sends broken Json Remarks
Group in the list does not contain all the property of group. To get all the property from cloud, a KiiGroup.Refresh is necessary.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Get the email of this user that has not been verified. When the user's email has been changed and email verification is required in you app configuration, New email is stored as pending email. After the new email has been verified, the address can be obtained by KiiUser.EmailSyntax
public string PendingEmail { get; }Value
The pending email.Remarks
Documentation for this section has not yet been entered.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Get the phone of this user that has not been verified. When the user's phone has been changed and phone verification is required in you app configuration, New phone is stored as pending phone. After the new phone has been verified, the number can be obtained by KiiUser.PhoneSyntax
public string PendingPhone { get; }Value
The pending phone.Remarks
Documentation for this section has not yet been entered.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Gets the phone number.Syntax
public string Phone { get; }Value
The phone.Remarks
If phone is not set, return null.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Gets a value whether phone verified on KiiCloud.Syntax
public bool PhoneVerified { get; }Value
true if phone verified; otherwise, false.Remarks
Phone verification is done when VerifyPhone(string) is called successfully.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Get KiiPushInstallation instance of current logged in user. The installation will be created for production. (Same as calling KiiUser.PushInstallation(bool) with false.) You can control sending message to production/development installation, by specifying the flag when sending push message.Syntax
public static KiiPushInstallation PushInstallation ()Returns
The installation.Remarks
Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Get KiiPushInstallation instance of current logged in user. development : true would be used for testing push before release application / new version. other wise, use KiiUser.PushInstallation. You can control sending message to production/ development installation, by specifying the flag when sending push message.Syntax
public static KiiPushInstallation PushInstallation (bool development)Parameters
- development
- If set to true development.
Returns
The installation.Remarks
Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Get KiiPushSubscription instance of the user. The user will subscribe to the push service by using the returned instance.Syntax
public KiiPushSubscription PushSubscription { get; }Value
KiiPushSubscription Instance of KiiPushSubscription.Remarks
Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Puts identity data to pseudo user. This method is exclusive to pseudo user. If this method is called for user who has identity, KiiCorp.Cloud.Storage.AlreadyHasIdentityException will be thrown.Syntax
Parameters
- identityData
- Mandatory.
- userFields
- Optional. If null is passed, display name, country and other custom field would not be updated. To update those fields, create userFields instance and pass to this api. Fields which is not included in this instance would not be updated. (current value would be retained)
- password
- Mandatory. New password is required to put Identity.
Exceptions
Type Reason InvalidOperationException Is thrown when current user is not pseudo user. ArgumentNullException Is thrown when identityData is null. ArgumentException Is thrown when an argument is invalid. KiiCorp.Cloud.Storage.CloudException Is thrown when server sends error response. KiiCorp.Cloud.Storage.AlreadyHasIdentityException if a pseudo user already has identity. Remarks
This user must be current user. password is mandatory and needs to provide at least one of login name, email address or phone number. Local modification done by KiiUser.Country, KiiUser.Displayname and other properties in KiiCorp.Cloud.Storage.KiiUser will be ignored. Please make sure to set new values in UserFields.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Puts identity data to pseudo user. This method is exclusive to pseudo user. If this method is called for user who has identity, KiiCorp.Cloud.Storage.AlreadyHasIdentityException will be passed to callback.Syntax
public void PutIdentity (IdentityData identityData, UserFields userFields, string password, KiiUserCallback callback)Parameters
- identityData
- Mandatory.
- userFields
- Optional. If null is passed, display name, country and other custom field would not be updated. To update those fields, create userFields instance and pass to this api. Fields which is not included in this instance would not be updated. (current value would be retained)
- password
- Mandatory. New password is required to put Identity.
- callback
- Callback.
Exceptions
Type Reason ArgumentNullException Is thrown when an argument is null or empty. Remarks
This user must be current user. password is mandatory and needs to provide at least one of login name, email address or phone number. Local modification done by KiiUser.Country, KiiUser.Displayname and other properties in KiiCorp.Cloud.Storage.KiiUser will be ignored. Please make sure to set new values in UserFields.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Refresh this instance.Syntax
public void Refresh ()Exceptions
Type Reason InvalidOperationException Is thrown when this instance does not have ID KiiCorp.Cloud.Storage.IllegalKiiBaseObjectFormatException Is thrown when server sends broken Json object. KiiCorp.Cloud.Storage.CloudException Is thrown when server sends error response. Remarks
Getting user profile from KiiCloud and refresh related properties.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Refresh this instance.Syntax
public void Refresh (KiiUserCallback callback)Parameters
- callback
- Callback.
Remarks
Getting user profile from KiiCloud and refresh related properties.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Register this user on KiiCloud.Syntax
Parameters
- password
- Password.
Exceptions
Type Reason ArgumentException Is thrown when an argument is invalid. KiiCorp.Cloud.Storage.IllegalKiiBaseObjectFormatException Is thrown when server sends illegal JSON object. KiiCorp.Cloud.Storage.CloudException Is thrown when server sends error response. Remarks
Register this user on KiiCloud. Password must be valid.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Register this user on KiiCloud.Syntax
Parameters
- password
- Password.
- callback
- Callback.
Remarks
Register this user on KiiCloud. Password must be valid.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Register as pseudo user on KiiCloud.Syntax
public static KiiUser RegisterAsPseudoUser (UserFields userFields)Parameters
- userFields
- Optional. If null is passed, display name, country and other custom field would not be set.
Returns
Registered KiiUser instance.Exceptions
Type Reason KiiCorp.Cloud.Storage.CloudException Is thrown when server sends error response. Remarks
When successfully registered, get access token by KiiUser.AccessToken and store it for later use.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Register as pseudo user on KiiCloud.Syntax
Parameters
- userFields
- Optional. If null is passed, display name, country and other custom field would not be set.
- callback
- Callback.
Exceptions
Type Reason ArgumentNullException Is thrown when callback is null. Remarks
When successfully registered, get access token by KiiUser.AccessToken and store it for later use.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Requests for letting server send email verification.Syntax
public static void RequestResendEmailVerification ()Exceptions
Type Reason KiiCorp.Cloud.Storage.CloudException Is thrown when server sends error response. Remarks
LogIn is required.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Requests for letting server send email verification.Syntax
public static void RequestResendEmailVerification (KiiCallback callback)Parameters
- callback
- Callback.
Remarks
LogIn is required.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Requests for letting server send phone verification code.Syntax
public static void RequestResendPhoneVerificationCode ()Exceptions
Type Reason KiiCorp.Cloud.Storage.CloudException Is thrown when server sernds error response. Remarks
LogIn is required.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Requests for letting server send phone verification code.Syntax
public static void RequestResendPhoneVerificationCode (KiiCallback callback)Parameters
- callback
- Callback.
Remarks
LogIn is required.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Resets the password.Syntax
Parameters
- identifier
- Email address which is binded to this user.
Exceptions
Type Reason ArgumentException Is thrown when an argument is not a valid Email address. KiiCorp.Cloud.Storage.CloudException Is thrown when server sends error response. Remarks
Reset the password of current login user. Url for password reset will be sent to the specified identifier..Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Resets the password.Syntax
Parameters
- identifier
- Email address which is binded to this user.
- callback
- Callback.
Exceptions
Type Reason InvalidOperationException Is thrown when SDK is not initialized. ArgumentNullException Is thrown when a callback is null. Remarks
Reset the password of current login user. Url for password reset will be sent to the specified identifier..Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Resets the password.Syntax
Parameters
- identifier
- should be valid email address, global phone number or user identifier obtained by KiiUser.ID
- notificationMethod
- specify destination of message includes reset password link url. different type of identifier and destination can be used as long as user have verified email, phone. (ex. User registers both email and phone. Identifier is email and notificationMethod is SMS.)
Exceptions
Type Reason ArgumentException Is thrown when an argument is not a valid user identifier. KiiCorp.Cloud.Storage.ConflictException Is thrown when an action has been invoked at an illegal or inappropriate time. KiiCorp.Cloud.Storage.CloudException Is thrown when server sends error response. Remarks
Reset the password of user specified by given identifier. This api does not execute login after reset completion.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Resets the password.Syntax
public static void ResetPassword (string identifier, KiiUser.NotificationMethod notificationMethod, KiiCallback callback)Parameters
- identifier
- should be valid email address, global phone number or user identifier obtained by KiiUser.ID
- notificationMethod
- specify destination of message includes reset password link url. different type of identifier and destination can be used as long as user have verified email, phone. (ex. User registers both email and phone. Identifier is email and notificationMethod is SMS.)
- callback
- Callback called after completion.
Exceptions
Type Reason InvalidOperationException Is thrown when SDK is not initialized. ArgumentNullException Is thrown when a callback is null. Remarks
Reset the password of user specified by given identifier. This api does not execute login after reset completion.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Gets the subject string.Syntax
public string Subject { get; }Value
The subject string.Remarks
Developers don't need to use this property in their apps.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Determines whether the specified KiiCorp.Cloud.Storage.KiiUser is equal to the current KiiCorp.Cloud.Storage.KiiUser.Syntax
Parameters
- other
- The KiiCorp.Cloud.Storage.KiiUser to compare with the current KiiCorp.Cloud.Storage.KiiUser.
Returns
true if the specified KiiCorp.Cloud.Storage.KiiUser is equal to the current KiiCorp.Cloud.Storage.KiiUser; otherwise, false.Remarks
Return true when the specified KiiCorp.Cloud.Storage.KiiUser is in following conditions.
- KiiUser ID is equal to this one.
- (If KiiUser does not have ID) KiiUser instance is equal to this one.
Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Get instance of user scope topic. The topic bound to this user.Syntax
Parameters
- name
- Name of topic.
Returns
KiiTopic bound to this user.Remarks
Documentation for this section has not yet been entered.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Uns the link with social network.Syntax
public KiiUser UnLinkWithSocialNetwork (KiiCorp.Cloud.Storage.Connector.Provider provider)Parameters
- provider
- Social Network Provider.It must be FACEBOOK, GOOGLE, GOOGLEPLUS, TWITTER, RENREN or QQ.
Returns
KiiUser instance.Exceptions
Type Reason ArgumentException Is thrown when an argument is invalid. Remarks
Documentation for this section has not yet been entered.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Uns the link with social network.Syntax
public void UnLinkWithSocialNetwork (KiiCorp.Cloud.Storage.Connector.Provider provider, KiiGenericsCallback<KiiUser> callback)Parameters
- provider
- Social Network Provider.It must be FACEBOOK, GOOGLE, GOOGLEPLUS, TWITTER, RENREN or QQ.
- callback
- Callback.
Exceptions
Type Reason ArgumentNullException Is thrown when callback is null. Remarks
Documentation for this section has not yet been entered.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Update user.Syntax
[System.Obsolete("Update() is deprecated, please use Update(IdentityData, UserFields) instead", false)]
public void Update ()Exceptions
Type Reason InvalidOperationException Is thrown when user is not current user. KiiCorp.Cloud.Storage.CloudException Is thrown when server sernds error response. Remarks
This user must be current user. Before call this method, calling the Refresh() method is necessary to keep custom fields, otherwise custom fields will be gone.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Update user.Syntax
[System.Obsolete("Update(KiiUserCallback) is deprecated, please use Update(IdentityData, UserFields, KiiUserCallback) instead", false)]
public void Update (KiiUserCallback callback)Parameters
- callback
- Callback.
Remarks
This user must be current user. Before call this method, calling the Refresh() method is necessary to keep custom fields, otherwise custom fields will be gone.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Update user attributes. To update IdentityData of pseudo user, use KiiUser.PutIdentity(IdentityData, UserFields, string)Syntax
public void Update (UserFields userFields)Parameters
- userFields
- To update those fields, create userFields instance and pass to this api. Fields which is not included in this instance would not be updated. (current value would be retained.)
Exceptions
Type Reason ArgumentNullException Is thrown when an argument is null or empty. InvalidOperationException Is thrown when user is not current user. Remarks
Local modification done by KiiUser.Country, KiiUser.Displayname and other properties in KiiCorp.Cloud.Storage.KiiUser will be ignored and lost. Please make sure to set new values in UserFields.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Update user attributes. If this method is called for pseudo user with IdentityData, ArgumentException will be thrown. To update IdentityData of pseudo user, use KiiUser.PutIdentity(IdentityData, UserFields, string)Syntax
Parameters
- identityData
- Optional. If null is passed, Identity data would not be updated and current value would be retained.
- userFields
- Optional. If null is passed, display name, country and other custom field would not be updated. To update those fields, create userFields instance and pass to this api. Fields which is not included in this instance would not be updated. (current value would be retained.)
Exceptions
Type Reason ArgumentException Is thrown when method is called for pseudo user Is thrown when specified local Phone number with invalid country code. ArgumentNullException Is thrown when both arguments are null or empty. InvalidOperationException Is thrown when user is not current user. Remarks
Local modification done by KiiUser.Country, KiiUser.Displayname and other properties in KiiCorp.Cloud.Storage.KiiUser will be ignored and lost. Please make sure to set new values in UserFields.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Update user attributes. To update IdentityData of pseudo user, use KiiUser.PutIdentity(IdentityData, UserFields, string)Syntax
Parameters
- userFields
- To update those fields, create userFields instance and pass to this api. Fields which is not included in this instance would not be updated. (current value would be retained.)
- callback
- Callback.
Exceptions
Type Reason ArgumentNullException Is thrown when an argument is null or empty. Remarks
Local modification done by KiiUser.Country, KiiUser.Displayname and other properties in KiiCorp.Cloud.Storage.KiiUser will be ignored. Please make sure to set new values in UserFields.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Update user attributes. If this method is called for pseudo user with IdentityData, KiiCorp.Cloud.Storage.BadRequestException will be thrown. To update IdentityData of pseudo user, use KiiUser.PutIdentity(IdentityData, UserFields, string)Syntax
Parameters
- identityData
- Optional. If null is passed, Identity data would not be updated and current value would be retained.
- userFields
- Optional. If null is passed, display name, country and other custom field would not be updated. To update those fields, create userFields instance and pass to this api. Fields which is not included in this instance would not be updated. (current value would be retained.)
- callback
- Callback.
Exceptions
Type Reason ArgumentNullException Is thrown when an argument is null or empty. Remarks
Local modification done by KiiUser.Country, KiiUser.Displayname and other properties in KiiCorp.Cloud.Storage.KiiUser will be ignored. Please make sure to set new values in UserFields.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
URI of this user.Syntax
public Uri Uri { get; }Value
URI of this user.Remarks
To get KiiUser instance, call KiiUser.CreateByUri(Uri).Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Gets the username.Syntax
public string Username { get; }Value
The username.Remarks
If username is not set, return null.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
KiiUser.Phone Instantiate KiiUser that refers to existing user which has specified ID.Syntax
Parameters
- userID
- ID of the user to instantiate.
Returns
KiiUser instance.Exceptions
Type Reason ArgumentException Is thrown when specified userID is null or empty. Remarks
You have to specify the ID of existing KiiUser. Unlike KiiObject, you can not assign ID in the client side. This API does not access to the server. After instantiation, call KiiUser.Refresh to fetch the properties.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Verifies the user.Syntax
Parameters
- code
- Verificatoin conde on SMS sent by KiiCloud.
Exceptions
Type Reason ArgumentException Is thrown when an argument is empty. KiiCorp.Cloud.Storage.IllegalKiiBaseObjectFormatException Is thrown when server sends broken Json. KiiCorp.Cloud.Storage.CloudException Is thrown when server sends error response. Remarks
Verify this user's phone number with verification code in SMS sent by KiiCloud.
Verification code is sent from Kii Cloud when new user is registered with phone number or user requested to change their phone number in the application which requires phone verification.
(You can enable/disable phone verification through the console in developer.kii.com)
After the verification succeeded, new phone number becomes users phone number and user is able to login with the phone number.
To get the new phone number, please call KiiUser.Refresh(KiiUserCallback) before access to KiiUser.Phone Before completion of KiiUser.Refresh(KiiUserCallback), value of KiiUser.Phone is cached phone number. It could be old phone number or null.
Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Verifies the user.Syntax
Parameters
- code
- Verificatoin conde on SMS sent by KiiCloud.
- callback
- Callback.
Remarks
Verify this user with verification code on SMS sent by KiiCloud.
This method is asynchronous version of KiiUser.VerifyPhone(string)
Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0