UpdateNickname
public BackendReturnObject UpdateNickname(string nickname);
Parameter
Value | Type | Description |
---|---|---|
nickname | string | Value of nickname. Up to 20 characters. Blanks cannot be added before or after the nickname. |
Description
This function is used to modify nicknames.
If a user without a nickname calls the nickname modification method, nickname creation is performed.
Example
Synchronous
Backend.BMember.UpdateNickname("thebackend");
Asynchronous
Backend.BMember.UpdateNickname("thebackend", (callback) =>
{
// Post-process
});
SendQueue
SendQueue.Enqueue(Backend.BMember.UpdateNickname,"thebackend", (callback) =>
{
// Post-process
});
Return cases
Success cases
When the creation/modification is successful
statusCode : 204
Error cases
When the user tries to create/modify a nickname using an empty nickname or string.empty
statusCode : 400
errorCode : UndefinedParameterException
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