RepoFullDownloader/RepoFullDownloader-Core/DataClasses.cs

63 lines
1.5 KiB
C#
Raw Normal View History

2021-10-17 22:14:26 -07:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace RepoFullDownloader
{
class Options
{
2021-12-09 23:54:27 -07:00
public bool originalFilenames { get; set; } = false;
public Repo[] repos { get; set; } = {
new Repo()
{
url = "http://repo.kawaiizenbo.me/",
type = "cydia"
},
new Repo()
{
url = "http://apptapp.saurik.com/",
type = "installer"
},
new Repo()
{
url = "http://apt.saurik.com/",
type = "dist",
distAttributes = new DistAttributes()
{
suites = "ios/",
components = "main",
}
}
};
2021-12-09 23:54:27 -07:00
public int delay { get; set; } = 1;
2021-10-17 22:14:26 -07:00
}
class Repo
{
public string url { get; set; }
public string type { get; set; }
public DistAttributes distAttributes { get; set; } = null;
}
class DistAttributes
{
public string suites { get; set; }
public string components { get; set; }
2021-10-17 22:14:26 -07:00
}
class CydiaPackage
{
public CydiaPackage(string _link, string _name, string _version)
{
this.link = _link;
this.name = _name;
this.version = _version;
}
public string link { get; set; }
public string name { get; set; }
public string version { get; set; }
}
}