Esempio n. 1
0
        public XbmcJsonRpcConnection(Uri uri, string username, string password)
        {
            this.client           = new JsonRpcClient(uri, username, password);
            this.client.Log      += onLog;
            this.client.LogError += onLogError;

            this.jsonRpc  = new XbmcJsonRpc(this.client);
            this.player   = new XbmcPlayer(this.client);
            this.system   = new XbmcSystem(this.client);
            this.xbmc     = new XbmcGeneral(this.client);
            this.files    = new XbmcFiles(this.client);
            this.playlist = new XbmcPlaylist(this.client);
            this.library  = new XbmcLibrary(this.client);
        }
        public XbmcJsonRpcConnection(Uri uri, string username, string password)
        {
            this.client = new JsonRpcClient(uri, username, password);
            this.client.Log += onLog;
            this.client.LogError += onLogError;

            this.jsonRpc = new XbmcJsonRpc(this.client);
            this.player = new XbmcPlayer(this.client);
            this.system = new XbmcSystem(this.client);
            this.xbmc = new XbmcGeneral(this.client);
            this.files = new XbmcFiles(this.client);
            this.playlist = new XbmcPlaylist(this.client);
            this.library = new XbmcLibrary(this.client);
        }