Merge pull request #3 from yawaflua/yawaflua-patch-1

Yawaflua patch 1
This commit is contained in:
Dima yawaflua Andreev
2024-06-26 02:17:34 +03:00
committed by GitHub
4 changed files with 5 additions and 4 deletions

View File

@@ -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; }

View File

@@ -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; }

View File

@@ -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<string> SendRequest(string endpoint, HttpMethod method = null, object body = null)

View File

@@ -8,7 +8,7 @@
<PackageId>spworlds-api</PackageId>
<Description>Библиотека, созданная для облегчения работы с API сайта spworlds.ru . Что-то добавить или обновить можно в github проекта.</Description>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<Version>1.0.2</Version>
<Version>1.0.3</Version>
<Authors>yawaflua</Authors>
<Company>yawaflua</Company>
<RepositoryUrl>https://github.com/yawaflua/SPWorlds</RepositoryUrl>