C# Class SobekCM.Library.MainWriters.Json_MainWriter

Main writer writes search results, item browses, and item information in Java Simple Object Notation for interfacing with the iPhone mobile applications
This class extends the abstract class abstractMainWriter.
Inheritance: SobekCM.Library.MainWriters.abstractMainWriter
ファイルを表示 Open project: MarkVSullivan/SobekCM-Web-Application

Public Methods

Method Description
Json_MainWriter ( RequestCache RequestSpecificValues, string Current_Image_Root ) : System

Constructor for a new instance of the Json_MainWriter class

Write_Html ( TextWriter Output, Custom_Tracer Tracer ) : void

Perform all the work of adding text directly to the response stream back to the web user

Protected Methods

Method Description
display_item_info ( TextWriter Output ) : void

Writes the item information in JSON format directly to the output stream

display_search_results ( TextWriter Output, SobekCM.Library.Application_State.Item_Lookup_Object All_Items_Lookup ) : void

Writes the search or browse information in JSON format directly to the output stream

Method Details

Json_MainWriter() public method

Constructor for a new instance of the Json_MainWriter class
public Json_MainWriter ( RequestCache RequestSpecificValues, string Current_Image_Root ) : System
RequestSpecificValues RequestCache All the necessary, non-global data specific to the current request
Current_Image_Root string Current root directory to pull images and metadata for digital resources
return System

Write_Html() public method

Perform all the work of adding text directly to the response stream back to the web user
public Write_Html ( TextWriter Output, Custom_Tracer Tracer ) : void
Output System.IO.TextWriter Stream to which to write the text for this main writer
Tracer Custom_Tracer Trace object keeps a list of each method executed and important milestones in rendering
return void

display_item_info() protected method

Writes the item information in JSON format directly to the output stream
protected display_item_info ( TextWriter Output ) : void
Output System.IO.TextWriter Stream to which to write the JSON item information
return void

display_search_results() protected method

Writes the search or browse information in JSON format directly to the output stream
protected display_search_results ( TextWriter Output, SobekCM.Library.Application_State.Item_Lookup_Object All_Items_Lookup ) : void
Output System.IO.TextWriter Stream to which to write the JSON search or browse information
All_Items_Lookup SobekCM.Library.Application_State.Item_Lookup_Object Lookup object used to pull basic information about any item loaded into this library
return void