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. |
- Source:
Methods
# getCreationTime() → {Date}
Get the Date instance of when the collection was created.
- Source:
Returns:
Date instance of when the collection was created.
- Type
- Date
# getDescription() → {String}
Get the description of the collection.
- Source:
Returns:
The description of the collection.
- Type
- String
# getId() → {String}
Get the ID of the collection.
- Source:
Returns:
The ID of the collection.
- Type
- String
# getImages() → {Array.<ImageMeta>}
Get all the images of this collection.
- Source:
Returns:
Array of all the images.
- Type
- Array.<ImageMeta>
# getimageViews() → {Number}
Sum of all the views of all the images in this collection.
- Source:
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.
- Source:
Returns:
UNIX Timestamp of when the collection was created.
- Type
- Number
# getTitle() → {String}
Get the title of the collection.
- Source:
Returns:
The title of the collection.
- Type
- String
# getViews() → {Number}
The total numbers of views this collection got.
- Source:
Returns:
The number of views of the collection.
- Type
- Number
# isPublic() → {Boolean}
Check if the collection is public or not.
- Source:
Returns:
If the collection is public or not.
- Type
- Boolean
# isUnlisted() → {Boolean}
Check if the collection is unlisted or not.
- Source:
Returns:
If the collection is unlisted or not.
- Type
- Boolean