Mark additional stuff for removal

This commit is contained in:
Archi
2021-08-02 22:15:37 +02:00
parent 93a8af71e9
commit a1955bc881
6 changed files with 9 additions and 2 deletions

View File

@@ -205,6 +205,7 @@ namespace ArchiSteamFarm.Core {
}
}
[Obsolete("ASF no longer uses this function, re-implement it yourself if needed.")]
[PublicAPI]
public static int RandomNext(int maxValue) {
switch (maxValue) {
@@ -238,6 +239,7 @@ namespace ArchiSteamFarm.Core {
}
}
[Obsolete("ASF no longer uses this function, re-implement it yourself if needed.")]
[PublicAPI]
public static IEnumerable<IElement> SelectElementNodes(this IElement element, string xpath) => element.SelectNodes(xpath).OfType<IElement>();

View File

@@ -595,6 +595,7 @@ namespace ArchiSteamFarm.Steam.Integration {
return response;
}
[Obsolete("ASF no longer uses any XML-related functions, re-implement it yourself if needed.")]
[PublicAPI]
public async Task<XmlDocumentResponse?> UrlGetToXmlDocumentWithSession(Uri request, IReadOnlyCollection<KeyValuePair<string, string>>? headers = null, Uri? referer = null, WebBrowser.ERequestOptions requestOptions = WebBrowser.ERequestOptions.None, bool checkSessionPreemptively = true, byte maxTries = WebBrowser.MaxTries) {
if (request == null) {

View File

@@ -435,16 +435,16 @@ namespace ArchiSteamFarm.Storage {
return await SerializableFile.Write(filePath, json).ConfigureAwait(false);
}
[PublicAPI]
public enum EOptimizationMode : byte {
MaxPerformance,
MinMemoryUsage
}
[PublicAPI]
public enum EUpdateChannel : byte {
None,
Stable,
[PublicAPI]
Experimental
}

View File

@@ -24,6 +24,7 @@ using System.Net.Http;
using JetBrains.Annotations;
namespace ArchiSteamFarm.Web.Responses {
[Obsolete("ASF no longer uses this class, re-implement it yourself using " + nameof(BasicResponse) + " if needed.")]
public sealed class StringResponse : BasicResponse {
[PublicAPI]
public string Content { get; }

View File

@@ -24,6 +24,7 @@ using System.Xml;
using JetBrains.Annotations;
namespace ArchiSteamFarm.Web.Responses {
[Obsolete("ASF no longer uses any XML-related functions, re-implement it yourself using " + nameof(BasicResponse) + " if needed.")]
public sealed class XmlDocumentResponse : BasicResponse {
[PublicAPI]
public XmlDocument Content { get; }

View File

@@ -358,6 +358,7 @@ namespace ArchiSteamFarm.Web {
return null;
}
[Obsolete("ASF no longer uses this function, re-implement it yourself using " + nameof(UrlGetToStream) + " if needed.")]
[PublicAPI]
public async Task<StringResponse?> UrlGetToString(Uri request, IReadOnlyCollection<KeyValuePair<string, string>>? headers = null, Uri? referer = null, ERequestOptions requestOptions = ERequestOptions.None, byte maxTries = MaxTries) {
if (request == null) {
@@ -399,6 +400,7 @@ namespace ArchiSteamFarm.Web {
return null;
}
[Obsolete("ASF no longer uses any XML-related functions, re-implement it yourself using " + nameof(UrlGetToStream) + " if needed.")]
[PublicAPI]
public async Task<XmlDocumentResponse?> UrlGetToXmlDocument(Uri request, IReadOnlyCollection<KeyValuePair<string, string>>? headers = null, Uri? referer = null, ERequestOptions requestOptions = ERequestOptions.None, byte maxTries = MaxTries) {
if (request == null) {