mirror of
https://github.com/C9Glax/tranga-website.git
synced 2025-01-31 00:47:30 +01:00
Moved field downloadLocation to abstract Connector class.
This commit is contained in:
parent
d46b46f8fb
commit
a1bd85daa5
@ -5,7 +5,12 @@ namespace Tranga;
|
|||||||
|
|
||||||
public abstract class Connector
|
public abstract class Connector
|
||||||
{
|
{
|
||||||
internal abstract string downloadLocation { get; }
|
public Connector(string downloadLocation)
|
||||||
|
{
|
||||||
|
this.downloadLocation = downloadLocation;
|
||||||
|
}
|
||||||
|
|
||||||
|
internal string downloadLocation { get; }
|
||||||
public abstract string name { get; }
|
public abstract string name { get; }
|
||||||
public abstract Publication[] GetPublications(string publicationTitle = "");
|
public abstract Publication[] GetPublications(string publicationTitle = "");
|
||||||
public abstract Chapter[] GetChapters(Publication publication, string language = "");
|
public abstract Chapter[] GetChapters(Publication publication, string language = "");
|
||||||
|
@ -7,14 +7,12 @@ namespace Tranga.Connectors;
|
|||||||
|
|
||||||
public class MangaDex : Connector
|
public class MangaDex : Connector
|
||||||
{
|
{
|
||||||
internal override string downloadLocation { get; }
|
|
||||||
public override string name { get; }
|
public override string name { get; }
|
||||||
private DownloadClient _downloadClient = new (750);
|
private DownloadClient _downloadClient = new (750);
|
||||||
|
|
||||||
public MangaDex(string downloadLocation)
|
public MangaDex(string downloadLocation) : base(downloadLocation)
|
||||||
{
|
{
|
||||||
name = "MangaDex.org";
|
name = "MangaDex.org";
|
||||||
this.downloadLocation = downloadLocation;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override Publication[] GetPublications(string publicationTitle = "")
|
public override Publication[] GetPublications(string publicationTitle = "")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user