2020-12-28 09:27:37 -05:00
|
|
|
|
using System.Collections.Generic;
|
2020-12-29 06:32:04 -05:00
|
|
|
|
using System.Linq;
|
2020-12-25 10:49:51 -05:00
|
|
|
|
|
|
|
|
|
namespace auto_creamapi.Models
|
|
|
|
|
{
|
|
|
|
|
public class CreamConfig
|
|
|
|
|
{
|
2020-12-28 09:27:37 -05:00
|
|
|
|
public CreamConfig()
|
|
|
|
|
{
|
|
|
|
|
DlcList = new List<SteamApp>();
|
|
|
|
|
}
|
|
|
|
|
|
2020-12-25 10:49:51 -05:00
|
|
|
|
public int AppId { get; set; }
|
|
|
|
|
public string Language { get; set; }
|
|
|
|
|
public bool UnlockAll { get; set; }
|
|
|
|
|
public bool ExtraProtection { get; set; }
|
|
|
|
|
public bool ForceOffline { get; set; }
|
|
|
|
|
public List<SteamApp> DlcList { get; set; }
|
2020-12-29 06:32:04 -05:00
|
|
|
|
|
|
|
|
|
public override string ToString()
|
|
|
|
|
{
|
|
|
|
|
var value = $"AppID: {AppId}\n" +
|
|
|
|
|
$"Language: {Language}\n" +
|
|
|
|
|
$"UnlockAll: {UnlockAll}\n" +
|
|
|
|
|
$"ExtraProtection: {ExtraProtection}\n" +
|
|
|
|
|
$"ForceOffline: {ForceOffline}\n" +
|
|
|
|
|
$"DLC ({DlcList.Count}):\n[\n";
|
|
|
|
|
if (DlcList.Count > 0)
|
|
|
|
|
value = DlcList.Aggregate(value, (current, x) => current + $" {x.AppId}={x.Name},\n");
|
|
|
|
|
value += "]";
|
|
|
|
|
return value;
|
|
|
|
|
}
|
2020-12-25 10:49:51 -05:00
|
|
|
|
}
|
2020-12-28 09:27:37 -05:00
|
|
|
|
|
2020-12-25 10:49:51 -05:00
|
|
|
|
public sealed class CreamConfigModel
|
|
|
|
|
{
|
|
|
|
|
}
|
2020-12-28 09:27:37 -05:00
|
|
|
|
}
|