forked from silfumus/ElectronicObserver
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e48a485
commit 44e916c
Showing
13 changed files
with
178 additions
and
278 deletions.
There are no files selected for viewing
96 changes: 0 additions & 96 deletions
96
ElectronicObserver/Data/PoiDbSubmission/FormDataExtensions.cs
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
44 changes: 0 additions & 44 deletions
44
ElectronicObserver/Data/PoiDbSubmission/PoiDbFriendFleetSubmission/Body.cs
This file was deleted.
Oops, something went wrong.
41 changes: 38 additions & 3 deletions
41
...bserver/Data/PoiDbSubmission/PoiDbFriendFleetSubmission/PoiDbFriendFleetSubmissionData.cs
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 |
---|---|---|
@@ -1,9 +1,44 @@ | ||
using System.Text.Json.Serialization; | ||
using System.Collections.Generic; | ||
using System.Text.Json.Nodes; | ||
using System.Text.Json.Serialization; | ||
|
||
namespace ElectronicObserver.Data.PoiDbSubmission.PoiDbFriendFleetSubmission; | ||
|
||
public class PoiDbFriendFleetSubmissionData | ||
{ | ||
[JsonPropertyName("body")] | ||
public required Body Body { get; init; } | ||
[JsonPropertyName("maparea_id")] | ||
public required int World { get; init; } | ||
|
||
[JsonPropertyName("mapinfo_no")] | ||
public required int Map { get; init; } | ||
|
||
[JsonPropertyName("curCellId")] | ||
public required int Cell { get; init; } | ||
|
||
[JsonPropertyName("mapLevel")] | ||
public required int MapLevel { get; init; } | ||
|
||
[JsonPropertyName("friendly_status")] | ||
public required FriendlyStatus FriendlyStatus { get; init; } | ||
|
||
[JsonPropertyName("api_friendly_battle")] | ||
public required JsonNode ApiFriendlyBattle { get; init; } | ||
|
||
[JsonPropertyName("escapeList")] | ||
public required List<int> EscapeList { get; init; } | ||
|
||
[JsonPropertyName("formation")] | ||
public required int Formation { get; init; } | ||
|
||
[JsonPropertyName("enemy")] | ||
public required Dictionary<string, JsonNode?> Enemy { get; init; } | ||
|
||
[JsonPropertyName("deck1")] | ||
public required List<JsonNode> Deck1 { get; init; } | ||
|
||
[JsonPropertyName("deck2")] | ||
public required List<JsonNode>? Deck2 { get; init; } | ||
|
||
[JsonPropertyName("version")] | ||
public required string Version { get; init; } | ||
} |
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
24 changes: 0 additions & 24 deletions
24
ElectronicObserver/Data/PoiDbSubmission/PoiDbQuestSubmission/Form.cs
This file was deleted.
Oops, something went wrong.
21 changes: 18 additions & 3 deletions
21
ElectronicObserver/Data/PoiDbSubmission/PoiDbQuestSubmission/PoiDbQuestSubmissionData.cs
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 |
---|---|---|
@@ -1,9 +1,24 @@ | ||
using System.Text.Json.Serialization; | ||
using System.Collections.Generic; | ||
using System.Text.Json.Nodes; | ||
using System.Text.Json.Serialization; | ||
using ElectronicObserver.KancolleApi.Types.Models; | ||
|
||
namespace ElectronicObserver.Data.PoiDbSubmission.PoiDbQuestSubmission; | ||
|
||
public class PoiDbQuestSubmissionData | ||
{ | ||
[JsonPropertyName("form")] | ||
public required Form Form { get; init; } | ||
[JsonPropertyName("current")] | ||
public required int CompletedQuestId { get; init; } | ||
|
||
[JsonPropertyName("after")] | ||
public required List<int> NewQuestIds { get; init; } | ||
|
||
/// <summary> | ||
/// Should be <see cref="ApiListClass" /> but we're skipping deserialization to avoid data loss. | ||
/// </summary> | ||
[JsonPropertyName("detail")] | ||
public required List<JsonNode> NewQuestData { get; init; } | ||
|
||
[JsonPropertyName("version")] | ||
public required string Version { get; init; } | ||
} |
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
21 changes: 21 additions & 0 deletions
21
ElectronicObserver/Data/PoiDbSubmission/PoiDbRouteSubmission/PoiDbRouteEquipment.cs
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,21 @@ | ||
using System.Text.Json.Serialization; | ||
|
||
namespace ElectronicObserver.Data.PoiDbSubmission.PoiDbRouteSubmission; | ||
|
||
public class PoiDbRouteEquipment | ||
{ | ||
[JsonPropertyName("api_id")] | ||
public required int ApiId { get; init; } | ||
|
||
[JsonPropertyName("api_slotitem_id")] | ||
public required int ApiSlotitemId { get; init; } | ||
|
||
[JsonPropertyName("api_locked")] | ||
public required int ApiLocked { get; init; } | ||
|
||
[JsonPropertyName("api_level")] | ||
public required int ApiLevel { get; init; } | ||
|
||
[JsonPropertyName("api_alv")] | ||
public required int ApiAlv { get; init; } | ||
} |
24 changes: 24 additions & 0 deletions
24
ElectronicObserver/Data/PoiDbSubmission/PoiDbRouteSubmission/PoiDbRouteShip.cs
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,24 @@ | ||
using System.Text.Json.Serialization; | ||
|
||
namespace ElectronicObserver.Data.PoiDbSubmission.PoiDbRouteSubmission; | ||
|
||
public class PoiDbRouteShip | ||
{ | ||
[JsonPropertyName("api_ship_id")] | ||
public required int ApiShipId { get; init; } | ||
|
||
[JsonPropertyName("api_lv")] | ||
public required int ApiLv { get; init; } | ||
|
||
[JsonPropertyName("api_sally_area")] | ||
public required int? ApiSallyArea { get; init; } | ||
|
||
[JsonPropertyName("api_soku")] | ||
public required int ApiSoku { get; init; } | ||
|
||
[JsonPropertyName("api_slotitem_ex")] | ||
public required int ApiSlotitemEx { get; init; } | ||
|
||
[JsonPropertyName("api_slotitem_level")] | ||
public required int ApiSlotitemLevel { get; init; } | ||
} |
Oops, something went wrong.