Skip to main content
Version: 5.15.0

Backend.CDN.Probability.Table.Get

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

Description

Looks up the list of probability cards registered in the console.

  • Probabilities that have not selected probability files are excluded from the list.
  • This method cannot be called via SendQueue.

BackendContentTableReturnObject

namespace BackEnd.ProbabilityContent
{
public class ProbabilityTableItem
{
public string probabilityName;
public string probabilityId;
public string probabilityExplain;
public string selectedProbabilityFileId;// Serial/old version
public string createdDate;
}

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

Example

Synchronous


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);
}

Asynchronous

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

When the lookup is successful
statusCode : 200
message : Success
returnValue : refer to GetReturnValuetoJSON

GetReturnValuetoJSON

{
rows:
[
{
"probabilityName": {
"S": "Probability file name"
},
"probabilityId": {
"N": "600" // Probability file's unique ID
},
"probabilityExplain": {
"S": "Additional description about the probability file." // If the description is missing
},
"selectedProbabilityFileId": {
"N": "1271" // Selected probability table's ID
},
"createdDate": {
"S": "2024-06-18T09:17:31.000Z" // Modification date
}
},
{
"probabilityName": {
"S": "Probability"
},
"probabilityId": {
"N": "599"
},
"probabilityExplain": {
"NULL": true
},
"selectedProbabilityFileId": {
"N": "1270"
},
"createdDate": {
"S": "2023-01-18T03:07:11.100Z"
}
},
...
]
}