Ditto  1.1.3
Public Member Functions | Properties | List of all members
DittoSDK.DittoAuthenticationStatus Struct Reference

Provides info about the authentication status. More...

Public Member Functions

 DittoAuthenticationStatus (bool isAuthenticated, string? userID)
 Initializes a new instance of the DittoAuthenticationStatus struct with the given parameters. More...
 
override bool Equals (object obj)
 Returns true if passed object is an instance of DittoAuthenticationStatus and equal to the receiver. Otherwise returns false. More...
 
override int GetHashCode ()
 Returns the hash for the receiver. More...
 

Properties

bool IsAuthenticated [get]
 Gets a value indicating whether the Ditto instance is authenticated. More...
 
string? UserID [get]
 If authenticated, returns the user ID if one was provided by the authentication service. Otherwise returns null. More...
 

Detailed Description

Provides info about the authentication status.

Constructor & Destructor Documentation

◆ DittoAuthenticationStatus()

DittoSDK.DittoAuthenticationStatus.DittoAuthenticationStatus ( bool  isAuthenticated,
string?  userID 
)
inline

Initializes a new instance of the DittoAuthenticationStatus struct with the given parameters.

Member Function Documentation

◆ Equals()

override bool DittoSDK.DittoAuthenticationStatus.Equals ( object  obj)
inline

Returns true if passed object is an instance of DittoAuthenticationStatus and equal to the receiver. Otherwise returns false.

◆ GetHashCode()

override int DittoSDK.DittoAuthenticationStatus.GetHashCode ( )
inline

Returns the hash for the receiver.

Property Documentation

◆ IsAuthenticated

bool DittoSDK.DittoAuthenticationStatus.IsAuthenticated
get

Gets a value indicating whether the Ditto instance is authenticated.

◆ UserID

string? DittoSDK.DittoAuthenticationStatus.UserID
get

If authenticated, returns the user ID if one was provided by the authentication service. Otherwise returns null.