11 Commits

Author SHA1 Message Date
Dima yawaflua Andreev
5f4ef12963 Merge pull request #3 from yawaflua/yawaflua-patch-1
Yawaflua patch 1
2024-06-26 02:17:34 +03:00
Dima yawaflua Andreev
e7c8f08500 Merge branch 'yawaflua-patch-1' of https://github.com/yawaflua/SPWorlds into yawaflua-patch-1 2024-06-26 02:16:39 +03:00
Dima yawaflua Andreev
6738ea72ce so many fixes 2024-06-26 02:16:36 +03:00
Dima yawaflua Andreev
a079648f47 Merge pull request #2 from yawaflua/yawaflua-patch-1
Yawaflua patch 1
2024-06-26 01:57:03 +03:00
Dima yawaflua Andreev
341bb7fc38 Merge branch 'master' into yawaflua-patch-1 2024-06-26 01:55:58 +03:00
Dima yawaflua Andreev
83ff36afd1 fix version oh 2024-06-26 01:51:31 +03:00
Dima yawaflua Andreev
71ff61db32 rename file spworlds-api.sln 2024-06-26 01:45:26 +03:00
Dima yawaflua Andreev
b704a52a95 Merge branch 'yawaflua-patch-1' of https://github.com/yawaflua/SPWorlds into yawaflua-patch-1 2024-06-26 01:45:24 +03:00
Dima yawaflua Andreev
5486830513 fix violation files 2024-06-26 01:44:19 +03:00
Dima yawaflua Andreev
36d312657e Update nuget.yml 2024-06-26 01:30:44 +03:00
Dima yawaflua Andreev
258ecaaddc Update spworlds-api.csproj 2024-06-26 01:29:03 +03:00
5 changed files with 10 additions and 6 deletions

View File

@@ -3,7 +3,10 @@ name: NuGet - Release
on:
release:
types: [published]
push:
branches: [ "master" ]
jobs:
publish-nuget:
runs-on: ubuntu-latest

View File

@@ -2,10 +2,11 @@
using SPWorldsApi.Utils;
using System.Text.Json;
using System.Text.Json.Nodes;
using SPWorldsApi.Users;
namespace SPWorldsApi.Payments
{
internal 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
{
internal 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

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