본문으로 건너뛰기
버전: 5.13.0

Backend.CDN.Probability.Table.Get

public BackendProbabilityTableReturnObject Backend.CDN.Probability.Table.Get();

설명

콘솔에 등록한 확률 카드 목록을 조회합니다.

  • 확률 파일을 선택하지 않은 확률는 리스트에서 제외됩니다.
  • 해당 함수는 SendQueue로 호출할 수 없습니다.

BackendContentTableReturnObject

namespace BackEnd.ProbabilityContent
{
public class ProbabilityTableItem
{
public string probabilityName;
public string probabilityId;
public string probabilityExplain;
public string selectedProbabilityFileId;// 시리얼/구버전
public string createdDate;
}

public class BackendProbabilityTableReturnObject : BackendReturnObject
{
public List<ProbabilityTableItem> GetProbabilityTableItemList();
}
}

Example

동기


BackEnd.ProbabilityContent.BackendProbabilityTableReturnObject bro;

bro = Backend.CDN.Probability.Table.Get();

if(bro.IsSuccess() == false) {
Debug.LogError(bro);
return;
}

foreach (BackEnd.ProbabilityContent.ProbabilityTableItem item in bro.GetProbabilityTableItemList())
{
Debug.Log(item.probabilityName);
Debug.Log(item);
}

비동기

Backend.CDN.Probability.Table.Get( bro =>
{
if(bro.IsSuccess() == false) {
Debug.LogError(bro);
return;
}

foreach (BackEnd.ProbabilityContent.ProbabilityTableItem item in bro.GetProbabilityTableItemList())
{
Debug.Log(item.probabilityName);
Debug.Log(item);
}
});

ReturnCase

Success cases

조회에 성공한 경우
statusCode : 200
message : Success
returnValue : GetReturnValuetoJSON 참조

GetReturnValuetoJSON

{
rows:
[
{
"probabilityName": {
"S": "확률 파일 이름"
},
"probabilityId": {
"N": "600" // 확률 파일의 고유 아이디
},
"probabilityExplain": {
"S": "확률 파일에 대한 부가설명입니다." // 설명이 없는 경우
},
"selectedProbabilityFileId": {
"N": "1271" // 선택된 확률 테이블의 아이디
},
"createdDate": {
"S": "2024-06-18T09:17:31.000Z" // 수정 날짜
}
},
{
"probabilityName": {
"S": "Probability"
},
"probabilityId": {
"N": "599"
},
"probabilityExplain": {
"NULL": true
},
"selectedProbabilityFileId": {
"N": "1270"
},
"createdDate": {
"S": "2023-01-18T03:07:11.100Z"
}
},
...
]
}