Removed Abstract Class

This commit is contained in:
saile2204 2023-03-24 20:22:30 +01:00
parent 57d2b8d75f
commit 4ff1ee881b
2 changed files with 2 additions and 12 deletions

View File

@ -1,9 +0,0 @@
namespace DDNSUpdater.Abstracts;
public abstract class ADDNSService
{
public abstract void Update();
// Rest of the class implementation
// ...
}

View File

@ -7,7 +7,6 @@ using System.Net;
using System.Net.Mime; using System.Net.Mime;
using System.Security.Authentication; using System.Security.Authentication;
using System.Threading.Tasks; using System.Threading.Tasks;
using DDNSUpdater.Abstracts;
using DDNSUpdater.APIs.Ionos; using DDNSUpdater.APIs.Ionos;
using DDNSUpdater.APIs.Ionos.ApiClient; using DDNSUpdater.APIs.Ionos.ApiClient;
using DDNSUpdater.APIs.Ionos.ApiClient.Models; using DDNSUpdater.APIs.Ionos.ApiClient.Models;
@ -30,7 +29,7 @@ using Method = RestSharp.Method;
namespace DDNSUpdater.Services; namespace DDNSUpdater.Services;
public class DDNSService : ADDNSService public class DDNSService : IDDNSService
{ {
private List<string>? UpdateURLs { get; set; } private List<string>? UpdateURLs { get; set; }
public List<Domain> Domains { get; set; } public List<Domain> Domains { get; set; }
@ -75,7 +74,7 @@ public class DDNSService : ADDNSService
_logger.LogInformation($"Fetched {UpdateURLs.Count} UpdateURLs"); _logger.LogInformation($"Fetched {UpdateURLs.Count} UpdateURLs");
} }
public override async void Update() public async void Update()
{ {
if(UpdateURLs != null && UpdateURLs.Count != 0) if(UpdateURLs != null && UpdateURLs.Count != 0)