Class SuccessResponse

Assembly: redb.Identity.Contracts.dll

The answer of a management operation that has nothing to return but its outcome, such as a deletion:
{"success":true}. Operations that also end sessions or revoke consents add the count; a member
that does not apply is left out of the JSON, not written as null.

public sealed class SuccessResponse

Inheritance

Object→SuccessResponse

Properties

AlreadyAbsent

true when the thing to delete was already gone, which the self-service deletion treats as done.

[JsonPropertyName("alreadyAbsent")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public bool? AlreadyAbsent { get; init; }

Revoked

Consents revoked by the operation.

[JsonPropertyName("revoked")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public int? Revoked { get; init; }

SessionsRevoked

Sessions of the user ended by the operation (user deletion, administrative password reset).

[JsonPropertyName("sessionsRevoked")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public int? SessionsRevoked { get; init; }

Success

Always true: a refusal answers with instead.

[JsonPropertyName("success")]
public bool Success { get; init; }