C# Класс 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.
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание

Открытые методы

Метод Описание
BookMetaData ( ) : System
FromFolder ( string bookFolderPath ) : BookMetaData
FromString ( string input ) : BookMetaData
MetaDataPath ( string bookFolderPath ) : string
SetUploader ( string id ) : void
WriteToFolder ( string bookFolderPath ) : void

Описание методов

BookMetaData() публичный Метод

public BookMetaData ( ) : System
Результат System

FromFolder() публичный статический Метод

public static FromFolder ( string bookFolderPath ) : BookMetaData
bookFolderPath string
Результат BookMetaData

FromString() публичный статический Метод

public static FromString ( string input ) : BookMetaData
input string
Результат BookMetaData

MetaDataPath() публичный статический Метод

public static MetaDataPath ( string bookFolderPath ) : string
bookFolderPath string
Результат string

SetUploader() публичный Метод

public SetUploader ( string id ) : void
id string
Результат void

WriteToFolder() публичный Метод

public WriteToFolder ( string bookFolderPath ) : void
bookFolderPath string
Результат void