KiiCloudStorageSDK : KiiCorp.Cloud.Storage Namespace

Utils Class

Contains utilities that the KiiSDK uses.

Syntax

public class Utils

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 Constructors

Utils ()
Documentation for this section has not yet been entered.

Public Properties

[read-only]
static
CurrentTimeMills long . Gets the current time mills.

Public Methods

static
CheckInitialize (bool)
Checks if the SDK is initialized.
static
EscapeUriString (string) : string
Documentation for this section has not yet been entered.
static
GetDictionaryValue<K,V> (Dictionary<K, V>, K) : V
Documentation for this section has not yet been entered.
static
IsEmpty (object) : bool
Checks if a Object has value.
static
IsEmpty (string) : bool
Checks if a String contains text.
static
IsGlobalPhoneNumber (string) : bool
Determines if is global phone number the specified phone.
static
Path (params object[]) : string
Combines some strings into a path.
static
RemoveLastSlash (string) : string
Removes the last slash if input string has.
static
ThrowException (GroupOperationException)
Throws the exception.
static
UnixTimeToDateTime (long) : DateTime
Unixs the time to date time.
static
ValidateBucketName (string) : bool
Validates the name of the bucket.
static
ValidateCountry (string) : bool
Validates the country.
static
ValidateDisplayname (string) : bool
Validates the displayname.
static
ValidateEmail (string) : bool
Validates the email.
static
ValidateGlobalPhoneNumber (string) : bool
Validates the global phone number.
static
ValidateGroupID (string) : bool
Validates the given ID of the group. Alphanumeric string with less than 100 character, symbol _- are allowed.
static
ValidateLocalPhoneNumber (string) : bool
Validates the local phone number.
static
ValidateObjectID (string) : bool
Validates the given ID of the object. Valid pattern: ^[a-zA-Z0-9-_\\.]{2,100}$
static
ValidatePassword (string) : bool
Validates the password.
static
ValidatePhoneNumber (string) : bool
Validates the phone number.
static
ValidateUsername (string) : bool
Validates the username.

Member Details

Utils Constructor

Documentation for this section has not yet been entered.

Syntax

public Utils ()

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

CheckInitialize Method

Checks if the SDK is initialized.

Syntax

public static void CheckInitialize (bool checkLogin)

Parameters

checkLogin
true if the SDK is initialized.

Remarks

Requirements

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

CurrentTimeMills Property

Gets the current time mills.

Syntax

public static long CurrentTimeMills { get; }

Value

The current time mills.

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

EscapeUriString Method

Documentation for this section has not yet been entered.

Syntax

public static string EscapeUriString (string str)

Parameters

str
Documentation for this section has not yet been entered.

Returns

Documentation for this section has not yet been entered.

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

GetDictionaryValue<K,V> Generic Method

Documentation for this section has not yet been entered.

Syntax

public static V GetDictionaryValue<K, V> (Dictionary<K, V> accessCredential, K key)

Type Parameters

K
Documentation for this section has not yet been entered.
V
Documentation for this section has not yet been entered.

Parameters

accessCredential
Documentation for this section has not yet been entered.
key
Documentation for this section has not yet been entered.

Returns

Documentation for this section has not yet been entered.

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

IsEmpty Method

Checks if a Object has value.

Syntax

public static bool IsEmpty (object s)

Parameters

s
string.

Returns

true if the Object is empty or null.

Remarks

Requirements

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

IsEmpty Method

Checks if a String contains text.

Syntax

public static bool IsEmpty (string value)

Parameters

value
Value.

Returns

true if the String is empty or null.

Remarks

Requirements

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

IsGlobalPhoneNumber Method

Determines if is global phone number the specified phone.

Syntax

public static bool IsGlobalPhoneNumber (string phone)

Parameters

phone
Phone.

Returns

true if is global phone number the specified phone; otherwise, false.

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

Path Method

Combines some strings into a path.

Syntax

public static string Path (params object[] segments)

Parameters

segments
Segments.

Returns

Documentation for this section has not yet been entered.

Remarks

Requirements

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

RemoveLastSlash Method

Removes the last slash if input string has.

Syntax

public static string RemoveLastSlash (string input)

Parameters

input
Input string.

Returns

String whose last slash is removed

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

ThrowException Method

Throws the exception.

Syntax

public static void ThrowException (GroupOperationException ex)

Parameters

ex
Ex.

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

UnixTimeToDateTime Method

Unixs the time to date time.

Syntax

public static DateTime UnixTimeToDateTime (long unixTimeMilliseconds)

Parameters

unixTimeMilliseconds
Unix time milliseconds.

Returns

The time to date time.

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

ValidateBucketName Method

Validates the name of the bucket.

Syntax

public static bool ValidateBucketName (string name)

Parameters

name
Name.

Returns

true, if bucket name was validated, false otherwise.

Remarks

Requirements

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

ValidateCountry Method

Validates the country.

Syntax

public static bool ValidateCountry (string country)

Parameters

country
Country.

Returns

true, if country was validated, false otherwise.

Remarks

Requirements

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

ValidateDisplayname Method

Validates the displayname.

Syntax

public static bool ValidateDisplayname (string displayname)

Parameters

displayname
Displayname.

Returns

true, if specified displayname length is 1-50 chars, false otherwise.

Remarks

Requirements

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

ValidateEmail Method

Validates the email.

Syntax

public static bool ValidateEmail (string email)

Parameters

email
Email.

Returns

true, if email was validated, false otherwise.

Remarks

Requirements

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

ValidateGlobalPhoneNumber Method

Validates the global phone number.

Syntax

public static bool ValidateGlobalPhoneNumber (string number)

Parameters

number
Number.

Returns

true, if global phone number was validated, false otherwise.

Remarks

Requirements

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

ValidateGroupID Method

Validates the given ID of the group. Alphanumeric string with less than 100 character, symbol _- are allowed.

Syntax

public static bool ValidateGroupID (string groupID)

Parameters

groupID
Group ID to be checked.

Returns

true, if group id is valid, false otherwise.

Remarks

Requirements

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

ValidateLocalPhoneNumber Method

Validates the local phone number.

Syntax

public static bool ValidateLocalPhoneNumber (string number)

Parameters

number
Number.

Returns

true, if local phone number was validated, false otherwise.

Remarks

Requirements

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

ValidateObjectID Method

Validates the given ID of the object. Valid pattern: ^[a-zA-Z0-9-_\\.]{2,100}$

Syntax

public static bool ValidateObjectID (string objectID)

Parameters

objectID
Object ID to be checked.

Returns

true, if object id is valid, false otherwise.

Remarks

Requirements

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

ValidatePassword Method

Validates the password.

Syntax

public static bool ValidatePassword (string pw)

Parameters

pw
Pw.

Returns

true, if password was validated, false otherwise.

Remarks

Requirements

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

ValidatePhoneNumber Method

Validates the phone number.

Syntax

public static bool ValidatePhoneNumber (string phone)

Parameters

phone
Phone.

Returns

true, if phone number was validated, false otherwise.

Remarks

Requirements

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

ValidateUsername Method

Validates the username.

Syntax

public static bool ValidateUsername (string username)

Parameters

username
Username.

Returns

true, if username was validated, false otherwise.

Remarks

Requirements

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