Ditto 3.0.6
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...
 
bool Equals (DittoAuthenticationStatus other)
 Evaluates equality of instances of DittoAuthenticationStatus. 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.
 
string? UserId [get]
 Gets the user identifier if one was provided by the authentication service. Otherwise returns null.
 

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.

Parameters
isAuthenticatedWhether the ditto instance is authenticated.
userIdUser identifier, if available

Member Function Documentation

◆ Equals() [1/2]

bool DittoSDK.DittoAuthenticationStatus.Equals ( DittoAuthenticationStatus  other)
inline

Evaluates equality of instances of DittoAuthenticationStatus.

Returns
true when objects are equal; false otherwise.

◆ Equals() [2/2]

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.

Returns
true when objects are equal; false otherwise.

◆ GetHashCode()

override int DittoSDK.DittoAuthenticationStatus.GetHashCode ( )
inline

Returns the hash for the receiver.

Returns
The hash for the receiver.