KiiCloudStorageSDK : KiiCorp.Cloud.Storage Namespace

GCMData Class

Represents data to be delivered to each device via Google Cloud Messaging.

Syntax

public class GCMData : KiiPushMessageData

Remarks

Requirements

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

Members

See Also: Inherited members from KiiPushMessageData.

Public Constructors

Initializes a new instance of the KiiCorp.Cloud.Storage.GCMData class.

Protected Fields

mData JsonOrg.JsonObject . The data. (Inherited from KiiPushMessageData.)

Public Methods

override
Put (string, bool) : KiiPushMessageData
Put Bool value to the data.
Put (string, bool) : KiiPushMessageData
Put Bool value to the data. (Inherited from KiiPushMessageData.)
override
Put (string, double) : KiiPushMessageData
Put Double value to the data.
Put (string, double) : KiiPushMessageData
Put Double value to the data. (Inherited from KiiPushMessageData.)
override
Put (string, int) : KiiPushMessageData
Put Int value to the data.
Put (string, int) : KiiPushMessageData
Put Int value to the data. (Inherited from KiiPushMessageData.)
override
Put (string, long) : KiiPushMessageData
Put Long value to the data.
Put (string, long) : KiiPushMessageData
Put Long value to the data. (Inherited from KiiPushMessageData.)
override
Put (string, string) : KiiPushMessageData
Put String value to the data.
Put (string, string) : KiiPushMessageData
Put String value to the data. (Inherited from KiiPushMessageData.)
ToJsonObject () : JsonOrg.JsonObject
Obtain JSONObject representation of the Data. Operation for returned object won't affect this object. (Inherited from KiiPushMessageData.)

Protected Methods

override
IsValidKey (string) : bool
Determines whether this instance is valid key the specified key.
IsValidKey (string) : bool
Determines whether this instance is valid key the specified key. (Inherited from KiiPushMessageData.)

Member Details

GCMData Constructor

Initializes a new instance of the KiiCorp.Cloud.Storage.GCMData class.

Syntax

public GCMData ()

Remarks

Requirements

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

IsValidKey Method

Determines whether this instance is valid key the specified key.

Syntax

protected override bool IsValidKey (string key)

Parameters

key
Key.

Returns

true if this instance is valid key the specified key; otherwise, false.

Remarks

Requirements

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

Put Method

Put Bool value to the data.

Syntax

public override KiiPushMessageData Put (string key, bool value)

Parameters

key
When the same value specified, overwrite existing value.
value
String value.

Returns

This instance.

Exceptions

Type Reason
ArgumentException Is thrown when the specified key is null or empty or reserved word. For details, please refer to GCM document

Remarks

Requirements

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

Put Method

Put Double value to the data.

Syntax

public override KiiPushMessageData Put (string key, double value)

Parameters

key
When the same value specified, overwrite existing value.
value
String value.

Returns

This instance.

Exceptions

Type Reason
ArgumentException Is thrown when the specified key is null or empty or reserved word. For details, please refer to GCM document

Remarks

Requirements

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

Put Method

Put Int value to the data.

Syntax

public override KiiPushMessageData Put (string key, int value)

Parameters

key
When the same value specified, overwrite existing value.
value
String value.

Returns

This instance.

Exceptions

Type Reason
ArgumentException Is thrown when the specified key is null or empty or reserved word. For details, please refer to GCM document

Remarks

Requirements

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

Put Method

Put Long value to the data.

Syntax

public override KiiPushMessageData Put (string key, long value)

Parameters

key
When the same value specified, overwrite existing value.
value
String value.

Returns

This instance.

Exceptions

Type Reason
ArgumentException Is thrown when the specified key is null or empty or reserved word. For details, please refer to GCM document

Remarks

Requirements

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

Put Method

Put String value to the data.

Syntax

public override KiiPushMessageData Put (string key, string value)

Parameters

key
When the same value specified, overwrite existing value.
value
String value.

Returns

This instance.

Exceptions

Type Reason
ArgumentException Is thrown when the specified key is null or empty or reserved word. For details, please refer to GCM document

Remarks

Requirements

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