KiiCloudStorageSDK : KiiCorp.Cloud.Storage Namespace

IdentityData.Builder Class

Identity data builder.

Syntax

public class IdentityData.Builder

Remarks

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 () : IdentityData
Build IdentityData instance.
static
CreateWithEmail (string) : IdentityData.Builder
Create Builder with email address.
static
CreateWithName (string) : IdentityData.Builder
Create Builder with user name.
static
CreateWithPhone (string) : IdentityData.Builder
Create Builder with phone number.
WithEmail (string) : IdentityData.Builder
Set email address.
WithName (string) : IdentityData.Builder
Set username.
WithPhone (string) : IdentityData.Builder
Set phone number.

Member Details

Build Method

Build IdentityData instance.

Syntax

public IdentityData Build ()

Returns

IdentityData instance.

Remarks

Build IdentityData 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

CreateWithEmail Method

Create Builder with email address.

Syntax

public static IdentityData.Builder CreateWithEmail (string email)

Parameters

email
Email.

Returns

IdentityDataBuilder instance.

Exceptions

Type Reason
ArgumentException Is thrown when an argument is invalid email address.
ArgumentNullException Is thrown when an argument is null or empty.

Remarks

Requirements

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

CreateWithName Method

Create Builder with user name.

Syntax

public static IdentityData.Builder CreateWithName (string userName)

Parameters

userName
User name.

Returns

IdentityDataBuilder instance.

Exceptions

Type Reason
ArgumentException Is thrown when an argument is invalid username.
ArgumentNullException Is thrown when an argument is null or empty.

Remarks

Requirements

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

CreateWithPhone Method

Create Builder with phone number.

Syntax

public static IdentityData.Builder CreateWithPhone (string phone)

Parameters

phone
Phone.

Returns

IdentityDataBuilder instance.

Exceptions

Type Reason
ArgumentException Is thrown when an argument is invalid phone number.
ArgumentNullException Is thrown when an argument is null or empty.

Remarks

Requirements

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

WithEmail Method

Set email address.

Syntax

public IdentityData.Builder WithEmail (string email)

Parameters

email
Email.

Returns

Itself

Exceptions

Type Reason
ArgumentException Is thrown when an argument is invalid email address.
ArgumentNullException Is thrown when an argument is null or empty.

Remarks

Email must be valid. When called multiple times, it will update existing email address.

Requirements

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

WithName Method

Set username.

Syntax

public IdentityData.Builder WithName (string userName)

Parameters

userName
Username.

Returns

Itself

Exceptions

Type Reason
ArgumentException Is thrown when an argument is invalid username.
ArgumentNullException Is thrown when an argument is null or empty.

Remarks

Username must be valid. When called multiple times, it will update existing user name.

Requirements

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

WithPhone Method

Set phone number.

Syntax

public IdentityData.Builder WithPhone (string phone)

Parameters

phone
Phone.

Returns

Itself.

Exceptions

Type Reason
ArgumentException Is thrown when an argument is invalid phone number.
ArgumentNullException Is thrown when an argument is null or empty.

Remarks

Phone must be valid. When called multiple times, it will update existing phone number.

Requirements

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