com. kelvinluck. flickr. Group

Class to describe a group from Flickr.

Instances of this class are created to hold groups who have been returned in data from calls to the Flickr API.

Currently very bare bones - this class will be expanded

Version

0.1.0

Author

Kelvin Luck < kelvin at kelvinluck dot com >

Summary
Class to describe a group from Flickr.
This group’s nsid.
The name of this group
Whether this group is visible to members over 18 only.
A private static Object containing Group objects.
Get’s a Group object for the given nsid.

Variables

nsid

public var nsid: String

This group’s nsid.

name

public var name: String

The name of this group

eighteenPlus

public var eighteenPlus: Boolean

Whether this group is visible to members over 18 only.

_groups

private static var _groups: Object

A private static Object containing Group objects.  Used by getGroup to insure that only one Group is created for each nsid returned from flickr.com

Functions

Group

private function Group(nsid: String)
Constructor functioncreates a new Group object.

Don’t call directly, use getGroup to make sure that there is only one Group instance for each nsid as returned by flickr.com

getGroup

public static function getGroup(nsid: String):Group

Get’s a Group object for the given nsid.

Consults _groups to make sure that only one Group instance is created for each nsid from flickr.com

Parameters

nsidThe nsid of the Group you want to get
public var nsid: String
This group’s nsid.
public var name: String
The name of this group
public var eighteenPlus: Boolean
Whether this group is visible to members over 18 only.
private static var _groups: Object
A private static Object containing Group objects.
private function Group(nsid: String)
public static function getGroup(nsid: String):Group
Get’s a Group object for the given nsid.