Skip to main content
Version: 5.15.0

Get

public BackendMyGroupReturnObject Get;

Description

Loads the information of the group your are currently in.

  • This method cannot be called via SendQueue.

BackendGroupReturnObject

namespace BackEnd.Group
{
public class GroupItem
{
public readonly string userCount = string.Empty;
public readonly string groupUuid = string.Empty;
public readonly string groupName = string.Empty;
}

public class BackendMyGroupReturnObject : BackendReturnObject
{
public GroupItem GetGroup();
}
}

Example

Synchronous

BackEnd.Group.BackendMyGroupReturnObject bro = Backend.Group.Get();

if(bro.IsSuccess()) {
BackEnd.Group.GroupItem groupItem = bro.GetGroup();
string groupUuid = groupItem.groupUuid;
string groupName = groupItem.groupName;
Debug.Log(groupItem.ToString());
}

Asynchronous

Backend.Group.Get(callback => {
if(callback.IsSuccess()) {
BackEnd.Group.GroupItem groupItem = bro.GetGroup();
string groupUuid = groupItem.groupUuid;
string groupName = groupItem.groupName;
Debug.Log(groupItem.ToString());
}
});

ReturnCase

Success cases

When loaded successfully
StatusCode : 200
Message : Success
ReturnValue : refer to GetReturnValuetoJSON

Error cases

When the group does not exist StatusCode : 404
ErrorCode : NotFoundException
Message : group not exist

GetReturnValuetoJSON

{
"row": {
"userCount": 107,
"groupUuid": "01912b69-0890-7fdc-bb12-1710833fb558",
"groupName": "Group name"
}
}