Skip to content

Commit

Permalink
Merge pull request #212 from domialex/hotfixes/0.4.1
Browse files Browse the repository at this point in the history
Returns results for online players only
  • Loading branch information
domialex authored Feb 11, 2020
2 parents 4896409 + ea66b47 commit a2adbb9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Sidekick.Business/Filters/Exchange.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ public class Exchange

public List<string> Have { get; set; } = new List<string>();

public string Status = "online";
public Status Status { get; set; } = new Status();
}
}
6 changes: 4 additions & 2 deletions src/Sidekick.Business/Trades/Requests/BulkQueryRequest.cs
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
using System.Collections.Generic;
using System.Linq;
using Sidekick.Business.Categories;
using Sidekick.Business.Filters;
using Sidekick.Business.Languages;
using Sidekick.Business.Parsers.Models;
using Sidekick.Business.Parsers.Types;
using System.Collections.Generic;
using System.Linq;

namespace Sidekick.Business.Trades.Requests
{
public class BulkQueryRequest
{
public BulkQueryRequest(Item item, ILanguage language, IStaticItemCategoryService staticItemCategoryService)
{
Exchange.Status.Option = StatusType.Online;

var itemType = item.GetType();

if (itemType == typeof(CurrencyItem))
Expand Down
2 changes: 2 additions & 0 deletions src/Sidekick.Business/Trades/Requests/QueryRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ public class QueryRequest
{
public QueryRequest(Parsers.Models.Item item, ILanguage language)
{
Query.Status.Option = StatusType.Online;

var itemType = item.GetType();

if (itemType == typeof(EquippableItem))
Expand Down

0 comments on commit a2adbb9

Please sign in to comment.