Skip to content

Commit

Permalink
[STABLE] update for apiX (2)
Browse files Browse the repository at this point in the history
  • Loading branch information
kalilistic committed Jul 2, 2024
1 parent 59dfa1d commit 4c168aa
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 23 deletions.
2 changes: 1 addition & 1 deletion src/PriceCheck/PriceCheck.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
<ItemGroup>
<PackageReference Include="DalamudPackager" Version="2.1.13" />
<PackageReference Include="System.Net.Http" Version="4.3.4" />
<PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.435">
<PackageReference Include="StyleCop.Analyzers" Version="1.1.118">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
5 changes: 3 additions & 2 deletions src/PriceCheck/PriceCheck/Configuration/PriceCheckConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

using Dalamud.Game.Text;

// ReSharper disable UseCollectionExpression
namespace PriceCheck
{
/// <summary>
Expand Down Expand Up @@ -142,12 +143,12 @@ public abstract class PriceCheckConfig
/// <summary>
/// Gets or sets list of items to show above.
/// </summary>
public List<byte> ShowContextAboveThis { get; set; } = new();
public List<byte> ShowContextAboveThis { get; set; } = new ();

/// <summary>
/// Gets or sets list of items to show below.
/// </summary>
public List<byte> ShowContextBelowThis { get; set; } = new();
public List<byte> ShowContextBelowThis { get; set; } = new ();

/// <summary>
/// Gets or sets chat channel to use for price check messages.
Expand Down
15 changes: 8 additions & 7 deletions src/PriceCheck/PriceCheck/Model/PriceMode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

using CheapLoc;

// ReSharper disable UseCollectionExpression
namespace PriceCheck
{
/// <summary>
Expand All @@ -13,49 +14,49 @@ public class PriceMode
/// <summary>
/// List of price modes.
/// </summary>
public static readonly List<PriceMode> PriceModes = new();
public static readonly List<PriceMode> PriceModes = new ();

/// <summary>
/// List of price mode names.
/// </summary>
public static readonly List<string> PriceModeNames = new();
public static readonly List<string> PriceModeNames = new ();

/// <summary>
/// Price mode: historical average.
/// </summary>
public static readonly PriceMode AveragePrice = new(
public static readonly PriceMode AveragePrice = new (
0,
Loc.Localize("AveragePrice", "Average Price"),
Loc.Localize("AveragePriceDesc", "The average sale price in recent sale history with outliers removed beyond three standard deviations of the mean."));

/// <summary>
/// Price mode: current average.
/// </summary>
public static readonly PriceMode CurrentAveragePrice = new(
public static readonly PriceMode CurrentAveragePrice = new (
1,
Loc.Localize("CurrentAveragePrice", "Current Average Price"),
Loc.Localize("CurrentAveragePriceDesc", "The average sale price in current listings with outliers removed beyond three standard deviations of the mean."));

/// <summary>
/// Price mode: minimum price.
/// </summary>
public static readonly PriceMode MinimumPrice = new(
public static readonly PriceMode MinimumPrice = new (
2,
Loc.Localize("MinimumPrice", "Minimum Price"),
Loc.Localize("MinimumPriceDesc", "The minimum price in current listings."));

/// <summary>
/// Price mode: maximum price.
/// </summary>
public static readonly PriceMode MaximumPrice = new(
public static readonly PriceMode MaximumPrice = new (
3,
Loc.Localize("MaximumPrice", "Maximum Price"),
Loc.Localize("MaximumPriceDesc", "The maximum price in current listings."));

/// <summary>
/// Price mode: current minimum price.
/// </summary>
public static readonly PriceMode CurrentMinimumPrice = new(
public static readonly PriceMode CurrentMinimumPrice = new (
4,
Loc.Localize("CurrentMinimumPrice", "Current Minimum Price"),
Loc.Localize("CurrentMinimumPriceDesc", "The minimum price in current listings across both normal and high quality items."));
Expand Down
4 changes: 2 additions & 2 deletions src/PriceCheck/PriceCheck/Service/PriceService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ namespace PriceCheck
public class PriceService
{
private readonly PriceCheckPlugin plugin;
private readonly List<PricedItem> pricedItems = new();
private readonly object locker = new();
private readonly List<PricedItem> pricedItems = new ();
private readonly object locker = new ();

/// <summary>
/// Initializes a new instance of the <see cref="PriceService"/> class.
Expand Down
14 changes: 3 additions & 11 deletions src/PriceCheck/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,9 @@
},
"StyleCop.Analyzers": {
"type": "Direct",
"requested": "[1.2.0-beta.435, )",
"resolved": "1.2.0-beta.435",
"contentHash": "TADk7vdGXtfTnYCV7GyleaaRTQjfoSfZXprQrVMm7cSJtJbFc1QIbWPyLvrgrfGdfHbGmUPvaN4ODKNxg2jgPQ==",
"dependencies": {
"StyleCop.Analyzers.Unstable": "1.2.0.435"
}
"requested": "[1.1.118, )",
"resolved": "1.1.118",
"contentHash": "Onx6ovGSqXSK07n/0eM3ZusiNdB6cIlJdabQhWGgJp3Vooy9AaLS/tigeybOJAobqbtggTamoWndz72JscZBvw=="
},
"System.Net.Http": {
"type": "Direct",
Expand Down Expand Up @@ -177,11 +174,6 @@
"resolved": "4.3.2",
"contentHash": "leXiwfiIkW7Gmn7cgnNcdtNAU70SjmKW3jxGj1iKHOvdn0zRWsgv/l2OJUO5zdGdiv2VRFnAsxxhDgMzofPdWg=="
},
"StyleCop.Analyzers.Unstable": {
"type": "Transitive",
"resolved": "1.2.0.435",
"contentHash": "ouwPWZxbOV3SmCZxIRqHvljkSzkCyi1tDoMzQtDb/bRP8ctASV/iRJr+A2Gdj0QLaLmWnqTWDrH82/iP+X80Lg=="
},
"System.Collections": {
"type": "Transitive",
"resolved": "4.3.0",
Expand Down

0 comments on commit 4c168aa

Please sign in to comment.