Added linux and mac requirement classes.

This commit is contained in:
mmuffins 2018-05-22 22:51:33 +02:00
parent 7cea1c157e
commit 196f7ed9ec
4 changed files with 44 additions and 2 deletions

View File

@ -44,6 +44,8 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Compile Include="appdetails\AppDetails.cs" /> <Compile Include="appdetails\AppDetails.cs" />
<Compile Include="appdetails\Classes\LinuxRequirement.cs" />
<Compile Include="appdetails\Classes\MacRequirement.cs" />
<Compile Include="appdetails\Classes\ReleaseDate.cs" /> <Compile Include="appdetails\Classes\ReleaseDate.cs" />
<Compile Include="appdetails\Classes\Recommendations.cs" /> <Compile Include="appdetails\Classes\Recommendations.cs" />
<Compile Include="appdetails\Classes\PriceOverview.cs" /> <Compile Include="appdetails\Classes\PriceOverview.cs" />

View File

@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Globalization;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
namespace SteamStorefrontAPI
{
public class LinuxRequirement
{
[JsonProperty("minimum")]
public string Minimum { get; set; }
[JsonProperty("recommended")]
public string Recommended { get; set; }
}
}

View File

@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Globalization;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
namespace SteamStorefrontAPI
{
public class MacRequirement
{
[JsonProperty("minimum")]
public string Minimum { get; set; }
[JsonProperty("recommended")]
public string Recommended { get; set; }
}
}

View File

@ -49,10 +49,10 @@ namespace SteamStorefrontAPI.Classes
public PcRequirements PcRequirements { get; set; } public PcRequirements PcRequirements { get; set; }
[JsonProperty("mac_requirements")] [JsonProperty("mac_requirements")]
public List<object> MacRequirements { get; set; } public List<MacRequirement> MacRequirements { get; set; }
[JsonProperty("linux_requirements")] [JsonProperty("linux_requirements")]
public List<object> LinuxRequirements { get; set; } public List<LinuxRequirement> LinuxRequirements { get; set; }
[JsonProperty("legal_notice")] [JsonProperty("legal_notice")]
public string LegalNotice { get; set; } public string LegalNotice { get; set; }