mirror of
https://github.com/yawaflua/SPWorlds.git
synced 2025-12-09 20:19:35 +02:00
Compare commits
11 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5f4ef12963 | ||
|
|
e7c8f08500 | ||
|
|
6738ea72ce | ||
|
|
a079648f47 | ||
|
|
341bb7fc38 | ||
|
|
83ff36afd1 | ||
|
|
71ff61db32 | ||
|
|
b704a52a95 | ||
|
|
5486830513 | ||
|
|
36d312657e | ||
|
|
258ecaaddc |
5
.github/workflows/nuget.yml
vendored
5
.github/workflows/nuget.yml
vendored
@@ -3,7 +3,10 @@ name: NuGet - Release
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
push:
|
||||
branches: [ "master" ]
|
||||
|
||||
|
||||
jobs:
|
||||
publish-nuget:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
@@ -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; }
|
||||
|
||||
@@ -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; }
|
||||
|
||||
@@ -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)
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user