Stores information about completed Flickr API requests. Currently just wraps an Array but can potentially have methods such as getLastRequest(methodName) and suchlike added at a later date.
Flashr.history, Flashr.saveHistory
This code and documentation is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 2.0. http://creativecommons.org/licenses/by-nc-sa/2.0/
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
0.5.0
Kelvin Luck < kelvin at kelvinluck dot com >
$Id: FlashrResponseHistory.as 79 2006-09-06 16:57:39Z kluck $
| com. kelvinluck. flashr. core. FlashrResponseHistory | Stores information about completed Flickr API requests. |
| _history | An Array storing all complete FlashrResponseEvents. |
| FlashrRequestHistory | Private constructor, singleton. |
| addResponse | Adds a FlashrResponseEvent to the history. |
| getHistory | Get’s the current contents of the <history> Array. |
| getInstance | Gets a reference to the Singleton instance of this class. |
| toString |
private var _history: Array
An Array storing all complete FlashrResponseEvents.
function addResponse( response: FlashrResponseEvent )
Adds a FlashrResponseEvent to the history.
| response | The FlashrResponseEvent you want to add. |
function getHistory():Array
Get’s the current contents of the <history> Array.
The Array containing all completed FlashrResponseEvents.
public static function getInstance():FlashrResponseHistory
Gets a reference to the Singleton instance of this class.
A reference to the one and only FlashrRequestHistory.
An Array storing all complete FlashrResponseEvents.
private var _history: Array
Adds a FlashrResponseEvent to the history.
function addResponse( response: FlashrResponseEvent )
Get’s the current contents of the history Array.
function getHistory():Array
Gets a reference to the Singleton instance of this class.
public static function getInstance():FlashrResponseHistory
public function toString():String
The FlashrResponseHistory if saveHistory is true
function get history():FlashrResponseHistory
Whether or not a FlashrResponseHistory should be saved of all the calls to flickr.com and all the responses from it.
var saveHistory: Boolean