Skip to main content
Version: 5.7.0

GetUpdatedFiles

Using the array of file details sent, returns the current details of any of those files as well as an indication as to whether the file has changed via the "updated" flag.

ServiceOperation
s3HandlingGET_UPDATED_FILES

Method Parameters

ParameterDescription
categoryCategory of files on server to compare against
fileDetailsAn array of file details

Usage

http://localhost:3000
string category = "Tuning";
string fileDetails = "[{\"fileId\":\"hjvfsghguhuhrtghgh\",\"shortName\":\"short\",\"fileName\":\"fname\",\"relativeUrl\":\"http://\",\"absoluteUrl\":\"http://\",\"category\":\"Tuning\",\"date\":100000000000,\"md5Hash\":\"njf8ehg8tr7htgheguhh\"}]";
SuccessCallback successCallback = (response, cbObject) =>
{
Debug.Log(string.Format("Success | {0}", response));
};
FailureCallback failureCallback = (status, code, error, cbObject) =>
{
Debug.Log(string.Format("Failed | {0} {1} {2}", status, code, error));
};

_bc.S3HandlingService.GetUpdatedFiles(category, fileDetails, successCallback, failureCallback);
JSON Response
{
"status": 200,
"data": {
"fileDetails": [{
"gameId": "20001",
"fileId": "3780516b-14f8-4055-8899-8eaab6ac7e82",
"shortName": "TestDoc1",
"fileName": "testDoc1.txt",
"type": "g",
"subType": "cust",
"category": null,
"fileSize": 4,
"dateUploaded": 1437154770000,
"relativeUrl": "/cust/testDoc1.txt",
"absoluteUrl": "http://api.braincloudservers.com/s3/portal/g/20001/cust/testDoc1.txt",
"md5Hash": "d41d8cd98f00b204e9800998ecf8427e",
"md5HashHex" : "b895454d7210f7cb84aab76289ffd39c",
"updated" : false
},
{
"gameId": "20001",
"fileId": "f6e516b-14f8-4055-8899-8eaabefd7e82",
"shortName": "TestDoc2",
"fileName": "testDoc2.txt",
"type": "g",
"subType": "cust",
"category": null,
"fileSize": 4,
"dateUploaded": 1437154770000,
"relativeUrl": "/cust/testDoc2.txt",
"absoluteUrl": "http://api.braincloudservers.com/s3/portal/g/20001/cust/testDoc2.txt",
"md5Hash": "d41d8cd98f00b204e9800998ecf8427e",
"md5HashHex" : "b895454d7210f7cb84aab76289ffd39c",
"updated" : true
}]
}
}