Skip to main content
Version: 6.0.0

CheckDisplayNameDuplicate

public BackndReturnObject CheckDisplayNameDuplicate(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

BackndReturnObject bro = Backnd.Player.CheckDisplayNameDuplicate("thebackend");
if(bro.IsSuccess())
{
Debug.Log("You can change your nickname to this nickname.");
}

Asynchronous

Backnd.Player.CheckDisplayNameDuplicate("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