PhotosetComment

Class to describe a comment on a Photoset on Flickr.

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: PhotosetComment.as 79 2006-09-06 16:57:39Z kluck $

Summary
PhotosetCommentClass to describe a comment on a Photoset on Flickr.
idThis comment’s id.
authorA reference to the Person who made this comment.
createdThe date this comment was made on.
urlThis permalink to this comment.
commentThe actual contents of this comment.
photosetThe Photoset that this comment is on.
_commentsA private static Object containing PhotosetComment objects.
PhotosetCommentPrivate constructor - use getComment instead
_destroyDestroys and deletes this PhotosetComment.
getCommentGet’s a Comment object for the given comment ID.
toString

id

public var id: String

This comment’s id.

author

public var author: Person

A reference to the Person who made this comment.

created

public var created: Date

The date this comment was made on.

url

public var url: String

This permalink to this comment.

comment

public var comment: String

The actual contents of this comment.

photoset

public var photoset: Photoset

The Photoset that this comment is on.

_comments

private static var _comments: Object

A private static Object containing PhotosetComment objects.  Used by getComment to insure that only one PhotosetComment is created for each comment ID returned from flickr.com

PhotosetComment

function PhotosetComment(id: String)

Private constructor - use getComment instead

_destroy

private function _destroy()

Destroys and deletes this PhotosetComment.  Private and called internally on a sucessful response from Flashr.photosetsCommentsDeleteComment.

getComment

public static function getComment(commentId: String):PhotosetComment

Get’s a Comment object for the given comment ID.

Consults _comments to make sure that only one Comment instance is created for each comment ID from flickr.com

Parameters

commentIdThe id of the Comment you want to get

Returns

The Comment object for the given id

toString

public function toString():String
Describes a Photoset on flickr.com
public var id: String
This comment’s id.
public var author: Person
A reference to the Person who made this comment.
Class to describe a person from Flickr.
public var created: Date
The date this comment was made on.
public var url: String
This permalink to this comment.
public var comment: String
The actual contents of this comment.
public var photoset: Photoset
The Photoset that this comment is on.
private static var _comments: Object
A private static Object containing PhotosetComment objects.
function PhotosetComment(id: String)
Private constructor - use getComment instead
public static function getComment(commentId: String):PhotosetComment
Get’s a Comment object for the given comment ID.
private function _destroy()
Destroys and deletes this PhotosetComment.
public function toString():String
function photosetsCommentsDeleteComment(commentId: String):FlashrRequest
Delete a photoset comment as the currently authenticated user.
Class to describe a comment on a photo on Flickr.