CheckDisplayNameDuplicate
public BackndReturnObject CheckDisplayNameDuplicate(string nickname);
Parameter
value | description |
---|---|
nickname | Value 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