Code Cleanup
This commit is contained in:
@@ -5,21 +5,7 @@ namespace RpgRoller.Components.Pages;
|
||||
|
||||
public sealed class WorkspaceSessionCoordinator
|
||||
{
|
||||
public WorkspaceSessionCoordinator(
|
||||
WorkspaceState state,
|
||||
WorkspaceFeedbackService feedback,
|
||||
IJSRuntime js,
|
||||
RpgRollerApiClient apiClient,
|
||||
WorkspaceQueryService workspaceQuery,
|
||||
Func<Guid?, Task> reloadCampaignsAsync,
|
||||
Func<Task> reloadCharacterCampaignOptionsAsync,
|
||||
Func<Task> refreshCampaignScopeAsync,
|
||||
Func<Task> syncStateEventsAsync,
|
||||
Func<Task> stopStateEventsAsync,
|
||||
Func<Task> ensureAdminUsersLoadedAsync,
|
||||
Action resetCampaignLogDetailState,
|
||||
Func<Task> requestRefreshAsync,
|
||||
Func<string?, Task> onLoggedOutAsync)
|
||||
public WorkspaceSessionCoordinator(WorkspaceState state, WorkspaceFeedbackService feedback, IJSRuntime js, RpgRollerApiClient apiClient, WorkspaceQueryService workspaceQuery, Func<Guid?, Task> reloadCampaignsAsync, Func<Task> reloadCharacterCampaignOptionsAsync, Func<Task> refreshCampaignScopeAsync, Func<Task> syncStateEventsAsync, Func<Task> stopStateEventsAsync, Func<Task> ensureAdminUsersLoadedAsync, Action resetCampaignLogDetailState, Func<Task> requestRefreshAsync, Func<string?, Task> onLoggedOutAsync)
|
||||
{
|
||||
m_State = state;
|
||||
m_Feedback = feedback;
|
||||
@@ -278,21 +264,6 @@ public sealed class WorkspaceSessionCoordinator
|
||||
return exception.Message.Contains("JavaScript interop calls cannot be issued", StringComparison.OrdinalIgnoreCase);
|
||||
}
|
||||
|
||||
private readonly RpgRollerApiClient m_ApiClient;
|
||||
private readonly WorkspaceFeedbackService m_Feedback;
|
||||
private readonly Func<Task> m_EnsureAdminUsersLoadedAsync;
|
||||
private readonly IJSRuntime m_JS;
|
||||
private readonly Func<string?, Task> m_OnLoggedOutAsync;
|
||||
private readonly Func<Task> m_ReloadCharacterCampaignOptionsAsync;
|
||||
private readonly Func<Guid?, Task> m_ReloadCampaignsAsync;
|
||||
private readonly Action m_ResetCampaignLogDetailState;
|
||||
private readonly Func<Task> m_RefreshCampaignScopeAsync;
|
||||
private readonly Func<Task> m_RequestRefreshAsync;
|
||||
private readonly WorkspaceState m_State;
|
||||
private readonly Func<Task> m_StopStateEventsAsync;
|
||||
private readonly Func<Task> m_SyncStateEventsAsync;
|
||||
private readonly WorkspaceQueryService m_WorkspaceQuery;
|
||||
|
||||
private const string ScreenPlay = "play";
|
||||
private const string ScreenManagement = "management";
|
||||
private const string ScreenAdmin = "admin";
|
||||
@@ -300,4 +271,19 @@ public sealed class WorkspaceSessionCoordinator
|
||||
private const string CampaignSessionKey = "campaign";
|
||||
private const string MobilePanelSessionKey = "play-panel";
|
||||
private const string RollVisibilitySessionKey = "roll-visibility";
|
||||
}
|
||||
|
||||
private readonly RpgRollerApiClient m_ApiClient;
|
||||
private readonly Func<Task> m_EnsureAdminUsersLoadedAsync;
|
||||
private readonly WorkspaceFeedbackService m_Feedback;
|
||||
private readonly IJSRuntime m_JS;
|
||||
private readonly Func<string?, Task> m_OnLoggedOutAsync;
|
||||
private readonly Func<Task> m_RefreshCampaignScopeAsync;
|
||||
private readonly Func<Guid?, Task> m_ReloadCampaignsAsync;
|
||||
private readonly Func<Task> m_ReloadCharacterCampaignOptionsAsync;
|
||||
private readonly Func<Task> m_RequestRefreshAsync;
|
||||
private readonly Action m_ResetCampaignLogDetailState;
|
||||
private readonly WorkspaceState m_State;
|
||||
private readonly Func<Task> m_StopStateEventsAsync;
|
||||
private readonly Func<Task> m_SyncStateEventsAsync;
|
||||
private readonly WorkspaceQueryService m_WorkspaceQuery;
|
||||
}
|
||||
Reference in New Issue
Block a user