Esempio n. 1
0
 // 3) GET ASSET TO LOAD
 public void GeAssetToLoad()
 {
     GarterAssetsManagement.GetOpt po = new GarterAssetsManagement.GetOpt();
     po.dataType = GarterAssetsManagement.GetReq.FILE; // get 1 asset
     po.assetId  = 13;                                 // dwnload data of assetId 1
     AM.Get(po, CallbackFunctionForAssets);
     // returns data and image of selected assetId
 }
Esempio n. 2
0
 // 2) GET LIST OF ASSETS
 public void GetListOfAssets()
 {
     GarterAssetsManagement.GetOpt po = new GarterAssetsManagement.GetOpt();
     po.dataType      = GarterAssetsManagement.GetReq.LIST;         // list of maps
     po.accessability = GarterAssetsManagement.Accessability.ALL;   // all assets a user can use
     po.metaData      = "001";                                      // load only assets with metadata zombie
     po.orderBy       = GarterAssetsManagement.OrderBy.RATING_DESC; // list of best
     po.limit         = 30;                                         // load list with maximum number of 30 results
     AM.Get(po, CallbackFunctionForAssets);
     // returns list of assets. Every asset has attached assetId, name, image, rating, votes, downloads
 }