Reorganize Web directory

This commit is contained in:
JustArchi
2021-05-08 01:03:08 +02:00
parent 2f96ae9e8f
commit cbabde1b38
15 changed files with 16 additions and 9 deletions

View File

@@ -23,6 +23,7 @@ using System;
using System.Diagnostics.CodeAnalysis;
using System.Threading.Tasks;
using ArchiSteamFarm.Web;
using ArchiSteamFarm.Web.Responses;
using Newtonsoft.Json;
namespace ArchiSteamFarm.CustomPlugins.ExamplePlugin {

View File

@@ -35,6 +35,7 @@ using System.Threading.Tasks;
using ArchiSteamFarm.OfficialPlugins.SteamTokenDumper.Localization;
using ArchiSteamFarm.Plugins;
using ArchiSteamFarm.Web;
using ArchiSteamFarm.Web.Responses;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using SteamKit2;

View File

@@ -45,6 +45,7 @@ using ArchiSteamFarm.Localization;
using ArchiSteamFarm.NLog;
using ArchiSteamFarm.Plugins;
using ArchiSteamFarm.Web;
using ArchiSteamFarm.Web.Responses;
using JetBrains.Annotations;
using SteamKit2;
using SteamKit2.Discovery;

View File

@@ -40,6 +40,7 @@ using ArchiSteamFarm.Helpers;
using ArchiSteamFarm.Json;
using ArchiSteamFarm.Localization;
using ArchiSteamFarm.Web;
using ArchiSteamFarm.Web.Responses;
using JetBrains.Annotations;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;

View File

@@ -21,6 +21,7 @@
using System;
using System.ComponentModel.DataAnnotations;
using ArchiSteamFarm.Web;
using Newtonsoft.Json;
namespace ArchiSteamFarm.IPC.Responses {

View File

@@ -34,6 +34,7 @@ using System.Threading.Tasks;
using ArchiSteamFarm.Json;
using ArchiSteamFarm.Localization;
using ArchiSteamFarm.Web;
using ArchiSteamFarm.Web.Responses;
using Newtonsoft.Json;
namespace ArchiSteamFarm {

View File

@@ -29,14 +29,14 @@ using System.Linq;
using System.Net;
using System.Threading.Tasks;
using AngleSharp.Dom;
using ArchiSteamFarm.Web;
using ArchiSteamFarm.Web.Responses;
using Markdig;
using Markdig.Renderers;
using Markdig.Syntax;
using Markdig.Syntax.Inlines;
using Newtonsoft.Json;
namespace ArchiSteamFarm {
namespace ArchiSteamFarm.Web {
internal static class GitHub {
internal static async Task<ReleaseResponse?> GetLatestRelease(bool stable = true) {
Uri request = new(SharedInfo.GithubReleaseURL + (stable ? "/latest" : "?per_page=1"));

View File

@@ -24,7 +24,7 @@ using System.Net;
using System.Net.Http;
using JetBrains.Annotations;
namespace ArchiSteamFarm.Web {
namespace ArchiSteamFarm.Web.Responses {
public class BasicResponse {
[PublicAPI]
public HttpStatusCode StatusCode { get; }

View File

@@ -23,7 +23,7 @@ using System;
using System.Collections.Generic;
using JetBrains.Annotations;
namespace ArchiSteamFarm.Web {
namespace ArchiSteamFarm.Web.Responses {
public sealed class BinaryResponse : BasicResponse {
[PublicAPI]
public IReadOnlyCollection<byte> Content => Bytes;

View File

@@ -25,7 +25,7 @@ using AngleSharp;
using AngleSharp.Dom;
using JetBrains.Annotations;
namespace ArchiSteamFarm.Web {
namespace ArchiSteamFarm.Web.Responses {
public sealed class HtmlDocumentResponse : BasicResponse, IDisposable {
[PublicAPI]
public IDocument Content { get; }

View File

@@ -22,7 +22,7 @@
using System;
using JetBrains.Annotations;
namespace ArchiSteamFarm.Web {
namespace ArchiSteamFarm.Web.Responses {
public sealed class ObjectResponse<T> : BasicResponse {
[PublicAPI]
public T Content { get; }

View File

@@ -28,7 +28,7 @@ using System.Net.Http;
using System.Threading.Tasks;
using JetBrains.Annotations;
namespace ArchiSteamFarm.Web {
namespace ArchiSteamFarm.Web.Responses {
public sealed class StreamResponse : BasicResponse, IAsyncDisposable {
[PublicAPI]
public Stream Content { get; }

View File

@@ -23,7 +23,7 @@ using System;
using System.Net.Http;
using JetBrains.Annotations;
namespace ArchiSteamFarm.Web {
namespace ArchiSteamFarm.Web.Responses {
public sealed class StringResponse : BasicResponse {
[PublicAPI]
public string Content { get; }

View File

@@ -23,7 +23,7 @@ using System;
using System.Xml;
using JetBrains.Annotations;
namespace ArchiSteamFarm.Web {
namespace ArchiSteamFarm.Web.Responses {
public sealed class XmlDocumentResponse : BasicResponse {
[PublicAPI]
public XmlDocument Content { get; }

View File

@@ -32,6 +32,7 @@ using System.Xml;
using ArchiSteamFarm.Localization;
using ArchiSteamFarm.NLog;
using ArchiSteamFarm.RuntimeCompatibility;
using ArchiSteamFarm.Web.Responses;
using JetBrains.Annotations;
using Newtonsoft.Json;