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

Feedback() public method

public Feedback ( FeedbackRatingType ratingType, string comment ) : void
ratingType FeedbackRatingType
comment string
return void
        public void Feedback(FeedbackRatingType ratingType, string comment)
        {
            this.addTime();

            this.iDeviceService.Log
                (
                    new Feedback()
                    {
                        ApplicationId = applicationId,
                        DeviceId = deviceId,
                        Message = comment,
                        Rating = ratingType,
                        ScreenName = this.lastScreen,
                        SessionId = sessionId,
                        DateCreatedOnDevice = timeWhenUsed,
                        Version = version,
                        Date = this.timeWhenUsed.Date,
                        DateCreated = this.timeWhenUsed
                    }
                );
        }

Usage Example

        static void route_normal_journey_feedback(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.ScreenMainActionSearch();
            appSession.NavigateToSearching(getValue <long>(appScreenTimeUsed));
            appSession.NavigateToResults(getValue <long>(appScreenTimeUsed));
            appSession.ScreenResultActionViewProfile();
            appSession.NavigateToProfile(getValue <long>(appScreenTimeUsed));
            appSession.Feedback(getValue <FeedbackRatingType>(Ratings), getValue <string>(feedbackMessage));
            appSession.Close(getValue <long>(appTimeUsed));
        }