diff --git a/DDNSUpdater/Abstracts/ADDNSService.cs b/DDNSUpdater/Abstracts/ADDNSService.cs deleted file mode 100644 index dc2e019..0000000 --- a/DDNSUpdater/Abstracts/ADDNSService.cs +++ /dev/null @@ -1,9 +0,0 @@ -namespace DDNSUpdater.Abstracts; - -public abstract class ADDNSService -{ - public abstract void Update(); - - // Rest of the class implementation - // ... -} \ No newline at end of file diff --git a/DDNSUpdater/Services/DDNSService.cs b/DDNSUpdater/Services/DDNSService.cs index d07cbfc..93443a6 100644 --- a/DDNSUpdater/Services/DDNSService.cs +++ b/DDNSUpdater/Services/DDNSService.cs @@ -7,7 +7,6 @@ using System.Net; using System.Net.Mime; using System.Security.Authentication; using System.Threading.Tasks; -using DDNSUpdater.Abstracts; using DDNSUpdater.APIs.Ionos; using DDNSUpdater.APIs.Ionos.ApiClient; using DDNSUpdater.APIs.Ionos.ApiClient.Models; @@ -30,7 +29,7 @@ using Method = RestSharp.Method; namespace DDNSUpdater.Services; -public class DDNSService : ADDNSService +public class DDNSService : IDDNSService { private List? UpdateURLs { get; set; } public List Domains { get; set; } @@ -75,7 +74,7 @@ public class DDNSService : ADDNSService _logger.LogInformation($"Fetched {UpdateURLs.Count} UpdateURLs"); } - public override async void Update() + public async void Update() { if(UpdateURLs != null && UpdateURLs.Count != 0)