1. Рады видеть Вас на русскоязычном форуме TeamSpeak!

    У нас Вы можете скачать последнюю версию:

    Перед регистрацией рекомендуем ознакомиться

    с Правилами форума.

    Присоединяйтесь! Учите и обучайтесь!

    Скрыть объявление
  2. Новая группа "Новичок" на нашем форуме!

    Новые пользователи будут попадать в группу "Новичок".

    Это сделано для того чтобы "Новички" ознакомились с форумом, так как в большинстве случаев проблема с которой вы хотите обратиться уже обсуждалась.

    Перейти в тему обсуждения
    Быстрый переход в группу Пользователь
  3. VPS/VDS и дедикейт сервера в аренду с DDoS защитой

    • Низкий пинг
    • Действующий SLA
    • Рублевые цены без привязки к курсу валют

    Бесплатный тестовый период VPS-OpenVZ

    Попробовать

Интеграция TS3QueryLib.Net - .Net Server Query Library 1.0.5.0

TS3QueryLib.Net - .Net Server Query Library

  1. PaCTa

    PaCTaIcon TeamSpeak Addic Администратор

    Регистрация:
    15 ноя 2007
    Сообщения:
    1.231
    Симпатии:
    325
    Баллы:
    898
    Данная библиотека позволяет Вам отправлять запросы на TeamSpeak 3 сервер используя query-порт. Все запросы реализованы безопасно и библиотека написана для работы с NET Framework 3.5 Service Pack 1 и выше, а так же поддерживает Silverlight 3.0 и выше, и Windows Phone 7.1. В настоящий момент проект разрабатывается при помощи Microsoft Visual Studio 2010 Service Pack 1.

    Системные требования:
    • Visual Studio 2008 SP1 с .Net Framework 3.5 SP1 и выше
    • Silverlight 3 Toolkit (только если Вы хотите пользоваться этой библиотекой с Silverlight)
    • Windows Phone 7.1 beta tools (только если Вы хотите пользоваться этой библиотекой с WP 7.1)
    Как использовать:
    • For Windows Phone 7.1 reference the assembly : TS3QueryLib.Core.WP7
    • For Silverlight reference the assembly: TS3QueryLib.Core.Silverlight
    • For ASP.Net, Winforms, WPF and so on reference the assembly: TS3QueryLib.Core.Framework
    Пример кода (Silverlight):
    Код:
    using System.Windows;
    using System.Windows.Controls;
    using TS3QueryLib.Core;
    using TS3QueryLib.Core.Common;
    using TS3QueryLib.Core.Query;
    
    namespace TS3RemoteControl
    {
        public partial class MainPage : UserControl
        {
            public MainPage()
            {
                InitializeComponent();
            }
    
            private void ConnectButton_Click(object sender, RoutedEventArgs e)
            {
                // The QueryRunner is used to send queries. All Queries are implemented type save and return objects with properties
                using (QueryRunner queryRunner = new QueryRunner(new SyncTcpDispatcher("127.0.0.1", 10011)))  // host and port
                {
            // connection to the TS3-Server is established with the first query command
    
            // login using the provided username and password and show a dump-output of the response in a textbox
            //AppendToOutput(queryRunner.Login("serveradmin", "YourPassword")).GetDumpString();
    
            // select server with id 1 and show a dump-output of the response in a textbox
            AppendToOutput(queryRunner.SelectVirtualServerById(1).GetDumpString());
            // get information about yourself and show a dump-output of the response in a textbox
            AppendToOutput(queryRunner.SendWhoAmI().GetDumpString());
                }
            }
    
            private void AppendToOutput(string text)
            {
                OutputTextBox.Text += "\n" + text;
            }
        }
    }
    Version 1.0.5.0
    • Added ClientIP property to ClientListEntry
    • Renamed Properties AntiFloodPointsNeededIPBan and AntiFloodPointsNeededCommandStop of ServerInfoResponse to AntiFloodPointsNeededIPBlock and AntiFloodPointsNeededCommandBlock
    • Added new VirtualServerStatus "OtherInstance"
    • Added Property OriginServerId to WhoAmIResponse
    • Removed check for server name when creating a new server using QueryRunner.CreateServer (command servercreate wont need an virtualserver_name anymore, will use the template default name instead)
    • Removed Properties: AntiFloodPointsNeededWarning, AntiFloodPointsNeededKick, AntiFloodPointsNeededBan, AntiFloodBanTime from ServerInfoResponse class. Added Properties: AntiFloodPointsNeededIPBan and AntiFloodPointsNeededCommandStop to ServerInfoResponse class
    • Fixed GetChannelConnectionInfo. Replaced parametername "channelid" with "cid"
    • Added basic support for client query (there are two namepsaces now: Client and Server), thats why QueryRunner and Co. does exist twice
    Version 1.0.0.0
    • Added LastIP property to ClientDbEntry class (Release change)
    • Added LastIP property to ClientDbInfoResponse class (Release change)
    • Added property LastServerConnectionHandlerId to IQueryDispatcher, Async* and SyncTcpDispatcher
    • Added basic support for Client Query to AsyncTcpDispatcher
    • Added basic support for ClientQuery to SyncTcpDispatcher
    • Removed UnreadMessages property of ClientInfoResponse class (RC2 change)
    • Added Sample apps for most technologies
    • Changed AsyncTcpDispatcher to raise events on the same thread it was created on
    • Added method DetachAllEventListeners to TcpDispatcherBase and AsyncTcpDispatcher which det
     
Загрузка...