Skip to main content
Version: SDK-5.11.4

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
message : Success

Error cases

When the nickname exceeds 20 characters
statusCode : 400
errorCode : BadParameterException
message : bad nickname is too long, The nickname is too long

When there is a blank before/after the nickname
statusCode : 400
errorCode : BadParameterException
message : bad beginning or end of the nickname must not be blank , The beginning or end of the nickname must not be a blank

When there is a duplicated nickname
statusCode : 409
errorCode : DuplicatedParameterException
message : Duplicated nickname, Duplicated nickname