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.
Afficher le fichier Open project: BloomBooks/BloomDesktop Class Usage Examples

Private Properties

Свойство Type Description

Méthodes publiques

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

public BookMetaData ( ) : System
Résultat System

FromFolder() public static méthode

public static FromFolder ( string bookFolderPath ) : BookMetaData
bookFolderPath string
Résultat BookMetaData

FromString() public static méthode

public static FromString ( string input ) : BookMetaData
input string
Résultat BookMetaData

MetaDataPath() public static méthode

public static MetaDataPath ( string bookFolderPath ) : string
bookFolderPath string
Résultat string

SetUploader() public méthode

public SetUploader ( string id ) : void
id string
Résultat void

WriteToFolder() public méthode

public WriteToFolder ( string bookFolderPath ) : void
bookFolderPath string
Résultat void