mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-01 14:10:53 +00:00
Small cleanup
This commit is contained in:
@@ -56,7 +56,7 @@ namespace ArchiSteamFarm.Tests {
|
||||
public void MultiGameMultiTypeBadReject() {
|
||||
HashSet<Steam.Asset> inventory = new HashSet<Steam.Asset> {
|
||||
CreateItem(1, 9),
|
||||
CreateItem(3, 9, realAppID: 730, type: Steam.Asset.EType.Emoticon),
|
||||
CreateItem(3, 9, 730, Steam.Asset.EType.Emoticon),
|
||||
CreateItem(4, realAppID: 730, type: Steam.Asset.EType.Emoticon)
|
||||
};
|
||||
|
||||
|
||||
@@ -153,7 +153,6 @@ namespace ArchiSteamFarm {
|
||||
[JsonExtensionData]
|
||||
internal Dictionary<string, JToken> AdditionalProperties {
|
||||
get;
|
||||
|
||||
[UsedImplicitly]
|
||||
set;
|
||||
}
|
||||
|
||||
@@ -199,7 +199,6 @@ namespace ArchiSteamFarm {
|
||||
[JsonExtensionData]
|
||||
internal Dictionary<string, JToken> AdditionalProperties {
|
||||
get;
|
||||
|
||||
[UsedImplicitly]
|
||||
set;
|
||||
}
|
||||
|
||||
@@ -511,14 +511,6 @@ namespace ArchiSteamFarm.Json {
|
||||
private InventoryResponse() { }
|
||||
|
||||
internal sealed class Description {
|
||||
[JsonExtensionData]
|
||||
internal Dictionary<string, JToken> AdditionalProperties {
|
||||
get;
|
||||
|
||||
[UsedImplicitly]
|
||||
set;
|
||||
}
|
||||
|
||||
internal Asset.ERarity Rarity {
|
||||
get {
|
||||
if (Tags == null) {
|
||||
@@ -642,6 +634,13 @@ namespace ArchiSteamFarm.Json {
|
||||
}
|
||||
}
|
||||
|
||||
[JsonExtensionData]
|
||||
internal Dictionary<string, JToken> AdditionalProperties {
|
||||
get;
|
||||
[UsedImplicitly]
|
||||
set;
|
||||
}
|
||||
|
||||
[JsonProperty(PropertyName = "appid", Required = Required.Always)]
|
||||
internal uint AppID { get; set; }
|
||||
|
||||
|
||||
@@ -162,6 +162,7 @@ namespace ArchiSteamFarm {
|
||||
}
|
||||
|
||||
HashSet<Confirmation> result = new HashSet<Confirmation>();
|
||||
|
||||
List<IElement> confirmationNodes = htmlDocument.SelectNodes("//div[@class='mobileconf_list_entry']");
|
||||
|
||||
if (confirmationNodes.Count == 0) {
|
||||
|
||||
@@ -411,7 +411,6 @@ namespace ArchiSteamFarm {
|
||||
const byte printPercentage = 10;
|
||||
const byte maxBatches = 99 / printPercentage;
|
||||
|
||||
//using HttpResponseMessage response = await InternalGet(request, referer, HttpCompletionOption.ResponseHeadersRead).ConfigureAwait(false);
|
||||
using StreamResponse response = await UrlGetToStream(request, referer, requestOptions).ConfigureAwait(false);
|
||||
|
||||
if (response == null) {
|
||||
@@ -818,6 +817,7 @@ namespace ArchiSteamFarm {
|
||||
internal sealed class StreamResponse : BasicResponse, IDisposable {
|
||||
internal readonly Stream Content;
|
||||
internal readonly uint Length;
|
||||
|
||||
private readonly HttpResponseMessage ResponseMessage;
|
||||
|
||||
internal StreamResponse([NotNull] HttpResponseMessage httpResponseMessage, [NotNull] Stream content) : base(httpResponseMessage) {
|
||||
|
||||
Reference in New Issue
Block a user