Moved field downloadLocation to abstract Connector class.

This commit is contained in:
glax
2023-05-18 18:51:19 +02:00
parent d46b46f8fb
commit a1bd85daa5
2 changed files with 7 additions and 4 deletions

View File

@ -5,7 +5,12 @@ namespace Tranga;
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 Publication[] GetPublications(string publicationTitle = "");
public abstract Chapter[] GetChapters(Publication publication, string language = "");