.NETAPI reference
Surveys
Surveys in the .NET SDK.
SurveysResource
classclass Inverge.Nexus.Resources.SurveysResourceIn-product surveys — headless: Nexus targets and stores, you render.
ActiveAsync()
methodTask<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()
methodTask<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()
methodTask<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()
methodTask<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>
