SearchResultView and DownloadView implemented;

Ignore whitespaces and special chars when looking for games;
This commit is contained in:
Jeddunk 2020-12-28 15:27:37 +01:00
parent aada82693d
commit 73baa27245
26 changed files with 783 additions and 642 deletions

View file

@ -1,30 +1,23 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Text.RegularExpressions;
using auto_creamapi.Utils;
using IniParser;
using IniParser.Model;
using System.Collections.Generic;
namespace auto_creamapi.Models
{
public class CreamConfig
{
public CreamConfig()
{
DlcList = new List<SteamApp>();
}
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; }
public CreamConfig()
{
DlcList = new List<SteamApp>();
}
}
public sealed class CreamConfigModel
{
}
}
}

View file

@ -1,18 +1,14 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Security.Cryptography;
using System.Threading.Tasks;
using auto_creamapi.Services;
using auto_creamapi.Utils;
namespace auto_creamapi.Models
{
internal class CreamDll
{
public readonly string Filename;
public readonly string OrigFilename;
public readonly string Hash;
public readonly string OrigFilename;
public CreamDll(string filename, string origFilename)
{
@ -30,8 +26,8 @@ namespace auto_creamapi.Models
}
}
}
public class CreamDllModel
{
}
}

View file

@ -1,16 +1,13 @@
using System.Collections.Generic;
using System.Text.Json.Serialization;
using MvvmCross.ViewModels;
namespace auto_creamapi.Models
{
public class SteamApp
{
[JsonPropertyName("appid")]
public int AppId { get; set; }
[JsonPropertyName("name")]
public string Name { get; set; }
[JsonPropertyName("appid")] public int AppId { get; set; }
[JsonPropertyName("name")] public string Name { get; set; }
public override string ToString()
{
@ -26,13 +23,11 @@ namespace auto_creamapi.Models
public class AppList
{
[JsonPropertyName("apps")]
public List<SteamApp> Apps { get; set; }
[JsonPropertyName("apps")] public List<SteamApp> Apps { get; set; }
}
public class SteamApps
{
[JsonPropertyName("applist")]
public AppList AppList { get; set; }
[JsonPropertyName("applist")] public AppList AppList { get; set; }
}
}