License

Represents one of the possible Licences on flickr.com

See Also

Flashr.photosLicensesGetInfo, Flashr.photosLicensesSetLicense

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

Summary
LicenseRepresents one of the possible Licences on flickr.com
idThe id representing this license type.
nameThe name of this license.
urlThe link to this license on the creative commons website.
License
getLicenseGet’s the one License for this id.
toString

id

var id: Number

The id representing this license type.  Used when calling Flashr.photosLicensesSetLicense or providing a “licence” parameter to Flashr.photosSearch

name

var name: String

The name of this license.

url

var url: String

The link to this license on the creative commons website.

License

private function License(id: Number)
Private constructoronly one License is created per id so use getLicense to get a License

getLicense

public static function getLicense(id: Number):License

Get’s the one License for this id.

Parameters

idThe id of the License you want to create.

Returns

The License corresponding to this id.

toString

public function toString():String
var id: Number
The id representing this license type.
var name: String
The name of this license.
var url: String
The link to this license on the creative commons website.
private function License(id: Number)
public static function getLicense(id: Number):License
Get’s the one License for this id.
public function toString():String
function photosLicensesGetInfo():FlashrRequest
Fetches a list of availabale photo licenses for Flickr
function photosLicensesSetLicense(photoId: String,
licenseId: Number):FlashrRequest
Sets the license for a photo.
function photosSearch (params):FlashrRequest
Calls flickr.photos.search to get a list of photos matching some criteria.