aerogear-xamarin-sdk
AeroGear Xamarin SDK
AeroGear.Mobile.Auth.UserRole Class Reference

Represents a user's keycloak roles information. More...

Public Member Functions

 UserRole (string name, RoleType type, string roleNamespace)
 Initializes a new instance of the T:Aerogear.Mobile.Auth.UserRole class. More...
 
string getNamespace ()
 Get's the namespace/client ID of the role. More...
 
override string ToString ()
 Returns a T:System.String that represents the current T:Auth.Aerogear.Mobile.Auth.UserRole. More...
 
override int GetHashCode ()
 Serves as a hash function for a T:Auth.Aerogear.Mobile.Auth.UserRole object. More...
 
override bool Equals (object obj)
 Determines whether the specified object is equal to the current T:Auth.Aerogear.Mobile.Auth.UserRole. More...
 

Properties

string Name [get]
 Role name. Can't be null. More...
 

Detailed Description

Represents a user's keycloak roles information.

Constructor & Destructor Documentation

◆ UserRole()

AeroGear.Mobile.Auth.UserRole.UserRole ( string  name,
RoleType  type,
string  roleNamespace 
)

Initializes a new instance of the T:Aerogear.Mobile.Auth.UserRole class.

Parameters
nameRole Name.
typeRole Type.
roleNamespaceRole name space/client ID.

Member Function Documentation

◆ Equals()

override bool AeroGear.Mobile.Auth.UserRole.Equals ( object  obj)

Determines whether the specified object is equal to the current T:Auth.Aerogear.Mobile.Auth.UserRole.

Parameters
objThe object to compare with the current T:Auth.Aerogear.Mobile.Auth.UserRole.
Returns
true if the specified object is equal to the current T:Auth.Aerogear.Mobile.Auth.UserRole; otherwise, false.

◆ GetHashCode()

override int AeroGear.Mobile.Auth.UserRole.GetHashCode ( )

Serves as a hash function for a T:Auth.Aerogear.Mobile.Auth.UserRole object.

Returns
A hash code for this instance that is suitable for use in hashing algorithms and data structures such as a hash table.

◆ getNamespace()

string AeroGear.Mobile.Auth.UserRole.getNamespace ( )

Get's the namespace/client ID of the role.

Returns
The namespace/client ID.

◆ ToString()

override string AeroGear.Mobile.Auth.UserRole.ToString ( )

Returns a T:System.String that represents the current T:Auth.Aerogear.Mobile.Auth.UserRole.

Returns
A T:System.String that represents the current T:Auth.Aerogear.Mobile.Auth.UserRole.

Property Documentation

◆ Name

string AeroGear.Mobile.Auth.UserRole.Name
get

Role name. Can't be null.


The documentation for this class was generated from the following file: