oddbear / TouchPortalSDK

Touch Portal SDK for .Net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Touch Portal .Net SDK

Nuget Nuget (with prereleases)

Touch Portal SDK for making plugins in .Net

Build from documentation at Touch Portal Plugin API.

Getting started:

The simplest way of getting started, is to implement the ITouchPortalEventHandler and use TouchPortalFactory to create a client. And then Connect to Touch Portal before sending or receiving events.

public class SamplePlugin : ITouchPortalEventHandler
{
    public string PluginId => "Plugin.Id"; //Replace "Plugin.Id" with your unique id.

    private readonly ITouchPortalClient _client;

    public SamplePlugin()
    {
        _client = TouchPortalFactory.CreateClient(this);
    }

    public void Run()
    {
        _client.Connect();
    }
    ...

More information on the Wiki, or see the Sample project in this repository.

[Work in progress] Extensions

Repository: TouchPortalSDK.Extensions

The TouchPortalSDK is ment to be the basic simple SDK, but there is an extended version aim to be like the Java SDK.

  • Automatic generation of entry.tp
  • Automatic generation of .tpp package file.

About

Touch Portal SDK for .Net

License:MIT License


Languages

Language:C# 100.0%