예제 #1
0
 public ChannelContentProvider(WebServer server, TTVProxyDevice device)
 {
     server.AddRouteUrl(ChannelContentProvider.PLAYLIST_PATH, new Action<MyWebRequest>(((ContentProvider)this).SendResponse), HttpMethod.Get);
     server.AddRouteUrl(ChannelContentProvider.PLAY_PATH, new Action<MyWebRequest>(((ContentProvider)this).Play), HttpMethod.Get);
     server.AddRouteUrl(ChannelContentProvider.FAVOURITE_ADD, new Action<MyWebRequest>(this.AddFavouriteRequest), HttpMethod.Get);
     server.AddRouteUrl(ChannelContentProvider.FAVOURITE_DEL, new Action<MyWebRequest>(this.DelFavouriteRequest), HttpMethod.Get);
     server.AddRouteUrl(ChannelContentProvider.SCREEN_PATH, new Action<MyWebRequest>(this.ScreenRequest), HttpMethod.Get);
     this._device = device;
 }
예제 #2
0
 public TTVProxyDevice(WebServer webServer, TtvProxy proxy)
 {
     webServer.AddRouteUrl("/login", new Action<MyWebRequest>(this.LoginRequest), HttpMethod.Get);
     this.Web = webServer;
     this.Proxy = proxy;
 }