-
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated Maxroll imports to work with new format.
- Loading branch information
1 parent
1af1802
commit 442da7c
Showing
15 changed files
with
593 additions
and
149 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Text.Json.Serialization; | ||
using System.Threading.Tasks; | ||
|
||
namespace D4Companion.Entities | ||
{ | ||
public class MaxrollBuild | ||
{ | ||
public MaxrollBuildDataJson Data { get; set; } = new(); | ||
|
||
public string Date { get; set; } = string.Empty; | ||
|
||
public string Id { get; set; } = string.Empty; | ||
|
||
public string Name { get; set; } = string.Empty; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Text.Json.Serialization; | ||
using System.Threading.Tasks; | ||
|
||
namespace D4Companion.Entities | ||
{ | ||
public class MaxrollBuildJson | ||
{ | ||
[JsonPropertyName("data")] | ||
public string Data { get; set; } = string.Empty; | ||
|
||
[JsonPropertyName("date")] | ||
public string Date { get; set; } = string.Empty; | ||
|
||
[JsonPropertyName("id")] | ||
public string Id { get; set; } = string.Empty; | ||
|
||
[JsonPropertyName("name")] | ||
public string Name { get; set; } = string.Empty; | ||
} | ||
|
||
public class MaxrollBuildDataJson | ||
{ | ||
[JsonPropertyName("profiles")] | ||
public List<MaxrollBuildDataProfileJson> Profiles { get; set; } = new(); | ||
|
||
[JsonPropertyName("items")] | ||
public Dictionary<int, MaxrollBuildDataItemJson> Items { get; set; } = new(); | ||
} | ||
|
||
public class MaxrollBuildDataProfileJson | ||
{ | ||
[JsonPropertyName("name")] | ||
public string Name { get; set; } = string.Empty; | ||
|
||
[JsonPropertyName("items")] | ||
public Dictionary<int, int> Items { get; set; } = new(); // <itemslot, item> | ||
} | ||
|
||
public class MaxrollBuildDataItemJson | ||
{ | ||
[JsonPropertyName("id")] | ||
public string Id { get; set; } = string.Empty; | ||
|
||
[JsonPropertyName("explicits")] | ||
public List<MaxrollBuildDataItemExplicitJson> Explicits { get; set; } = new(); | ||
|
||
[JsonPropertyName("legendaryPower")] | ||
public MaxrollBuildDataItemLegendaryPowerJson LegendaryPower { get; set; } = new(); | ||
} | ||
|
||
public class MaxrollBuildDataItemExplicitJson | ||
{ | ||
[JsonPropertyName("nid")] | ||
public int Nid { get; set; } | ||
} | ||
|
||
public class MaxrollBuildDataItemLegendaryPowerJson | ||
{ | ||
[JsonPropertyName("nid")] | ||
public int Nid { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using Prism.Events; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace D4Companion.Events | ||
{ | ||
public class MaxrollBuildsLoadedEvent : PubSubEvent | ||
{ | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.