From 4ff1ee881be4e934c67895a1a7e87de3247d95ed Mon Sep 17 00:00:00 2001 From: saile2204 Date: Fri, 24 Mar 2023 20:22:30 +0100 Subject: [PATCH] Removed Abstract Class --- DDNSUpdater/Abstracts/ADDNSService.cs | 9 --------- DDNSUpdater/Services/DDNSService.cs | 5 ++--- 2 files changed, 2 insertions(+), 12 deletions(-) delete mode 100644 DDNSUpdater/Abstracts/ADDNSService.cs 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)