CNInnovation.Codebreaker.ViewModels 3.6.0-beta.34

This is a prerelease version of CNInnovation.Codebreaker.ViewModels.
There is a newer prerelease version of this package available.
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                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CNInnovation.Codebreaker.ViewModels" Version="3.6.0-beta.34" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CNInnovation.Codebreaker.ViewModels --version 3.6.0-beta.34                
#r "nuget: CNInnovation.Codebreaker.ViewModels, 3.6.0-beta.34"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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