CollectionMeta

CollectionMeta

Collection meta data handler.

Constructor

# new CollectionMeta(meta_data)

Used to handle meta data of a image collection.
Parameters:
Name Type Description
meta_data Object The raw JSON meta data of the collection.

Methods

# getCreationTime() → {Date}

Get the Date instance of when the collection was created.
Returns:
Date instance of when the collection was created.
Type
Date

# getDescription() → {String}

Get the description of the collection.
Returns:
The description of the collection.
Type
String

# getId() → {String}

Get the ID of the collection.
Returns:
The ID of the collection.
Type
String

# getImages() → {Array.<ImageMeta>}

Get all the images of this collection.
Returns:
Array of all the images.
Type
Array.<ImageMeta>

# getimageViews() → {Number}

Sum of all the views of all the images in this collection.
Returns:
The collective sum of the amount of views all of the images in this collection got.
Type
Number

# getRawCreationTime() → {Number}

Get the UNIX based timestamp of when the collection was created.
Returns:
UNIX Timestamp of when the collection was created.
Type
Number

# getTitle() → {String}

Get the title of the collection.
Returns:
The title of the collection.
Type
String

# getViews() → {Number}

The total numbers of views this collection got.
Returns:
The number of views of the collection.
Type
Number

# isPublic() → {Boolean}

Check if the collection is public or not.
Returns:
If the collection is public or not.
Type
Boolean

# isUnlisted() → {Boolean}

Check if the collection is unlisted or not.
Returns:
If the collection is unlisted or not.
Type
Boolean