KiiCloudStorageSDK : KiiCorp.Cloud.Storage Namespace

KiiPushSubscription Class

Provides APIs of subscription.

Syntax

public class KiiPushSubscription

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

IsSubscribed (KiiSubscribable) : bool
Checks whether the target is already subscribed by current user or not.
IsSubscribed (KiiSubscribable, KiiCheckSubscriptionCallback)
Checks whether the target is already subscribed by current user or not.
Subscribe (KiiSubscribable)
Subscribe the specified target.
Subscribe (KiiSubscribable, KiiSubscriptionCallback)
Subscribe the specified target.
Unsubscribe (KiiSubscribable)
Unsubscribe the specified target.
Unsubscribe (KiiSubscribable, KiiSubscriptionCallback)
Unsubscribe the specified target.

Member Details

IsSubscribed Method

Checks whether the target is already subscribed by current user or not.

Syntax

public bool IsSubscribed (KiiSubscribable target)

Parameters

target
to be checked for subscription existence.

Returns

true if the target is subscribed, otherwise false.

Exceptions

Type Reason
ArgumentNullException Is thrown when an argument is null.
KiiCorp.Cloud.Storage.CloudException Is thrown when server sends error response.

Remarks

Requirements

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

IsSubscribed Method

Checks whether the target is already subscribed by current user or not.

Syntax

public void IsSubscribed (KiiSubscribable target, KiiCheckSubscriptionCallback callback)

Parameters

target
to be checked for subscription existence.
callback
Callback delegate. If exception is null, execution is succeeded.

Exceptions

Type Reason
ArgumentNullException Is thrown when an argument is null.
KiiCorp.Cloud.Storage.CloudException Is thrown when server sends error response.

Remarks

Requirements

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

Subscribe Method

Subscribe the specified target.

Syntax

public void Subscribe (KiiSubscribable target)

Parameters

target
Target to subscribe.

Exceptions

Type Reason
ArgumentNullException Is thrown when an argument is null.
KiiCorp.Cloud.Storage.CloudException Is thrown when server sends error response.

Remarks

Requirements

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

Subscribe Method

Subscribe the specified target.

Syntax

public void Subscribe (KiiSubscribable target, KiiSubscriptionCallback callback)

Parameters

target
Target to subscribe.
callback
Callback delegate. If exception is null, execution is succeeded.

Exceptions

Type Reason
ArgumentNullException Is thrown when an argument is null.
KiiCorp.Cloud.Storage.CloudException Is thrown when server sends error response.

Remarks

Requirements

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

Unsubscribe Method

Unsubscribe the specified target.

Syntax

public void Unsubscribe (KiiSubscribable target)

Parameters

target
Target to subscribe.

Exceptions

Type Reason
ArgumentNullException Is thrown when an argument is null.
KiiCorp.Cloud.Storage.CloudException Is thrown when server sends error response.

Remarks

Requirements

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

Unsubscribe Method

Unsubscribe the specified target.

Syntax

public void Unsubscribe (KiiSubscribable target, KiiSubscriptionCallback callback)

Parameters

target
Target to subscribe.
callback
Callback delegate. If exception is null, execution is succeeded.

Exceptions

Type Reason
ArgumentNullException Is thrown when an argument is null.
KiiCorp.Cloud.Storage.CloudException Is thrown when server sends error response.

Remarks

Requirements

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