Skip to content

dlist-top/client-cs

Repository files navigation

DList.top C# client

Official dlist.top gateway client for C#.

Installation

dotnet add package DlistTop

Setup

To get your token please refer to the DList.top documentation.

Usage

var client = new DlistClient(token);
            
client.OnReady += (sender, args) =>
{
    Console.WriteLine($"ready! connected to {args.Data.Name}");
};

client.OnVote += (sender, args) =>
{
    Console.WriteLine($"{args.Data.AuthorID} voted!");
};

client.OnRate += (sender, args) =>
{
    Console.WriteLine($"{args.Data.AuthorID} rated - {args.Data.Rating} stars!");
};

client.Connect().Wait(); // or await client.Connect();

Full example can be found in the Example folder.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages