PowerUI.DomainData Class Reference

Detailed Description

Holds e.g. cookies and the index of cached files for a given domain name. Stored permanently when possible.

Public Member Functions

 DomainData (string domain)
 
void LoadFromJson (string data)
 Loads the domain data from the given JSON string. More...
 
void Save ()
 Writes out this domain data to player prefs. More...
 
string ToJSONString ()
 Gets this cache info as a JSON string. Returns null if it's empty. More...
 
JSObject ToJson ()
 Gets this cache info as a JSON object. Returns null if it's empty. More...
 

Public Attributes

string Host
 The domain that this data is for. More...
 
CookieJar Cookies
 Cookies for this domain. More...
 
CachedContentSet Content
 The content of this domain. More...
 

Properties

bool IsEmpty [get]
 True if this data is empty. More...
 

Constructor & Destructor Documentation

PowerUI.DomainData.DomainData ( string  domain)
inline

Member Function Documentation

void PowerUI.DomainData.LoadFromJson ( string  data)
inline

Loads the domain data from the given JSON string.

void PowerUI.DomainData.Save ( )
inline

Writes out this domain data to player prefs.

JSObject PowerUI.DomainData.ToJson ( )
inline

Gets this cache info as a JSON object. Returns null if it's empty.

string PowerUI.DomainData.ToJSONString ( )
inline

Gets this cache info as a JSON string. Returns null if it's empty.

Member Data Documentation

CachedContentSet PowerUI.DomainData.Content

The content of this domain.

CookieJar PowerUI.DomainData.Cookies

Cookies for this domain.

string PowerUI.DomainData.Host

The domain that this data is for.

Property Documentation

bool PowerUI.DomainData.IsEmpty
get

True if this data is empty.