Хабр Курсы для всех
РЕКЛАМА
Практикум, Хекслет, SkyPro, авторские курсы — собрали всех и попросили скидки. Осталось выбрать!
using System;
using NDesk.DBus;
namespace Test
{
public class MainClass
{
[NDesk.DBus.Interface("com.Skype.API")]
public interface ISkypeDBus
{
string Invoke (string command);
}
[NDesk.DBus.Interface("com.Skype.API.Client")]
public interface ISkypeDBusNotify
{
void Notify (string message);
}
public class SkypeDBusNotify : ISkypeDBusNotify
{
public void Notify (string message)
{
Console.WriteLine (message);
}
}
public static void Main (string[] args)
{
var bus = Bus.Session;
bus.Register (new ObjectPath ("/com/Skype/Client"), new SkypeDBusNotify ());
var skypeDBus = bus.GetObject<ISkypeDBus> ("com.Skype.API", new ObjectPath ("/com/Skype"));
skypeDBus.Invoke ("NAME Test");
skypeDBus.Invoke ("PROTOCOL 7");
while (true)
bus.Iterate ();
}
}
}
7.1. Skype is under no obligation to provide you with any Upgrades, maintenance or support for the SkypeKit. Unless accompanied by a separate license agreement, any Upgrades provided by Skype at its discretion shall be governed by the terms of this Agreement. Limited support may be available at the Skype Site.
13. Term and Termination
13.2.4. for any reason, on thirty (30) days notice to you.
13.3. Skype reserves the right to suspend, modify, amend or terminate any or all of the Skype Features at any time without cause.
Microsoft отказывается от SkypeKit и Skype Desktop API