Hand2Note4Api 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Hand2Note4Api --version 1.0.0
                    
NuGet\Install-Package Hand2Note4Api -Version 1.0.0
                    
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="Hand2Note4Api" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Hand2Note4Api" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Hand2Note4Api" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Hand2Note4Api --version 1.0.0
                    
#r "nuget: Hand2Note4Api, 1.0.0"
                    
#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.
#:package Hand2Note4Api@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Hand2Note4Api&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Hand2Note4Api&version=1.0.0
                    
Install as a Cake Tool

Hand2Note API

Contains Hand2Note API for third party tools integration.

Hand2Note is an online poker HUD software at https://hand2note.com

Currently available on C#.

Installation

HUD integration

Use it if you need to show dynamic or static HUD in any window or you need to send a hand history to Hand2Note, process it and save it into the database.

This API is intended for third party converters on poker rooms unsupported by Hand2Note itself. This API should NOT be used to violate poker rooms' software restrictions especially on PokerStars and measures to maintain the complience will be taken by us.

General use cases:

using Hand2Note.Api;

//Notifies Hand2Note that the new hand has been started
Hand2Note.Send(new HandStartMessage(
    windowId: 1,
    gameNumber: 1,
    userUsername: null,
    table: new Table(
        room: Rooms.PokerStars,
        gameType: new PokerGameType(
            pokerGame: PokerGames.TexasHoldem,
            betLimits: BetLimits.NoLimit, 
            sessionType: SessionTypes.Cash),
        stakes: new Stakes(smallBlind: 1, bigBlind: 2),
        tableSize: 6,
        currency: Currencies.Dollar),
    players: ... //Fill ImmutableList<HandStartMessagePlayer>,
    cashDrop: 0)
);

//Notifies Hand2Note that the street has been changed
Hand2Note.Send( 
    new DealMessage(
      windowId: 1,
      gameNumber: 1,
      board: new Board(cards: "AcAhAd".ParseCards()),
      bankRake: BankRake.Create(potRakes: PotMap<double>.Empty.With(potNumber: 1, value: 0.1)));
);

//Notifies Hand2Note that the action has been done
Hand2Note.Send(new ActionMessage(
    windowId: 1,
    seatNumber: 1,
    gameNumber: 1,
    actionType: ActionTypes.Raise,
    amount: 2)
);

//Sends a "static" hand history to Hand2Note to update players' statistics.
//Please, note that the hand history should contain information about the original poker room it was played on. 
//Hand2Note uses a prefix in the table name to detect the original room.
//Use Hand2Note.GetRoomDefiningTableName method to generate a table name with a correspondent room prefix.
Hand2Note.Send(new HandHistoryMessage(){...});


//Checks if Hand2Note is running
if (Hand2Note.IsHand2NoteRunning()){
...
}

//Use Activity monitor to know when Hand2Note client was started or closed
var activityMonitor = new ActivityMonitor();
activityMonitor.Hand2NoteStarted += Hand2NoteStartedHandler;
activityMonitor.Hand2NoteClosed += Hand2NoteClosedHandler;
Product Compatible and additional computed target framework versions.
.NET 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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0

    • No dependencies.

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
1.0.1 159 5/22/2025
1.0.0 147 5/21/2025