Class to describe a comment on a Photoset on Flickr.
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: PhotosetComment.as 79 2006-09-06 16:57:39Z kluck $
| PhotosetComment | Class to describe a comment on a Photoset on Flickr. |
| id | This comment’s id. |
| author | A reference to the Person who made this comment. |
| created | The date this comment was made on. |
| url | This permalink to this comment. |
| comment | The actual contents of this comment. |
| photoset | The Photoset that this comment is on. |
| _comments | A private static Object containing PhotosetComment objects. |
| PhotosetComment | Private constructor - use getComment instead |
| _destroy | Destroys and deletes this PhotosetComment. |
| getComment | Get’s a Comment object for the given comment ID. |
| toString |
public var author: Person
A reference to the Person who made 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. Used by getComment to insure that only one PhotosetComment is created for each comment ID returned from flickr.com
function PhotosetComment( id: String )
Private constructor - use getComment instead
private function _destroy()
Destroys and deletes this PhotosetComment. Private and called internally on a sucessful response from Flashr.photosetsCommentsDeleteComment.
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
| commentId | The id of the Comment you want to get |
The Comment object for the given id
This comment’s id.
public var id: String
A reference to the Person who made this comment.
public var author: Person
The date this comment was made on.
public var created: Date
This permalink to this comment.
public var url: String
The actual contents of this comment.
public var comment: String
The Photoset that this comment is on.
public var photoset: Photoset
A private static Object containing PhotosetComment objects.
private static var _comments: Object
Private constructor - use getComment instead
function PhotosetComment( id: String )
Get’s a Comment object for the given comment ID.
public static function getComment( commentId: String ):PhotosetComment
Destroys and deletes this PhotosetComment.
private function _destroy()
public function toString():String
Delete a photoset comment as the currently authenticated user.
function photosetsCommentsDeleteComment( commentId: String ):FlashrRequest