Skip to main content
Version: 5.11.8

CheckNicknameDuplication

public BackendReturnObject CheckNicknameDuplication(string nickname);

Parameter

valuedescription
nicknameValue of nickname for duplication check. Up to 20 characters. Blanks cannot be added before or after the nickname.

Description

This function is used to check whether another user is using the nickname.

Example

Synchronous

BackendReturnObject bro = Backend.BMember.CheckNicknameDuplication("thebackend");
if(bro.IsSuccess())
{
Debug.Log("You can change your nickname to this nickname.");
}

Asynchronous

Backend.BMember.CheckNicknameDuplication("thebackend", (callback) =>
{
Debug.Log("You can change your nickname to this nickname.");
});

SendQueue

SendQueue.Enqueue(Backend.BMember.CheckNicknameDuplication, "thebackend", (callback) =>
{
Debug.Log("You can change your nickname to this nickname.");
});

Return cases

Success cases

When the nickname does not exist
statusCode : 204

Error cases

When the nickname exceeds 20 characters
statusCode : 400
errorCode : BadParameterException

When there is a blank before/after the nickname
statusCode : 400
errorCode : BadParameterException

When there is a duplicated nickname
statusCode : 409
errorCode : DuplicatedParameterException