KiiCloudStorageSDK : KiiCorp.Cloud.Storage Namespace

KiiUser.Builder Class

Builds KiiUser instance.

Syntax

public class KiiUser.Builder

Remarks

To create this instance. Please use KiiUser.BuilderWithName(string), KiiUser.BuilderWithEmail(string), KiiUser.BuilderWithLocalPhone(string, string) or KiiUser.BuilderWithIdentifier(string).

Requirements

Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0

Members

See Also: Inherited members from object.

Public Methods

Build () : KiiUser
Build KiiUser instance.
SetEmail (string) : KiiUser.Builder
Set email
SetGlobalPhone (string) : KiiUser.Builder
Set global phone
SetLocalPhone (string, string) : KiiUser.Builder
Set local phone.
SetName (string) : KiiUser.Builder
Set username
WithEmail (string) : KiiUser.Builder
Set email
WithName (string) : KiiUser.Builder
Set username
WithPhone (string) : KiiUser.Builder
Set phone

Member Details

Build Method

Build KiiUser instance.

Syntax

public KiiUser Build ()

Returns

KiiUser instance.

Exceptions

Type Reason
InvalidOperationException Is thrown when username, email and phone are null.

Remarks

Build KiiUser instance with username, email and phone if they're set.

Requirements

Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0

SetEmail Method

Set email

Syntax

public KiiUser.Builder SetEmail (string email)

Parameters

email
Email.

Returns

Itself

Exceptions

Type Reason
ArgumentException Is thrown when an argument is invalid.

Remarks

Email must be valid.

Requirements

Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0

SetGlobalPhone Method

Set global phone

Syntax

public KiiUser.Builder SetGlobalPhone (string phone)

Parameters

phone
Phone.

Returns

Itself.

Exceptions

Type Reason
ArgumentException Is thrown when an argument is invalid.

Remarks

Phone must be valid.

Requirements

Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0

SetLocalPhone Method

Set local phone.

Syntax

public KiiUser.Builder SetLocalPhone (string phone, string country)

Parameters

phone
Local phone.
country
Country.

Returns

Itself.

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.

Requirements

Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0

SetName Method

Set username

Syntax

public KiiUser.Builder SetName (string userName)

Parameters

userName
Username.

Returns

Itself

Exceptions

Type Reason
ArgumentException Is thrown when an argument is invalid.

Remarks

Username must be valid.

Requirements

Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0

WithEmail Method

Set email

Syntax

[System.Obsolete("WithEmail() is deprecated, please use SetEmail(string) instead", false)]
public KiiUser.Builder WithEmail (string email)

Parameters

email
Email.

Returns

Itself

Exceptions

Type Reason
ArgumentException Is thrown when an argument is invalid.

Remarks

Email must be valid.

Requirements

Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0

WithName Method

Set username

Syntax

[System.Obsolete("WithName() is deprecated, please use SetName(string) instead", false)]
public KiiUser.Builder WithName (string userName)

Parameters

userName
Username.

Returns

Itself

Exceptions

Type Reason
ArgumentException Is thrown when an argument is invalid.

Remarks

Username must be valid.

Requirements

Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0

WithPhone Method

Set phone

Syntax

[System.Obsolete("WithPhone() is deprecated, please use SetGlobalPhone(string) or SetLocalPhone(string, string) instead", false)]
public KiiUser.Builder WithPhone (string phone)

Parameters

phone
Phone.

Returns

Itself.

Exceptions

Type Reason
ArgumentException Is thrown when an argument is invalid.

Remarks

Phone must be valid.

Requirements

Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0