From 51bdca38fad904d211e764a663cc14b66033b7f9 Mon Sep 17 00:00:00 2001 From: Cj <161484149+CJ-SPT@users.noreply.github.com> Date: Mon, 6 Jan 2025 22:58:14 -0500 Subject: [PATCH] More controller prototypes --- Core/Controllers/MatchController.cs | 90 +++++++++++++++++++++++++- Core/Controllers/NoteController.cs | 47 +++++++++++++- Core/Controllers/NotifierController.cs | 33 +++++++++- Core/Controllers/PresetController.cs | 8 ++- Core/Controllers/PrestigeController.cs | 28 +++++++- Core/Controllers/WeatherController.cs | 19 +++++- Core/Controllers/WishlistController.cs | 47 +++++++++++++- 7 files changed, 265 insertions(+), 7 deletions(-) diff --git a/Core/Controllers/MatchController.cs b/Core/Controllers/MatchController.cs index 020017bb..13c5854d 100644 --- a/Core/Controllers/MatchController.cs +++ b/Core/Controllers/MatchController.cs @@ -2,5 +2,93 @@ namespace Core.Controllers; public class MatchController { - // TODO + /// + /// + /// + /// + public bool GetEnabled() + { + throw new NotImplementedException(); + } + + /// + /// Handle client/match/group/delete + /// + /// + public void DeleteGroup(object info) // TODO: info is `any` in the node server + { + throw new NotImplementedException(); + } + + /// + /// Handle match/group/start_game + /// + /// + /// + /// + public ProfileStatusResponse JoinMatch( + MatchGroupStartGameRequest info, + string sessionId) + { + throw new NotImplementedException(); + } + + /// + /// Handle client/match/group/status + /// + /// + /// + public MatchGroupStatusReponse GetGroupStatus( + MatchGroupStatusRequest info) + { + throw new NotImplementedException(); + } + + /// + /// Handle /client/raid/configuration + /// + /// + /// + public void ConfigureOfflineRaid( + GetRaidConfigurationRequestData request, + string sessionId) + { + throw new NotImplementedException(); + } + + /// + /// Convert a difficulty value from pre-raid screen to a bot difficulty + /// + /// dropdown difficulty value + /// bot difficulty + private string ConvertDifficultyDropdownIntoBotDifficulty( + string botDifficulty) + { + throw new NotImplementedException(); + } + + /// + /// Handle client/match/local/start + /// + /// + /// + /// + public StartLocalRaidResponseData StartLocalRaid( + string sessionId, + StartLocalRaidRequestData request) + { + throw new NotImplementedException(); + } + + /// + /// Handle client/match/local/end + /// + /// + /// + public void EndLocalRaid( + string sessionId, + EndLocalRaidRequestData request) + { + throw new NotImplementedException(); + } } \ No newline at end of file diff --git a/Core/Controllers/NoteController.cs b/Core/Controllers/NoteController.cs index 53f655f5..075a889b 100644 --- a/Core/Controllers/NoteController.cs +++ b/Core/Controllers/NoteController.cs @@ -1,6 +1,51 @@ +using Core.Models.Eft.Common; + namespace Core.Controllers; public class NoteController { - // TODO + /// + /// + /// + /// + /// + /// + /// + public ItemEventRouterResponse AddNote( + PmcData pmcData, + NoteActionBody body, + string sessionId) + { + throw new NotImplementedException(); + } + + /// + /// + /// + /// + /// + /// + /// + public ItemEventRouterResponse EditNote( + PmcData pmcData, + NoteActionBody body, + string sessionId) + { + throw new NotImplementedException(); + } + + /// + /// + /// + /// + /// + /// + /// + public ItemEventRouterResponse DeleteNote( + PmcData pmcData, + NoteActionBody body, + string sessionId) + { + throw new NotImplementedException(); + } } \ No newline at end of file diff --git a/Core/Controllers/NotifierController.cs b/Core/Controllers/NotifierController.cs index 3124c340..4f0bc33f 100644 --- a/Core/Controllers/NotifierController.cs +++ b/Core/Controllers/NotifierController.cs @@ -2,5 +2,36 @@ namespace Core.Controllers; public class NotifierController { - // TODO + /// + /// Resolve an array of session notifications. + /// + /// If no notifications are currently queued then intermittently check for new notifications until either + /// one or more appear or when a timeout expires. + /// If no notifications are available after the timeout, use a default message. + /// + /// + public async Task NotifyAsync(string sessionId) + { + throw new NotImplementedException(); + } + + /// + /// + /// + /// + /// + public string GetServer(string sessionId) + { + throw new NotImplementedException(); + } + + /// + /// Handle client/notifier/channel/create + /// + /// + /// + public NotifierChannel GetChannel(string sessionId) + { + throw new NotImplementedException(); + } } \ No newline at end of file diff --git a/Core/Controllers/PresetController.cs b/Core/Controllers/PresetController.cs index 64000ba5..f33380da 100644 --- a/Core/Controllers/PresetController.cs +++ b/Core/Controllers/PresetController.cs @@ -2,5 +2,11 @@ namespace Core.Controllers; public class PresetController { - // TODO + /// + /// + /// + public void Initialize() + { + throw new NotImplementedException(); + } } \ No newline at end of file diff --git a/Core/Controllers/PrestigeController.cs b/Core/Controllers/PrestigeController.cs index c4973ab2..2e8d95f3 100644 --- a/Core/Controllers/PrestigeController.cs +++ b/Core/Controllers/PrestigeController.cs @@ -1,6 +1,32 @@ +using Core.Models.Eft.Common.Tables; + namespace Core.Controllers; public class PrestigeController { - // TODO + /// + /// Handle /client/prestige/list + /// + /// + /// + /// + public Prestige GetPrestige( + string sessionId, + EmptyRequestData info) + { + throw new NotImplementedException(); + } + + /// + /// Handle /client/prestige/obtain + /// + /// + /// + /// + public object ObtainPrestige( // TODO: returns `any` in the node server, not implemented either + string sessionId, + EmptyRequestData info) + { + throw new NotImplementedException("Method not Implemented"); + } } \ No newline at end of file diff --git a/Core/Controllers/WeatherController.cs b/Core/Controllers/WeatherController.cs index 2f47d67e..a5ab2d39 100644 --- a/Core/Controllers/WeatherController.cs +++ b/Core/Controllers/WeatherController.cs @@ -2,5 +2,22 @@ namespace Core.Controllers; public class WeatherController { - // TODO + /// + /// Handle client/weather + /// + /// + public WeatherData Generate() + { + throw new NotImplementedException(); + } + + /// + /// Handle client/localGame/weather + /// + /// + /// + public GetLocalWeatherResponseData GenerateLocal(string sessionId) + { + throw new NotImplementedException(); + } } \ No newline at end of file diff --git a/Core/Controllers/WishlistController.cs b/Core/Controllers/WishlistController.cs index c7a498c8..64386856 100644 --- a/Core/Controllers/WishlistController.cs +++ b/Core/Controllers/WishlistController.cs @@ -1,6 +1,51 @@ +using Core.Models.Eft.Common; + namespace Core.Controllers; public class WishlistController { - // TODO + /// + /// Handle AddToWishList + /// + /// + /// + /// + /// + public ItemEventRouterResponse AddToWishList( + PmcData pmcData, + AddItemToWishlistRequest request, + string sessionId) + { + throw new NotImplementedException(); + } + + /// + /// Handle RemoveFromWishList event + /// + /// + /// + /// + /// + public ItemEventRouterResponse RemoveFromWishList( + PmcData pmcData, + RemoveFromWishlistRequest request, + string sessionId) + { + throw new NotImplementedException(); + } + + /// + /// Handle changeWishlistItemCategory event + /// + /// + /// + /// + /// + public ItemEventRouterResponse ChangeWishListItemCategory( + PmcData pmcData, + ChangeWishlistItemCategoryRequest request, + string sessionId) + { + throw new NotImplementedException(); + } } \ No newline at end of file