-
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.
- Loading branch information
1 parent
656d93f
commit bd9bcc4
Showing
19 changed files
with
342 additions
and
164 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
{ | ||
"ServerOptions": { | ||
"ApiKey": "[API_KEY_PLACEHOLDER]", | ||
"ApiKey": "[APIKEY]", | ||
"InactivityTimeout": "0:0:5", | ||
"HeartbeatFrequency": "0:0:1" | ||
}, | ||
"TableStorageOptions": { | ||
"TableName": "searches", | ||
"ConnectionString": "[AZURE_TABLESTORAGE_CONNECTIONSTRING]" | ||
} | ||
} |
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
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
4 changes: 2 additions & 2 deletions
4
...rch/Models/Endpoints/PartySearchUpdate.cs → GuildWarsPartySearch/Models/PartySearch.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
5 changes: 4 additions & 1 deletion
5
...arch/Models/Endpoints/PartySearchEntry.cs → ...arsPartySearch/Models/PartySearchEntry.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
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 Newtonsoft.Json; | ||
|
||
namespace GuildWarsPartySearch.Server.Options; | ||
|
||
public sealed class TableStorageOptions | ||
{ | ||
[JsonProperty(nameof(TableName))] | ||
public string? TableName { get; set; } | ||
|
||
[JsonProperty(nameof(ConnectionString))] | ||
public string? ConnectionString { get; set; } | ||
} |
8 changes: 4 additions & 4 deletions
8
GuildWarsPartySearch/Services/Database/IPartySearchDatabase.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,11 +1,11 @@ | ||
using GuildWarsPartySearch.Common.Models.GuildWars; | ||
using GuildWarsPartySearch.Server.Models.Endpoints; | ||
using GuildWarsPartySearch.Server.Models; | ||
|
||
namespace GuildWarsPartySearch.Server.Services.Database; | ||
|
||
public interface IPartySearchDatabase | ||
{ | ||
Task<List<PartySearchUpdate>> GetAllPartySearches(); | ||
Task<bool> SetPartySearches(Campaign campaign, Continent continent, Region region, Map map, string district, List<Models.Database.PartySearch> partySearch); | ||
Task<List<Models.Database.PartySearch>?> GetPartySearches(Campaign campaign, Continent continent, Region region, Map map, string district); | ||
Task<List<Server.Models.PartySearch>> GetAllPartySearches(CancellationToken cancellationToken); | ||
Task<bool> SetPartySearches(Campaign campaign, Continent continent, Region region, Map map, string district, List<PartySearchEntry> partySearch, CancellationToken cancellationToken); | ||
Task<List<PartySearchEntry>?> GetPartySearches(Campaign campaign, Continent continent, Region region, Map map, string district, CancellationToken cancellationToken); | ||
} |
69 changes: 0 additions & 69 deletions
69
GuildWarsPartySearch/Services/Database/InMemoryPartySearchDatabase.cs
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.