AppActs.API.DataUploader.AppSession.Error C# (CSharp) Method

Error() public method

public Error ( string errorMessage, string action, long flashSize, long memSize, int battery ) : void
errorMessage string
action string
flashSize long
memSize long
battery int
return void
        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
                    }
                );
        }

Usage Example

Ejemplo n.º 1
0
        static void route_settings_search_error(Device device, DateTime timeWhenUsed, string version)
        {
            AppSession appSession = new AppSession(device.DeviceId, appId, timeWhenUsed, version, deviceService);

            appSession.Open();
            appSession.NavigateToSplash();
            appSession.NavigateToMain(getValue <long>(appScreenTimeUsed));
            appSession.NavigateToSettings(getValue <long>(appScreenTimeUsed));
            appSession.NavigateToSearching(getValue <long>(appScreenTimeUsed));
            appSession.Error("Unexcepted exception", "Searching", 292838833, 20201111, 22);
            appSession.Close(getValue <long>(appTimeUsed));
        }