public void LogInfo(string session, InfoEvent infoEvent, string parametersString = "") { if (AppManager.I.DB == null) { Debug.Log("No DB to log to. Player profile is probably not set"); return; } var data = new LogInfoData(session, infoEvent, parametersString); db.Insert(data); }
public void LogInfo(int appSession, InfoEvent infoEvent, string parametersString = "") { if (!AppManager.I.DB.HasLoadedPlayerProfile()) { Debug.Log("No player profile DB to log to. Player profile is probably not set"); return; } var data = new LogInfoData(appSession, infoEvent, AppManager.I.NavigationManager.GetCurrentScene(), parametersString); db.Insert(data); }
public void TestInsertLogInfoData() { var newData = new LogInfoData(); newData.AppSession = GenericHelper.GetTimestampForNow(); newData.Timestamp = GenericHelper.GetTimestampForNow(); newData.Event = InfoEvent.Book; newData.AdditionalData = "test:1"; this.dbManager.Insert(newData); PrintOutput("Inserted new LogInfoData: " + newData.ToString()); }
public void TestInsertLogInfoData() { var newData = new LogInfoData(); newData.Session = UnityEngine.Random.Range(0, 10).ToString(); newData.Timestamp = GenericUtilities.GetTimestampForNow(); newData.Event = InfoEvent.Book; newData.Parameters = "test:1"; this.dbManager.Insert(newData); PrintOutput("Inserted new LogInfoData: " + newData.ToString()); }
public void InsertDynamicDB() { var dbManager = new DatabaseManager(); dbManager.LoadDatabaseForPlayer("TEST"); var newLogInfoData = new LogInfoData(); newLogInfoData.AppSession = GenericHelper.GetTimestampForNow(); newLogInfoData.Timestamp = GenericHelper.GetTimestampForNow(); newLogInfoData.Event = InfoEvent.Book; newLogInfoData.AdditionalData = "test:1"; dbManager.Insert(newLogInfoData); }
public static LogInfo ToModel(this LogInfoData node) { return(new LogInfo() { Id = node.Id, MeterId = node.MeterId, GroupId = node.GroupId, ActionId = node.ActionId, UpdatingTime = node.UpdatingTime, IsSuccess = node.IsSuccess, OperatorId = node.OperatorId, OperatorName = node.OperatorName, ConfigName = node.ConfigName, }); }