Class: Post

Post(data)

Data class for Posts. This class stores the data structure of the posts.

Constructor

new Post(data)

This is the constructor for Post class that accepts the Post data.
Parameters:
Name Type Description
data Object Post data object
Author:
  • amannirala13
Source:
Example
let obj = new Post({
                 id:"id",
                 title: "title",
                 body: "body",
                 location: "location",
                 timestamp: "timestamp",
                 author: "author",
                 keywords: "keywords"})

Classes

Post