Controller fertig gefüllt, 2 Fehlende Klassen hinzugefügt
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
using System;
|
||||
using Models;
|
||||
using Services;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
@@ -6,7 +8,34 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace Controller
|
||||
{
|
||||
internal class CampaignController
|
||||
public class CampaignController
|
||||
{
|
||||
private ICampaignService campaignService;
|
||||
private ISessionService sessionService;
|
||||
|
||||
public List<Campaign> GetCampaigns()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
public Campaign GetCampaignDetails(string campaignID)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
public Campaign CreateCampaign(object campaignData)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
public bool UpdateCampaign(string campaignID, object data)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
public bool DeleteCampaign(string campaignID)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
public bool AddSessionToCampaign(string campaignID, string sessionID)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -1,4 +1,6 @@
|
||||
using System;
|
||||
using Models;
|
||||
using Services;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
@@ -6,7 +8,26 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace Controller
|
||||
{
|
||||
internal class CharacterController
|
||||
public class CharacterController
|
||||
{
|
||||
private ICharacterService characterService;
|
||||
private List<Action> uiUpdateCallbacks;
|
||||
|
||||
public Character LoadCharacter(string characterID)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
public bool SaveCharacter(Character characterData)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
public ValidationResult ValidateCharacterData(object data)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
public void SubscripeToUpdates(Action callback)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -1,4 +1,6 @@
|
||||
using System;
|
||||
using Models;
|
||||
using Services;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
@@ -6,7 +8,23 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace Controller
|
||||
{
|
||||
internal class ChatController
|
||||
public class ChatController
|
||||
{
|
||||
private IChatService chatService;
|
||||
private ISessionService sessionService;
|
||||
private List<Action<Message>> messageCallbacks;
|
||||
|
||||
public bool SendMessage(string sessionID, string message)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
public List<Message> GetMessageHistory(string sessionID)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
public void SubscribeToMessages(Action<Message> callback)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -7,4 +7,8 @@
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Services\Services.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
@@ -1,4 +1,6 @@
|
||||
using System;
|
||||
using Models;
|
||||
using Services;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
@@ -6,7 +8,26 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace Controller
|
||||
{
|
||||
internal class DiceController
|
||||
public class DiceController
|
||||
{
|
||||
private IDiceService diceService;
|
||||
private IUserPreferencesService userPreferenceService;
|
||||
|
||||
public DiceResult RollDice(string notation)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
public List<DicePreset> GetSavedPresets()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
public bool SavePreset(object preset)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
public List<DiceResult> GetRollHistory(string sessionID)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -1,4 +1,6 @@
|
||||
using System;
|
||||
using Models;
|
||||
using Services;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
@@ -6,7 +8,22 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace Controller
|
||||
{
|
||||
internal class EmoteController
|
||||
public class EmoteController
|
||||
{
|
||||
private IChatService chatService;
|
||||
private IEmoteRepository emoteRepository;
|
||||
|
||||
public List<Emote> GetAvailableEmotes()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
public bool SendEmote(string sessionID, string emoteID, string target)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
public Emote CreateCustomEmote(object emoteData)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -1,4 +1,6 @@
|
||||
using System;
|
||||
using Models;
|
||||
using Services;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
@@ -6,7 +8,35 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace Controller
|
||||
{
|
||||
internal class MapController
|
||||
public class MapController
|
||||
{
|
||||
private IMapService mapService;
|
||||
private TokenController tokenController;
|
||||
private List<Action> uiUpdateCallbacks;
|
||||
|
||||
public Map LoadMap(string mapID)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
public bool SaveMap(Map mapData)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
public Token AddToken(object tokenData)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
public bool MoveToken(string tokenID, object position)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
public bool DeleteToken(string tokenID)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
public void SubscribeToUpdates(Action callback)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using Models;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
@@ -6,7 +7,26 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace Controller
|
||||
{
|
||||
internal class MenuController
|
||||
public class MenuController
|
||||
{
|
||||
private List<MenuItem> menuItems;
|
||||
//private AccessController accessController;
|
||||
|
||||
public void LoadMenuItems()
|
||||
{
|
||||
|
||||
}
|
||||
public void ShowMenu()
|
||||
{
|
||||
|
||||
}
|
||||
public void HandleMenuSelection(MenuItem menuItem)
|
||||
{
|
||||
|
||||
}
|
||||
public void UpdateMenuVisibility(string userRole)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using Models;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
@@ -6,7 +7,26 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace Controller
|
||||
{
|
||||
internal class NavigationController
|
||||
public class NavigationController
|
||||
{
|
||||
private List<object> activeWindows;
|
||||
private List<NavigationStep> NavigationHistory;
|
||||
|
||||
public void NavigateTo(string windowName, object parameters)
|
||||
{
|
||||
|
||||
}
|
||||
public void GoBack()
|
||||
{
|
||||
|
||||
}
|
||||
public void CloseWindow(string windowName)
|
||||
{
|
||||
|
||||
}
|
||||
public List<NavigationStep> GetNaviagtionHistory()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -1,4 +1,6 @@
|
||||
using System;
|
||||
using Models;
|
||||
using Services;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
@@ -6,7 +8,30 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace Controller
|
||||
{
|
||||
internal class SessionController
|
||||
public class SessionController
|
||||
{
|
||||
private ISessionService sessionService;
|
||||
private ICharacterService characterService;
|
||||
|
||||
public List<Session> GetAvailableSessions()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
public bool JoinSession(string sessionID)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
public Session CreateSession(object sessionData)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
public Session GetCurrentSession()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
public bool LeaveSession(string sessionID)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -1,4 +1,6 @@
|
||||
using System;
|
||||
using Models;
|
||||
using Services;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
@@ -6,7 +8,26 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace Controller
|
||||
{
|
||||
internal class SettingsController
|
||||
public class SettingsController
|
||||
{
|
||||
private ConfigurationService configurationService;
|
||||
private IUserPreferencesService userPreferencesService;
|
||||
|
||||
public UserPreferences GetUserPreferences()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
public bool SaveUserPreferences(UserPreferences preferences)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
public List<Theme> GetAvailableThemes()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
public bool ApplyTheme(string themeName)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -1,4 +1,6 @@
|
||||
using System;
|
||||
using Models;
|
||||
using Services;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
@@ -6,7 +8,26 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace Controller
|
||||
{
|
||||
internal class TokenController
|
||||
public class TokenController
|
||||
{
|
||||
private IMapService mapService;
|
||||
private ICharacterService characterService;
|
||||
|
||||
public Token LoadToken(string tokenID)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
public bool SaveToken(Token tokenData)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
public bool LinkTokenToCharacter(string tokenID, string characterID)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
public bool UpdateTokenVisibility(string tokenID, string visibility)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -14,7 +14,7 @@ using System.Reflection;
|
||||
[assembly: System.Reflection.AssemblyCompanyAttribute("Controller")]
|
||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+80931f24f40051bcb857a154e458013c0c8db557")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+2512929dd5ffc0b99e768d515f0acb141e989ec8")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("Controller")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("Controller")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||
|
@@ -1 +1 @@
|
||||
457662f0e226938b95ef8127737b1ef98c8ce7c8a1a9e32601ab25e59f783c66
|
||||
b2e5cfbf60735f8b5744417439a45a7584b7222a14f70af59826011625226474
|
||||
|
Binary file not shown.
@@ -0,0 +1 @@
|
||||
d6cc4d3ac6b93ccfc311b60ab03e2f372790f6ce9d093f406595ec7c7d6381ed
|
@@ -0,0 +1,5 @@
|
||||
C:\Users\bib\OneDrive - bib & FHDW\VPR\Projekt\PenAndPaperManager\Controller\obj\Debug\net8.0\Controller.csproj.AssemblyReference.cache
|
||||
C:\Users\bib\OneDrive - bib & FHDW\VPR\Projekt\PenAndPaperManager\Controller\obj\Debug\net8.0\Controller.GeneratedMSBuildEditorConfig.editorconfig
|
||||
C:\Users\bib\OneDrive - bib & FHDW\VPR\Projekt\PenAndPaperManager\Controller\obj\Debug\net8.0\Controller.AssemblyInfoInputs.cache
|
||||
C:\Users\bib\OneDrive - bib & FHDW\VPR\Projekt\PenAndPaperManager\Controller\obj\Debug\net8.0\Controller.AssemblyInfo.cs
|
||||
C:\Users\bib\OneDrive - bib & FHDW\VPR\Projekt\PenAndPaperManager\Controller\obj\Debug\net8.0\Controller.csproj.CoreCompileInputs.cache
|
Reference in New Issue
Block a user