Skip to main content
Version: 5.15.0

Backend.CDN.Content.Table.Get

public BackendContentTableReturnObject Backend.CDN.Content.Table.Get();
public BackendContentTableReturnObject Backend.CDN.Content.Table.Get(int folderId);

Parameter

ValueTypeDescription
folderIdintUpon entering, only the chart table of the folder is loaded.

Description

Looks up the chart table list registered to the console.

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

BackendContentTableReturnObject

namespace BackEnd.Content
{
public class ContentTableItem
{
public string chartName;
public string chartId;
public string chartExplain;
public string selectedChartFileId;
public string createdDate;
}

public class BackendContentTableReturnObject : BackendReturnObject
{
public List<ContentTableItem> GetContentTableItemList();
}
}

Example

Synchronous


BackEnd.Content.BackendContentTableReturnObject bro;

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

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

foreach (BackEnd.Content.ContentTableItem item in bro.GetContentTableItemList())
{
Debug.Log(item.chartName);
Debug.Log(item);
}

Asynchronous

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

foreach (BackEnd.Content.ContentTableItem item in bro.GetContentTableItemList())
{
Debug.Log(item.chartId);
Debug.Log(item);
}
});

ReturnCase

Success cases

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

GetReturnValuetoJSON

{
"rows": [
{
"chartName": {
"S": "LevelChart"
},
"chartId": {
"N": "23308"
},
"chartExplain": {
"NULL": true
},
"selectedChartFileId": {
"N": "120307"
},
"createdDate": {
"S": "2024-05-07T03:26:17.000Z"
}
},
{
"chartName": {
"S": "GoodsChart"
},
"chartId": {
"N": "23310"
},
"chartExplain": {
"NULL": true
},
"selectedChartFileId": {
"N": "120309"
},
"createdDate": {
"S": "2024-05-07T03:26:43.000Z"
}
}
]
}