public void Error(string errorMessage, string action, long flashSize, long memSize, int battery)
{
this.addTime();
this.iDeviceService.Log
(
new Error()
{
ApplicationId = applicationId,
DeviceId = deviceId,
EventName = action,
AvailableFlashDriveSize = flashSize,
AvailableMemorySize = memSize,
Battery = battery,
Message = errorMessage,
ScreenName = this.lastScreen,
SessionId = sessionId,
DateCreatedOnDevice = this.timeWhenUsed,
Version = version,
Date = this.timeWhenUsed.Date,
DateCreated = this.timeWhenUsed
}
);
}