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
Afficher le fichier Open project: MarkVSullivan/SobekCM-Web-Application

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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 méthode

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
Résultat System

Write_Html() public méthode

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
Résultat void

display_item_info() protected méthode

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
Résultat void

display_search_results() protected méthode

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
Résultat void