|
|
|
@ -8,11 +8,13 @@
|
|
|
|
|
using NonCrUD;
|
|
|
|
|
using ViewModels;
|
|
|
|
|
using Model.Access;
|
|
|
|
|
using Model.Social.Chat;
|
|
|
|
|
|
|
|
|
|
public class DataManager
|
|
|
|
|
{
|
|
|
|
|
// TODO estimatetemplate rating service product tag
|
|
|
|
|
public RemoteEntityRO<BookQueryData, long> BookQueries { get; set; }
|
|
|
|
|
public RemoteEntityRO<ChatUserInfo, long> ChatUsers { get; set; }
|
|
|
|
|
public EstimateEntity Estimates { get; set; }
|
|
|
|
|
public RemoteEntity<Blog, long> Blogspot { get; set; }
|
|
|
|
|
internal RemoteFilesEntity RemoteFiles { get; set; }
|
|
|
|
@ -49,7 +51,9 @@
|
|
|
|
|
EstimateLinesTemplates = new LocalEntity<BillingLine, string>(l => l.Description);
|
|
|
|
|
PrivateMessages = new LocalEntity<ChatMessage, int>(m=> m.GetHashCode());
|
|
|
|
|
RemoteFiles = new RemoteFilesEntity ();
|
|
|
|
|
|
|
|
|
|
BlackList = new RemoteEntity<BlackListed, long>("blacklist",u => u.Id);
|
|
|
|
|
ChatUsers = new RemoteEntityRO<ChatUserInfo, long>
|
|
|
|
|
("chat/users", u => u.UserId);
|
|
|
|
|
PrivateMessages.Load();
|
|
|
|
|
BookQueries.Load();
|
|
|
|
|
Estimates.Load();
|
|
|
|
@ -59,6 +63,7 @@
|
|
|
|
|
EstimationCache.Load();
|
|
|
|
|
EstimateLinesTemplates.Load();
|
|
|
|
|
RemoteFiles.Load();
|
|
|
|
|
BlackList.Load();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|