Class SteamQrPollOutcome
The result of one poll of a QR sign-in session.
Inheritance
SteamQrPollOutcome
Assembly: Serenity.Steam.Application.dll
Syntax
public sealed class SteamQrPollOutcome
Properties
AccountName
Declaration
public string AccountName { get; }
Property Value
| Type |
Description |
| string |
The signed-in account's name; set only for Approved.
|
Challenge
Declaration
public SteamQrChallenge Challenge { get; }
Property Value
FailureReason
Declaration
public string FailureReason { get; }
Property Value
| Type |
Description |
| string |
Why the poll failed or the session was lost; empty otherwise.
|
IsTransient
Declaration
public bool IsTransient { get; }
Property Value
| Type |
Description |
| bool |
Whether repeating the poll after a pause is worth it; only ever true for Failed.
|
RefreshToken
Declaration
public string RefreshToken { get; }
Property Value
| Type |
Description |
| string |
The token that proves the sign-in; set only for Approved.
|
Status
Declaration
public SteamQrPollStatus Status { get; }
Property Value
Methods
Approved(SteamQrChallenge, string, string)
Creates the outcome for the Approved status.
Declaration
public static SteamQrPollOutcome Approved(SteamQrChallenge polled, string refreshToken, string accountName)
Parameters
Returns
Failed(SteamQrChallenge, bool, string)
Creates the outcome for the Failed status.
Declaration
public static SteamQrPollOutcome Failed(SteamQrChallenge polled, bool isTransient, string reason)
Parameters
Returns
NewChallenge(SteamQrChallenge)
Creates the outcome for the NewChallenge status.
Declaration
public static SteamQrPollOutcome NewChallenge(SteamQrChallenge rotated)
Parameters
Returns
Pending(SteamQrChallenge)
Creates the outcome for the Pending status.
Declaration
public static SteamQrPollOutcome Pending(SteamQrChallenge polled)
Parameters
Returns
Scanned(SteamQrChallenge)
Creates the outcome for the Scanned status.
Declaration
public static SteamQrPollOutcome Scanned(SteamQrChallenge polled)
Parameters
Returns
SessionLost(SteamQrChallenge, string)
Creates the outcome for the SessionLost status.
Declaration
public static SteamQrPollOutcome SessionLost(SteamQrChallenge polled, string reason)
Parameters
Returns
ToString()
Declaration
public override string ToString()
Returns
Overrides