Provides APIs for Group features.
See Also: Inherited members from object.
|
AddUser
(KiiUser)Adds the user to this group. |
|
|
Bucket
(string)Gets the KiiBucket whose scope is this group |
|
|
ChangeName
(string)Changes the name of this group. |
|
|
ChangeName
(string, KiiGroupCallback)Changes the name of this group. |
|
static
|
CreateByUri
(Uri)Creates KiiGroup by Uri |
|
|
Delete
()Delete this group from KiiCloud. |
|
|
Delete
(KiiGroupCallback)Delete this group from KiiCloud. |
|
static
|
GroupWithID
(string)Instantiate KiiGroup that refers to existing group which has specified ID. |
|
|
ListMembers
()Gets the list of members in this group. |
|
|
ListMembers
(KiiUserListCallback)Gets the list of members in this group. |
|
|
ListTopics
()Gets the list of topics in this group scope. |
|
|
ListTopics
(KiiGenericsCallback<KiiListResult<KiiTopic>>)Asynchronous call for KiiGroup.ListTopics. |
|
|
ListTopics
(string)Gets the list of next page of topics in this group scope. |
|
|
ListTopics
(string, KiiGenericsCallback<KiiListResult<KiiTopic>>)Asynchronous call for KiiGroup.ListTopics(string). |
|
|
Refresh
()Gets the latest information of this group. |
|
|
Refresh
(KiiGroupCallback)Gets the latest information of this group. |
|
static
|
RegisterGroupWithID
(string, string, List<KiiUser>)Creates new group own by current user on Kii Cloud with specified ID. |
|
static
|
RegisterGroupWithID
(string, string, IList<KiiUser>, KiiGenericsCallback<KiiGroup>)Creates new group own by current user on Kii Cloud with specified ID. |
|
|
RemoveUser
(KiiUser)Removes the user from this group. |
|
|
Save
()Save this KiiGroup on KiiCloud |
|
|
Save
(KiiGroupCallback)Save this KiiGroup on KiiCloud |
|
|
Topic
(string)Get instance of group scope topic. The topic bound to this group |
Adds the user to this group.Syntax
Parameters
- user
- User you want to add
Exceptions
Type Reason ArgumentException Is thrown when user is null or doesn't have ID Remarks
If user is already added, this API does nothing.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Gets the KiiBucket whose scope is this groupSyntax
Parameters
- bucketName
- Bucket name.
Returns
KiiBucket instance whose scope is this group. If bucket is not in KiiCloud, it will be created when object in it is saved.Remarks
Bucket name must be valid.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Changes the name of this group.Syntax
Parameters
- name
- New group name.
Exceptions
Type Reason ArgumentException Is thrown when an argument is empty. InvalidOperationException Is thrown when this group doesn't have ID. KiiCorp.Cloud.Storage.GroupOperationException Is thrown when the group operation is failed. Remarks
New group name must no be empty.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Changes the name of this group.Syntax
Parameters
- name
- New group name.
- callback
- Callback.
Remarks
New group name must no be empty.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Creates KiiGroup by UriSyntax
Parameters
- uri
- Uri of KiiGroup
Returns
KiiGroup instance.Exceptions
Type Reason ArgumentException Is thrown when Uri is invalid. Remarks
To get the latest information from server, need to call Refresh().Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Delete this group from KiiCloud.Syntax
public void Delete ()Exceptions
Type Reason InvalidOperationException Is thrown when this group doesn't have ID. KiiCorp.Cloud.Storage.GroupOperationException Is thrown when the group operation is failed. Remarks
This API sends a request to KiiCloud.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Delete this group from KiiCloud.Syntax
public void Delete (KiiGroupCallback callback)Parameters
- callback
- Callback.
Remarks
This API sends a request to KiiCloud.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Instantiate KiiGroup that refers to existing group which has specified ID.Syntax
Parameters
- groupID
- ID of the group to instantiate.
Returns
KiiGroup instance.Exceptions
Type Reason ArgumentException Is thrown when specified groupID is null or empty. Remarks
You have to specify the ID of existing KiiGroup. Unlike KiiObject, you can not assign ID in the client side. This API does not access to the server. After instantiation, call KiiGroup.Refresh to fetch the properties.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Returns the ID of this group.Syntax
public string ID { get; }Value
The group ID.Remarks
If the group has not saved to the cloud, returns null.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Gets the list of members in this group.Syntax
public IList<KiiUser> ListMembers ()Returns
The list of membersExceptions
Type Reason KiiCorp.Cloud.Storage.IllegalKiiBaseObjectFormatException Is thrown when server sends broken Json KiiCorp.Cloud.Storage.GroupOperationException Is thrown when the group operation is failed. Remarks
This api sends a request to KiiCloud.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Gets the list of members in this group.Syntax
public void ListMembers (KiiUserListCallback callback)Parameters
- callback
- Callback.
Remarks
This api sends a request to KiiCloud.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Gets the list of topics in this group scope.Syntax
public KiiListResult<KiiTopic> ListTopics ()Returns
A list of the topics in this group scope.Exceptions
Type Reason KiiCorp.Cloud.Storage.CloudException Is thrown when server sends error response. KiiCorp.Cloud.Storage.UnauthorizedException Is thrown when this method called by anonymous user. InvalidOperationException Is thrown when this group doesn't have ID. Remarks
This api sends a request to server.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Asynchronous call for KiiGroup.ListTopics.Syntax
public void ListTopics (KiiGenericsCallback<KiiListResult<KiiTopic>> callback)Parameters
- callback
- Callback.
Exceptions
Type Reason KiiCorp.Cloud.Storage.CloudException Is thrown when server sends error response. Remarks
This api sends a request to server.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Gets the list of next page of topics in this group scope.Syntax
public KiiListResult<KiiTopic> ListTopics (string paginationKey)Parameters
- paginationKey
- Specifies the pagination key that is obtained by KiiListResult`1.PaginationKey. If specified null or empty, it's same as the KiiGroup.ListTopics.
Returns
A list of the topics in this group scope.Exceptions
Type Reason KiiCorp.Cloud.Storage.CloudException Is thrown when server sends error response. KiiCorp.Cloud.Storage.UnauthorizedException Is thrown when this method called by anonymous user. Remarks
This api sends a request to server.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Asynchronous call for KiiGroup.ListTopics(string).Syntax
public void ListTopics (string paginationKey, KiiGenericsCallback<KiiListResult<KiiTopic>> callback)Parameters
- paginationKey
- Specifies the pagination key that is obtained by KiiListResult`1.PaginationKey. If specified null or empty, it's same as the KiiGroup.ListTopics(KiiGenericsCallback<KiiListResult<KiiTopic>>).
- callback
- Callback.
Exceptions
Type Reason KiiCorp.Cloud.Storage.CloudException Is thrown when server sends error response. Remarks
This api sends a request to server.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Gets or sets the group name.Syntax
public string Name { get; }Value
The group name.Remarks
Developers can use this name for UI label etc.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Gets the owner.Syntax
public KiiUser Owner { get; }Value
The owner. Null if Group has been created by app admin.Remarks
Developers can use this for showing group owner. If displayName is needed, please call KiiUser.Refresh()/>Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Gets the latest information of this group.Syntax
public void Refresh ()Exceptions
Type Reason InvalidOperationException Is thrown when this group doesn't have ID. KiiCorp.Cloud.Storage.IllegalKiiBaseObjectFormatException Is thrown when server sends broken Json. KiiCorp.Cloud.Storage.GroupOperationException Is thrown when server sends error response. Remarks
This api sends a request to server.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Gets the latest information of this group.Syntax
public void Refresh (KiiGroupCallback callback)Parameters
- callback
- Callback.
Remarks
This api sends a request to server.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Creates new group own by current user on Kii Cloud with specified ID.Syntax
Parameters
- id
- ID of the KiiGroup.
- name
- Name of the KiiGroup.
- members
- Members of the group. Group owner will be added as a group member no matter owner is in the list or not.
Returns
KiiGroup instance.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
Creates new group own by current user on Kii Cloud with specified ID.Syntax
public static void RegisterGroupWithID (string id, string name, IList<KiiUser> members, KiiGenericsCallback<KiiGroup> callback)Parameters
- id
- ID of the KiiGroup.
- name
- Name of the KiiGroup.
- members
- Members of the group. Group owner will be added as a group member no matter owner is in the list or not.
- callback
- Callback
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
Removes the user from this group.Syntax
Parameters
- user
- User you want to remove
Exceptions
Type Reason ArgumentException Is thrown when user is null or doesn't have ID. Remarks
User mut not be null.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Save this KiiGroup on KiiCloudSyntax
public void Save ()Remarks
This API sends some requests to KiiCloud.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Save this KiiGroup on KiiCloudSyntax
public void Save (KiiGroupCallback callback)Parameters
- callback
- Callback.
Remarks
This API sends some requests to KiiCloud.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Gets the subject string.Syntax
public string Subject { get; }Value
The subject string.Remarks
Developers don't need to use this property in their apps.Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0
Get instance of group scope topic. The topic bound to this groupSyntax
Parameters
- name
- Name of topic.
Returns
KiiTopic bound to this group.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
Gets the URI of this group.Syntax
public Uri Uri { get; }Value
The URI.Remarks
Developers can use this for getting KiiGroup instance by KiiGroup.CreateByUri(Uri)Requirements
Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0