fixes the bookquery entity

main
Paul Schneider 9 years ago
parent e85821ce66
commit 4df65c5cec
1 changed files with 12 additions and 5 deletions

@ -12,17 +12,24 @@ namespace BookAStar
public class DataManager public class DataManager
{ {
// TODO userinfo estimatetemplate rating service product tag
public RemoteEntity<BookQueryData, long> BookQueries { get; set; } public RemoteEntity<BookQueryData, long> BookQueries { get; set; }
public RemoteEntity<Estimate, long> Estimates { get; set; } public RemoteEntity<Estimate, long> Estimates { get; set; }
public RemoteEntity<Blog, long> Blogspot { get; set; } public RemoteEntity<Blog, long> Blogspot { get; set; }
public static DataManager Current
{
get
{
return App.CurrentApp.DataManager;
}
}
public DataManager() public DataManager()
{ {
BookQueries = new RemoteEntity<BookQueryData, long>("bookqueries", BookQueries = new RemoteEntity<BookQueryData, long>("bookquery",
q => q.CommandId); q => q.Id);
Estimates = new RemoteEntity<Estimate, long>("estimates", Estimates = new RemoteEntity<Estimate, long>("estimate",
x => x.Id); x => x.Id);
Blogspot = new RemoteEntity<Blog, long>("blogspot", Blogspot = new RemoteEntity<Blog, long>("blog",
x=>x.Id); x=>x.Id);
} }
public async Task<BookQueryData> GetBookQuery(long bookQueryId) public async Task<BookQueryData> GetBookQuery(long bookQueryId)

Loading…