public static bool HasPages(String bookID) { if (!String.IsNullOrEmpty(URL.ServerURL)) { object record = PersistantObjectsStorage.GetValue(mainKey + URL.ServerURL + bookKey + bookID + chapterKey + pageKey); if (record != null) { return(true); } } return(false); }
public static List <Book> GetBooks() { if (!String.IsNullOrEmpty(URL.ServerURL)) { object record = PersistantObjectsStorage.GetValue(mainKey + URL.ServerURL + bookKey); if (record != null) { return((List <Book>)record); } } return(null); }
public static List <Page> GetPages(String bookID) { if (!String.IsNullOrEmpty(URL.ServerURL)) { object record = PersistantObjectsStorage.GetValue(mainKey + URL.ServerURL + bookKey + bookID + chapterKey + pageKey); if (record != null) { return((List <Page>)record); } } return(null); }
private Dictionary <String, T> LoadTable(String tableId) { // NOTE: This method abstracts away just how and where we store the table. Dictionary <String, T> table = null; String key = BuildTableKey(tableId); object valueRaw = PersistantObjectsStorage.GetValue(key); if (valueRaw == null) { table = new Dictionary <String, T>(); } else { table = (Dictionary <String, T>)valueRaw; } return(table); }