InvergeDocs
.NETAPI reference

Surveys

Surveys in the .NET SDK.

SurveysResource

class
class Inverge.Nexus.Resources.SurveysResource

In-product surveys — headless: Nexus targets and stores, you render.

ActiveAsync()

method
Task<IReadOnlyList<JsonNode>> ActiveAsync(object? properties = null, string? deviceType = null, NexusTelemetryContext? context = null, CancellationToken cancellationToken = default)

The surveys this person is currently eligible for, with targeting, sampling and frequency capping already applied.

Parameters

Prop

Type

Returns Task<IReadOnlyList<JsonNode>>

CompleteAsync()

method
Task<SurveyResponseResult> CompleteAsync(string surveyId, object answers, string? responseId = null, string? iterationKey = null, NexusTelemetryContext? context = null, CancellationToken cancellationToken = default)

Submits a completed response in one call.

Parameters

Prop

Type

Returns Task<SurveyResponseResult>

DismissAsync()

method
Task<SurveyResponseResult> DismissAsync(string surveyId, string? responseId = null, string? iterationKey = null, NexusTelemetryContext? context = null, CancellationToken cancellationToken = default)

Records that the person dismissed the survey.

Worth sending: a dismissal feeds frequency capping, so skipping it means the same survey keeps being offered to someone who has already said no.

Parameters

Prop

Type

Returns Task<SurveyResponseResult>

RespondAsync()

method
Task<SurveyResponseResult> RespondAsync(string surveyId, object? answers = null, bool? completed = null, bool? dismissed = null, string? responseId = null, string? iterationKey = null, NexusTelemetryContext? context = null, CancellationToken cancellationToken = default)

Submits a response, partial or complete.

Parameters

Prop

Type

Returns Task<SurveyResponseResult>

On this page