Combu  3.2.2
Unity API Documentation
Public Member Functions | Public Attributes | Protected Attributes | Properties | List of all members
Combu.Profile Class Reference
Inheritance diagram for Combu.Profile:
Combu.User

Public Member Functions

 Profile (string jsonString)
 Initializes a new instance of the CBUser class from a JSON formatted string. More...
 
 Profile (Hashtable hash)
 Initializes a new instance of the CBUser class from a Hashtable. More...
 
virtual void FromJson (string jsonString)
 Initialize the object from a JSON formatted string. More...
 
virtual void FromHashtable (Hashtable hash)
 Initialize the object from a hashtable. More...
 

Public Attributes

string email
 The email address. More...
 
Hashtable customData = new Hashtable()
 The global custom data shared between apps. More...
 
Hashtable appCustomData = new Hashtable()
 The custom data for the current app scope. More...
 

Protected Attributes

long _id = 0
 
string _userName = ""
 
Texture2D _image
 
string _sessionToken = ""
 
System.? DateTime _lastSeen
 

Properties

List< ProfilePlatformplatforms [get]
 
string id [get]
 Gets the identifier value as string. More...
 
long idLong [get]
 Gets the identifier value as long. id is just a ToString() of idLong, since Ids are stored as long in the database. More...
 
string userName [get, set]
 Gets or sets the name of the user. More...
 
bool isFriend [get]
 Gets a value indicating whether this Combu.Profile is a friend of the local user. More...
 
virtual UserState state [get]
 Gets the online state. More...
 
Texture2D image [get, set]
 Gets or sets the image. More...
 
string sessionToken [get]
 Gets the session token. More...
 
System.? DateTime lastSeen [get]
 Gets the last seen date/time. More...
 

Constructor & Destructor Documentation

◆ Profile() [1/2]

Combu.Profile.Profile ( string  jsonString)

Initializes a new instance of the CBUser class from a JSON formatted string.

Parameters
jsonStringJSON formatted string.

◆ Profile() [2/2]

Combu.Profile.Profile ( Hashtable  hash)

Initializes a new instance of the CBUser class from a Hashtable.

Parameters
hashHash.

Member Function Documentation

◆ FromHashtable()

virtual void Combu.Profile.FromHashtable ( Hashtable  hash)
virtual

Initialize the object from a hashtable.

Parameters
hashHash.

◆ FromJson()

virtual void Combu.Profile.FromJson ( string  jsonString)
virtual

Initialize the object from a JSON formatted string.

Parameters
jsonStringJson string.

Member Data Documentation

◆ appCustomData

Hashtable Combu.Profile.appCustomData = new Hashtable()

The custom data for the current app scope.

◆ customData

Hashtable Combu.Profile.customData = new Hashtable()

The global custom data shared between apps.

◆ email

string Combu.Profile.email

The email address.

Property Documentation

◆ id

string Combu.Profile.id
get

Gets the identifier value as string.

The identifier.

◆ idLong

long Combu.Profile.idLong
get

Gets the identifier value as long. id is just a ToString() of idLong, since Ids are stored as long in the database.

The identifier long.

◆ image

Texture2D Combu.Profile.image
getset

Gets or sets the image.

The image.

◆ isFriend

bool Combu.Profile.isFriend
get

Gets a value indicating whether this Combu.Profile is a friend of the local user.

true if is friend; otherwise, false.

◆ lastSeen

System.? DateTime Combu.Profile.lastSeen
get

Gets the last seen date/time.

The last seen.

◆ sessionToken

string Combu.Profile.sessionToken
get

Gets the session token.

The session token.

◆ state

virtual UserState Combu.Profile.state
get

Gets the online state.

The state.

◆ userName

string Combu.Profile.userName
getset

Gets or sets the name of the user.

The name of the user.