Method HIUGCRateAnAsset
HIUGCRateAnAsset(String, String, String, AuthoringAssetRating)
Rates an asset the player has access to.
Declaration
public System.Threading.Tasks.Task<Den.Dev.Grunt.Models.HaloApiResultContainer<Den.Dev.Grunt.Models.HaloInfinite.AuthoringAssetRating,Den.Dev.Grunt.Models.RawResponseContainer>> HIUGCRateAnAsset (string player, string assetType, string assetId, Den.Dev.Grunt.Models.HaloInfinite.AuthoringAssetRating rating);
Parameters
Type | Name | Description |
---|---|---|
System.String | player | The unique player XUID, in the format "xuid(XUID_VALUE)". |
System.String | assetType | Type of asset to check. Example value is "UgcGameVariants". |
System.String | assetId | Unique ID for the asset. Example value is "f96f57e2-9f15-45c5-83ac-5775a48d2ba8" for "Attrition-Default-UGC". |
AuthoringAssetRating | rating | An object containing asset rating information. Rating should be set in CustomData. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<HaloApiResultContainer<AuthoringAssetRating,RawResponseContainer>> | If successful, returns an instance of AuthoringAssetRating containing the updated rating. Otherwise, returns null. |
Examples
Here is an example response from the API, as snapshotted on 7/8/2022:
{
"Links": {},
"Name": "",
"Description": "",
"AssetId": "4d0f6e15-cc3f-46e0-9d06-22de6311c4cb",
"AssetVersionId": "d6a43d27-9a54-4873-b7b5-fb2c22539fdc",
"CustomData": {
"Score": 3
},
"VersionRatings": [
{
"AssetVersionId": "ad7c1591-fe57-4ef7-8b0b-a4ba861fd8d7",
"Score": 0,
"LastModified": {
"ISO8601Date": "2022-07-10T21:40:56.308Z"
}
},
{
"AssetVersionId": "d6a43d27-9a54-4873-b7b5-fb2c22539fdc",
"Score": 3,
"LastModified": {
"ISO8601Date": "2022-07-10T23:31:44.187Z"
}
}
],
"AssetKind": 6
}