C# Class Bloom.Api.CurrentBookHandler

This class is responsible for handling Server requests that depend on knowledge of the current book. An exception is some reader tools requests, which have their own handler, though most of them depend on knowing the current book.
Show file Open project: BloomBooks/BloomDesktop

Public Methods

Method Description
CurrentBookHandler ( BookSelection bookSelection, PageRefreshEvent pageRefreshEvent ) : System
RegisterWithServer ( EnhancedImageServer server ) : void

Private Methods

Method Description
HandleBookSettings ( ApiRequest request ) : void

Get a json of the book's settings.

HandleImageInfo ( ApiRequest request ) : void

Get a json of stats about the image. It is used to populate a tooltip when you hover over an image container

Method Details

CurrentBookHandler() public method

public CurrentBookHandler ( BookSelection bookSelection, PageRefreshEvent pageRefreshEvent ) : System
bookSelection Bloom.Book.BookSelection
pageRefreshEvent PageRefreshEvent
return System

RegisterWithServer() public method

public RegisterWithServer ( EnhancedImageServer server ) : void
server EnhancedImageServer
return void