Added Id property to packages.
This commit is contained in:
parent
b29805c531
commit
7f7ec055da
@ -14,6 +14,8 @@ namespace SteamStorefrontAPI.Classes
|
||||
[JsonProperty("name")]
|
||||
public string Name { get; set; }
|
||||
|
||||
public int SteamPackageId { get; set; }
|
||||
|
||||
[JsonProperty("purchase_text")]
|
||||
public string PurchaseText { get; set; }
|
||||
|
||||
|
@ -53,7 +53,9 @@ namespace SteamStorefrontAPI
|
||||
var jsonData = JToken.Parse(result).First.First;
|
||||
if (!bool.Parse(jsonData["success"].ToString())) { return null; }
|
||||
|
||||
return jsonData["data"].ToObject<PackageInfo>();
|
||||
var package = jsonData["data"].ToObject<PackageInfo>();
|
||||
package.SteamPackageId = PackageId;
|
||||
return package;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user