CheckNicknameDuplication
public BackendReturnObject CheckNicknameDuplication(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
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