Exemple #1
0
 public Client(ConnectionSettings settings)
 {
     Serializer = new JsonSerializer();
     Serializer.Converters.Add(new StringEnumConverter());
     Serializer.Converters.Add(new BaseConverter(MultipleInheritanceKeyBase));
     Serializer.Converters.Add(new AllConverter(MultipleInheritanceKeyAll));
     Serializer.Converters.Add(new FileConverter(MultipleInheritanceKeyFile));
     _settings    = settings;
     Addons       = new Methods.Addons(this);
     Application  = new Methods.Application(this);
     AudioLibrary = new Methods.AudioLibrary(this);
     Files        = new Methods.Files(this);
     GUI          = new Methods.GUI(this);
     Input        = new Methods.Input(this);
     JSONRPC      = new Methods.JSONRPC(this);
     Player       = new Methods.Player(this);
     Playlist     = new Methods.Playlist(this);
     PVR          = new Methods.PVR(this);
     System       = new Methods.System(this);
     VideoLibrary = new Methods.VideoLibrary(this);
     XBMC         = new Methods.XBMC(this);
 }
 public Client(ConnectionSettings settings, IPlatformServices platformServices)
 {
     PlatformServices = platformServices;
     Serializer       = new JsonSerializer();
     Serializer.Converters.Add(new StringEnumConverter());
     _settings    = settings;
     Addons       = new Methods.Addons(this);
     Application  = new Methods.Application(this);
     AudioLibrary = new Methods.AudioLibrary(this);
     Favourites   = new Methods.Favourites(this);
     Files        = new Methods.Files(this);
     GUI          = new Methods.GUI(this);
     Input        = new Methods.Input(this);
     JSONRPC      = new Methods.JSONRPC(this);
     Player       = new Methods.Player(this);
     Playlist     = new Methods.Playlist(this);
     Profiles     = new Methods.Profiles(this);
     PVR          = new Methods.PVR(this);
     Settings     = new Methods.Settings(this);
     System       = new Methods.System(this);
     Textures     = new Methods.Textures(this);
     VideoLibrary = new Methods.VideoLibrary(this);
     XBMC         = new Methods.XBMC(this);
 }