Inherits from NSObject
Declared in KiiIdentityDataBuilder.h

Overview

Builder for KiiIdentityData.

Properties

email

Email address of the user.

@property (nonatomic, nullable) NSString *email

Discussion

Email address of the user.

The user’s email.

Declared In

KiiIdentityDataBuilder.h

phoneNumber

Phone number of the user.

@property (nonatomic, nullable) NSString *phoneNumber

Discussion

Phone number of the user.

The user’s phone number. must not be nil. Both of local and international phone number are available.

Declared In

KiiIdentityDataBuilder.h

userName

The user’s user name.

@property (nonatomic, nullable) NSString *userName

Discussion

The user’s user name.

userName must be between 3 and 64 characters, which can include alphanumeric characters as well as underscores ‘_’, dashes ‘-’ and periodsx'.'

Declared In

KiiIdentityDataBuilder.h

Instance Methods

build

Build KiiIdentityData instance.

- (nullable KiiIdentityData *)build

Return Value

if build succeed KiiIdentityData instance, otherwise nil. Build will failed when all phoneNumber, email and userName is nil. When one or more of them are given, it should be valid format.

Discussion

Build KiiIdentityData instance.

Build KiiIdentityData instance with username, email and phoneNumber if these were set.

Declared In

KiiIdentityDataBuilder.h

buildWithError:

Build KiiIdentityData instance.

- (nullable KiiIdentityData *)buildWithError:(NSError *_Nullable *_Nullable)error

Parameters

error

A NSError object, can be nil but not recommended.

Return Value

if build succeed KiiIdentityData instance, otherwise nil. Build will failed when all phoneNumber, email and userName is nil. When one or more of them are given, it should be valid format.

Discussion

Build KiiIdentityData instance.

Build KiiIdentityData instance with username, email and phoneNumber if these were set.

Declared In

KiiIdentityDataBuilder.h