ReportUser
public BackendReturnObject ReportUser(string ReportedNickname, string Details);
public BackendReturnObject ReportUser(string ReportedNickname, string Reason, string Details);
파라미터
Value | Type | Description |
---|---|---|
ReportedNickname | string | 신고 당하는 유저의 닉네임 |
Reason | string | (Optional) 신고 사유 |
Details | string | 신고 내용 (최대길이: 500자) |
설명
특정 유저를 관리자에게 신고합니다. 콘솔에서 신고 내용을 확인할 수 있습니다.
Example
동기
Backend.Chat.ReportUser("ReportedNickname", "Reasons", "Details");
비동기
Backend.Chat.ReportUser(
"ReportedNickname",
"Reasons",
"Details",
(callback) => {
// 이후 처리
}
);
SendQueue
SendQueue.Enqueue(
Backend.Chat.ReportUser,
"ReportedNickname",
"Reasons",
"Details",
(callback) => {
// 이후 처리
}
);
ReturnCase
Success cases
신고에 성공한 경우
statusCode : 200
message : Success
returnValue : {"result":"id1님의 신고(id2님에 대한)가 접수 되었습니다."}
Error cases
신고 대상 닉네임의 유저가 없는 경우
statusCode : 404
errorCode : NotFoundException
message : 신고할 유저의 닉네임 not found, 신고할 유저의 닉네임을(를) 찾을 수 없습니다
details을 입력하지 않은 경우
statusCode : 400
errorCode : BadParameterException
message : bad details of report, 잘못된 details of report 입니다
details이 너무 긴 경우
statusCode : 400
errorCode : BadParameterException
message : bad details, 잘못된 details 입니다