CNInnovation.Codebreaker.ViewModels
3.6.0-beta.34
See the version list below for details.
dotnet add package CNInnovation.Codebreaker.ViewModels --version 3.6.0-beta.34
NuGet\Install-Package CNInnovation.Codebreaker.ViewModels -Version 3.6.0-beta.34
<PackageReference Include="CNInnovation.Codebreaker.ViewModels" Version="3.6.0-beta.34" />
paket add CNInnovation.Codebreaker.ViewModels --version 3.6.0-beta.34
#r "nuget: CNInnovation.Codebreaker.ViewModels, 3.6.0-beta.34"
// Install CNInnovation.Codebreaker.ViewModels as a Cake Addin #addin nuget:?package=CNInnovation.Codebreaker.ViewModels&version=3.6.0-beta.34&prerelease // Install CNInnovation.Codebreaker.ViewModels as a Cake Tool #tool nuget:?package=CNInnovation.Codebreaker.ViewModels&version=3.6.0-beta.34&prerelease
CNinnovation.Codebreaker.ViewModels
This library contains view-model types for XAML-based applications (WinUI, WPF, .NET MAUI...) to create Codebreaker games.
It is part of the Codebreaker solution.
See https://github.com/codebreakerapp for more information on the complete solution.
The ViewModels
Class | Description |
---|---|
GamePageViewModel | The GamePageViewModel is the view-model type for the game page with commands to start games, set moves. |
GameViewModel | The GameViewModel is the view-model type for game information. |
MoveViewModel | The MoveViewModel is the view-model type for a game move. |
InfoMessageViewModel | Alternative option of IDialogService |
The GamePageViewModel
is the main view-model type to communicate with the application.
Members | Description |
---|---|
ctor | Needs IGamesClient (communication with the games-service API), IOptions<GamePageViewModelOptions> , IDialogService |
Supporting types
Class | Description |
---|---|
GameMode | An enumeration - is the game not running, started, are moves set, lost, won? |
In the constructor, inject the HttpClient
class. You can use Microsoft.Extensions.Http
to configure the HttpClient
class.
Model types
The following model types are used to return information about the game.
Model type | Description |
---|---|
Game | Contains the game id, the game status, the game moves and the game result |
Move | Contains the move number, the guess (GuessPegs ) and the result of the guess (KeyPegs ) |
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net7.0
- CNinnovation.Codebreaker.GamesClient (>= 3.6.0-beta.21)
- CommunityToolkit.Mvvm (>= 8.2.2)
- Microsoft.Extensions.Options (>= 7.0.1)
-
net8.0
- CNinnovation.Codebreaker.GamesClient (>= 3.6.0-beta.21)
- CommunityToolkit.Mvvm (>= 8.2.2)
- Microsoft.Extensions.Options (>= 7.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
3.7.0-beta.40 | 54 | 4/10/2024 |
3.7.0-beta.38 | 56 | 3/20/2024 |
3.6.0-beta.34 | 81 | 2/12/2024 |
3.5.0-beta.33 | 130 | 12/19/2023 |