DeleteRandomData
public BackendReturnObject DeleteRandomData(RandomType randomType, string uuid);
설명
랜덤 그룹에 등록된 데이터를 삭제합니다.
길드 유형 랜덤 조회에서는 길드원이 해당 함수를 호출할 수 있습니다.
삭제 대상 데이터가 없는 경우에도 에러 없이 성공이 반환됩니다.
파라미터
| Value | Type | Description |
|---|---|---|
| randomType | RandomType | 랜덤 조회 유형(RandomType.User는 유저, RandomType.Guild는 길드) |
| uuid | string | 랜덤 조회 uuid |
Example
동기
Backend.RandomInfo.DeleteRandomData(RandomType.User, "9cd283c0-00c6-11ed-93ca-27f1ba8e440c");
비동기
Backend.RandomInfo.DeleteRandomData(
RandomType.User,
"9cd283c0-00c6-11ed-93ca-27f1ba8e440c",
callback =>
{
// 이후 처리
});
SendQueue
SendQueue.Enqueue(
Backend.RandomInfo.DeleteRandomData,
RandomType.User,
"9cd283c0-00c6-11ed-93ca-27f1ba8e440c",
callback =>
{
// 이후 처리
});
ReturnCase
Success cases
데이터 삭제가 성공한 경우
statusCode : 204
message : Success
Error cases
입력한 uuid가 null 혹은 string.Empty일 경우
statusCode : 400
errorCode : ValidationException
message : uuid is null or empty
랜덤 조회의 유형이 다를 경우(유저 유형인데 RandomType.Guild으로 지정했을 경우)
statusCode : 400
errorCode : BadParameterException
message : bad type is not match, 잘못된 type is not match 입니다
(랜덤 조회 유형 : 길드) 길드에 가입되어 있지 않을 경우
statusCode : 404
errorCode : NotFoundException
message : guild not found, guild을(를) 찾을 수 없습니다
존재하지 않는 uuid일 경우
statusCode : 404
errorCode : NotFoundException
message : randomPool not found, randomPool을(를) 찾을 수 없습니다