Combu  2.1.14
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 custom data. 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

Combu.Profile.Profile ( string  jsonString)

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

Parameters
jsonStringJSON formatted string.
Combu.Profile.Profile ( Hashtable  hash)

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

Parameters
hashHash.

Member Function Documentation

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

Initialize the object from a hashtable.

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

Initialize the object from a JSON formatted string.

Parameters
jsonStringJson string.

Member Data Documentation

Hashtable Combu.Profile.customData = new Hashtable()

The custom data.

string Combu.Profile.email

The email address.

Property Documentation

string Combu.Profile.id
get

Gets the identifier value as string.

The identifier.

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.

Texture2D Combu.Profile.image
getset

Gets or sets the image.

The image.

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.

System.DateTime Combu.Profile.lastSeen
get

Gets the last seen date/time.

The last seen.

string Combu.Profile.sessionToken
get

Gets the session token.

The session token.

virtual UserState Combu.Profile.state
get

Gets the online state.

The state.

string Combu.Profile.userName
getset

Gets or sets the name of the user.

The name of the user.


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