-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle explicit party search list requests
Closes #76
- Loading branch information
1 parent
c6427a0
commit 45fc018
Showing
6 changed files
with
92 additions
and
53 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
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
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,12 @@ | ||
using GuildWarsPartySearch.Server.Attributes; | ||
using GuildWarsPartySearch.Server.Converters; | ||
using System.Text.Json.Serialization; | ||
|
||
namespace GuildWarsPartySearch.Server.Models.Endpoints; | ||
|
||
[WebSocketConverter<JsonWebSocketMessageConverter<LiveFeedRequest>, LiveFeedRequest>] | ||
public sealed class LiveFeedRequest | ||
{ | ||
[JsonPropertyName("full_list")] | ||
public bool GetFullList { 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
10 changes: 7 additions & 3 deletions
10
GuildWarsPartySearch/Models/Endpoints/PostPartySearchResponse.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,15 +1,19 @@ | ||
using GuildWarsPartySearch.Server.Attributes; | ||
using GuildWarsPartySearch.Server.Converters; | ||
using Newtonsoft.Json; | ||
using System.Text.Json.Serialization; | ||
|
||
namespace GuildWarsPartySearch.Server.Models.Endpoints; | ||
|
||
[WebSocketConverter<JsonWebSocketMessageConverter<PostPartySearchResponse>, PostPartySearchResponse>] | ||
public sealed class PostPartySearchResponse | ||
{ | ||
[JsonProperty(nameof(Result))] | ||
[JsonPropertyName(nameof(Result))] | ||
public int Result { get; set; } | ||
|
||
[JsonProperty(nameof(Description))] | ||
[JsonPropertyName(nameof(Description))] | ||
public string? Description { get; set; } | ||
|
||
[JsonPropertyName(nameof(PartySearches))] | ||
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)] | ||
public List<PartySearch>? PartySearches { get; set; } | ||
} |