diff --git a/Payments/IPaymentWrapper.cs b/Payments/PaymentWrapper.cs similarity index 97% rename from Payments/IPaymentWrapper.cs rename to Payments/PaymentWrapper.cs index fbb2ecb..8bc1335 100644 --- a/Payments/IPaymentWrapper.cs +++ b/Payments/PaymentWrapper.cs @@ -2,10 +2,11 @@ using SPWorldsApi.Utils; using System.Text.Json; using System.Text.Json.Nodes; +using SPWorldsApi.Users; namespace SPWorldsApi.Payments { - public interface IPaymentWrapper + public class PaymentWrapper : UserWrapper { HttpClient.HttpRequest client { get; set; } diff --git a/Program.cs b/Program.cs index 89a0de4..e863483 100644 --- a/Program.cs +++ b/Program.cs @@ -7,7 +7,7 @@ using System.Text; namespace SPWorldsApi { - public sealed class SPWorlds : IPaymentWrapper, IUserWrapper + public sealed class SPWorlds : PaymentWrapper { internal string token { get; } public HttpRequest client { get; set; } diff --git a/Users/IUserWrapper.cs b/Users/UserWrapper.cs similarity index 98% rename from Users/IUserWrapper.cs rename to Users/UserWrapper.cs index ecef471..fd6bf27 100644 --- a/Users/IUserWrapper.cs +++ b/Users/UserWrapper.cs @@ -10,7 +10,7 @@ using System.Threading.Tasks; namespace SPWorldsApi.Users { - public interface IUserWrapper + public class UserWrapper { HttpClient.HttpRequest client { get; set; } internal async Task SendRequest(string endpoint, HttpMethod method = null, object body = null) diff --git a/spworlds-api.csproj b/spworlds-api.csproj index f831846..1c62fe0 100644 --- a/spworlds-api.csproj +++ b/spworlds-api.csproj @@ -8,7 +8,7 @@ spworlds-api Библиотека, созданная для облегчения работы с API сайта spworlds.ru . Что-то добавить или обновить можно в github проекта. MIT - 1.0.2 + 1.0.3 yawaflua yawaflua https://github.com/yawaflua/SPWorlds