C# Class Bloom.Book.BookMetaData

This just wraps the stuff we put in the json file. It is tempting to just serialize/deserialize the BookInfo itself. However, that would require us to refactor all the code that creates BookInfos, since it expects to use a constructor taking a pathname, while the Json code expects to create the object for us out of the pathname. Also, separating them like this means we don't have to be careful to mark things we don't want in the json.
Show file Open project: BloomBooks/BloomDesktop Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
BookMetaData ( ) : System
FromFolder ( string bookFolderPath ) : BookMetaData
FromString ( string input ) : BookMetaData
MetaDataPath ( string bookFolderPath ) : string
SetUploader ( string id ) : void
WriteToFolder ( string bookFolderPath ) : void

Method Details

BookMetaData() public method

public BookMetaData ( ) : System
return System

FromFolder() public static method

public static FromFolder ( string bookFolderPath ) : BookMetaData
bookFolderPath string
return BookMetaData

FromString() public static method

public static FromString ( string input ) : BookMetaData
input string
return BookMetaData

MetaDataPath() public static method

public static MetaDataPath ( string bookFolderPath ) : string
bookFolderPath string
return string

SetUploader() public method

public SetUploader ( string id ) : void
id string
return void

WriteToFolder() public method

public WriteToFolder ( string bookFolderPath ) : void
bookFolderPath string
return void