Small cleanup

This commit is contained in:
JustArchi
2020-04-02 17:16:05 +02:00
parent fbe5bd12ae
commit 1e87341877
6 changed files with 10 additions and 12 deletions

View File

@@ -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)
};

View File

@@ -153,7 +153,6 @@ namespace ArchiSteamFarm {
[JsonExtensionData]
internal Dictionary<string, JToken> AdditionalProperties {
get;
[UsedImplicitly]
set;
}

View File

@@ -199,7 +199,6 @@ namespace ArchiSteamFarm {
[JsonExtensionData]
internal Dictionary<string, JToken> AdditionalProperties {
get;
[UsedImplicitly]
set;
}

View File

@@ -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; }

View File

@@ -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) {

View File

@@ -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) {