Hydrogen Framework  1.3.1
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events
hWebPool Class Reference

A drop in implementation of the Hydrogen.Core.WebPool. This simply makes the class an accessible singleton with some very simple additional functionality. More...

+ Inheritance diagram for hWebPool:

Static Public Member Functions

static bool Exists ()
 Does a Web Pool already exist? More...
 

Public Attributes

bool Persistent = true
 Should this web pool survive scene switches? More...
 

Protected Member Functions

override void Awake ()
 Unity's Awake Event More...
 

Properties

static hWebPool Instance [get]
 Gets the web pool instance, creating one if none is found. More...
 

Additional Inherited Members

- Public Member Functions inherited from Hydrogen.Core.WebPool
void Form (string URI, Dictionary< string, string > formStringData)
 HTTP POST Form to URI. More...
 
void Form (string URI, Dictionary< string, string > formStringData, FormBinaryData[] formBinaryData, string cookie, System.Action< int, Hashtable, string > callback)
 HTTP POST Form to URI. More...
 
*< returns > Call Hashcode
</returns > *int 
GET (string URI)
 HTTP GET Request to URI More...
 
int GET (string URI, System.Action< int, Hashtable, string > callback)
 HTTP GET Request to URI More...
 
int GET (string URI, string cookie, System.Action< int, Hashtable, string > callback)
 HTTP GET Request to URI More...
 
void POST (string URI, string contentType, string payload)
 HTTP POST Request to URI. More...
 
void POST (string URI, string contentType, string payload, string cookie, System.Action< int, Hashtable, string > callback)
 HTTP POST Request to URI. More...
 

Detailed Description

A drop in implementation of the Hydrogen.Core.WebPool. This simply makes the class an accessible singleton with some very simple additional functionality.

Definition at line 36 of file hWebPool.cs.

Member Function Documentation

override void hWebPool.Awake ( )
protectedvirtual

Unity's Awake Event

Reimplemented from Hydrogen.Core.WebPool.

Definition at line 95 of file hWebPool.cs.

96  {
97  // Make sure to do the object pools normal initialization
98  base.Awake ();
99 
100  // Should this gameObject be kept around :) I think so.
101  if (Persistent)
102  DontDestroyOnLoad (gameObject);
103  }
bool Persistent
Should this web pool survive scene switches?
Definition: hWebPool.cs:41
static bool hWebPool.Exists ( )
static

Does a Web Pool already exist?

Definition at line 87 of file hWebPool.cs.

88  {
89  return _staticInstance != null;
90  }

Member Data Documentation

bool hWebPool.Persistent = true

Should this web pool survive scene switches?

Definition at line 41 of file hWebPool.cs.

Property Documentation

hWebPool hWebPool.Instance
staticget

Gets the web pool instance, creating one if none is found.

The Web Pool.

Definition at line 63 of file hWebPool.cs.