Persistence: Remove implementation specific usage.
This commit is contained in:
@@ -101,7 +101,7 @@ namespace VAR.Focus.Web.Code.BusinessLogic
|
||||
|
||||
#region Persistence
|
||||
|
||||
private const string BoardsPersistenceFile = "priv/boards.json";
|
||||
private const string BoardsPersistenceFile = "boards";
|
||||
|
||||
private void LoadData()
|
||||
{
|
||||
|
||||
@@ -245,8 +245,8 @@ namespace VAR.Focus.Web.Code.BusinessLogic
|
||||
|
||||
#region Persistence
|
||||
|
||||
private const string CardsPersistenceFile = "priv/cardBoard.{0}.json";
|
||||
private const string EventsPersistenceFile = "priv/cardEvents.{0}.json";
|
||||
private const string CardsPersistenceFile = "cardBoard.{0}";
|
||||
private const string EventsPersistenceFile = "cardEvents.{0}";
|
||||
|
||||
private void LoadData()
|
||||
{
|
||||
|
||||
@@ -63,7 +63,7 @@ namespace VAR.Focus.Web.Code.BusinessLogic
|
||||
|
||||
#region Persistence
|
||||
|
||||
private const string PersistenceFile = "priv/messageBoard.{0}.json";
|
||||
private const string PersistenceFile = "messageBoard.{0}";
|
||||
|
||||
private void LoadData()
|
||||
{
|
||||
|
||||
@@ -43,7 +43,7 @@ namespace VAR.Focus.Web.Code.BusinessLogic
|
||||
parser.KnownTypes.Add(type);
|
||||
}
|
||||
}
|
||||
string filePath = GetLocalPath(file);
|
||||
string filePath = GetLocalPath(string.Format("priv/{0}.json", file));
|
||||
if (File.Exists(filePath) == false) { return listResult; }
|
||||
|
||||
string strJsonUsers = File.ReadAllText(filePath);
|
||||
@@ -66,7 +66,8 @@ namespace VAR.Focus.Web.Code.BusinessLogic
|
||||
{
|
||||
JSONWriter writter = new JSONWriter(true);
|
||||
string strJsonUsers = writter.Write(data);
|
||||
File.WriteAllText(GetLocalPath(file), strJsonUsers);
|
||||
string filePath = GetLocalPath(string.Format("priv/{0}.json", file));
|
||||
File.WriteAllText(filePath, strJsonUsers);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -130,7 +130,7 @@ namespace VAR.Focus.Web.Code.BusinessLogic
|
||||
|
||||
#region Persistence
|
||||
|
||||
private const string PersistenceFile = "priv/sessions.json";
|
||||
private const string PersistenceFile = "sessions";
|
||||
|
||||
private void LoadData()
|
||||
{
|
||||
|
||||
@@ -127,7 +127,7 @@ namespace VAR.Focus.Web.Code.BusinessLogic
|
||||
|
||||
#region Persistence
|
||||
|
||||
private const string PersistenceFile = "priv/users.json";
|
||||
private const string PersistenceFile = "users";
|
||||
|
||||
private void LoadData()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user