com. kelvinluck. flashr. core. FlashrResponseHistory

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.

See Also

Flashr.history, Flashr.saveHistory

Licence

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.

Version

0.5.0

Author

Kelvin Luck < kelvin at kelvinluck dot com >

Project Website

http://flashr.kelvinluck.com/

Subversion Id

$Id: FlashrResponseHistory.as 79 2006-09-06 16:57:39Z kluck $

Summary
com. kelvinluck. flashr. core. FlashrResponseHistoryStores information about completed Flickr API requests.
_historyAn Array storing all complete FlashrResponseEvents.
FlashrRequestHistoryPrivate constructor, singleton.
addResponseAdds a FlashrResponseEvent to the history.
getHistoryGet’s the current contents of the <history> Array.
getInstanceGets a reference to the Singleton instance of this class.
toString

_history

private var _history: Array

An Array storing all complete FlashrResponseEvents.

FlashrRequestHistory

Private constructor, singleton.

addResponse

function addResponse(response: FlashrResponseEvent)

Adds a FlashrResponseEvent to the history.

Parameters

responseThe FlashrResponseEvent you want to add.

getHistory

function getHistory():Array

Get’s the current contents of the <history> Array.

Returns

The Array containing all completed FlashrResponseEvents.

getInstance

public static function getInstance():FlashrResponseHistory

Gets a reference to the Singleton instance of this class.

Returns

A reference to the one and only FlashrRequestHistory.

toString

public function toString():String
private var _history: Array
An Array storing all complete FlashrResponseEvents.
Class to hold all the information that is dispatched as an event from Flashr when there is a response to a request.
function addResponse(response: FlashrResponseEvent)
Adds a FlashrResponseEvent to the history.
function getHistory():Array
Get’s the current contents of the history Array.
public static function getInstance():FlashrResponseHistory
Gets a reference to the Singleton instance of this class.
public function toString():String
function get history():FlashrResponseHistory
The FlashrResponseHistory if saveHistory is true
var saveHistory: Boolean
Whether or not a FlashrResponseHistory should be saved of all the calls to flickr.com and all the responses from it.
Private constructor, singleton.