Options
All
  • Public
  • Public/Protected
  • All
Menu

A source of photos from Flickr

Hierarchy

Index

Constructors

constructor

  • new FlickrSource(useKey: UseKey, photosKey: string, type: Type, desc: string, isLimited: boolean, isDaily: boolean, isArray: boolean, loadArg?: any): FlickrSource

Methods

fetchPhotos

  • fetchPhotos(): Promise<IPhoto[]>

getDesc

  • getDesc(): string

getLoadArg

  • getLoadArg(): any

getPhotos

getPhotosKey

  • getPhotosKey(): string

getUseKey

isDaily

  • isDaily(): boolean

isLimited

  • isLimited(): boolean

process

  • process(): Promise<undefined>

use

  • use(): null | false | true

Static addPhoto

  • addPhoto(photos: IPhoto[], url: string, author: string, asp: number, ex: any, point?: string): void
  • Add a IPhoto to an existing Array

    Parameters

    • photos: IPhoto[]

      The array to add to

    • url: string

      The url to the photo

    • author: string

      The photographer

    • asp: number

      The aspect ratio of the photo

    • ex: any

      Additional information about the photo

    • Default value point: string = ""

      An optional geolocation

    Returns void

Static createPoint

  • createPoint(lat: number, lon: number): string

Static Private processPhotos

  • processPhotos(response: any): IPhoto[]

Generated using TypeDoc