Class PostBean

java.lang.Object
com.patreon.resources.shared.BaseResource
com.patreonshout.beans.PostBean

@Entity
public class PostBean
extends com.patreon.resources.shared.BaseResource
POJO that relates to the posts table in our database
  • Field Summary

    Fields
    Modifier and Type Field Description
    protected java.lang.String appId
    Platform app id.
    protected java.lang.String appStatus
    Processing status of the post.
    protected int campaignId
    Name of the content creator who made the Patreon post
    protected java.lang.String content
    The content of the Patreon post.
    protected java.lang.String embedData
    An object containing embed data if media is embedded in the post, or none if there is no embed
    protected java.lang.String embedUrl
    Embed media url.
    protected java.lang.Boolean isPaid
    True if the post incurs a bill as part of a pay-per-post campaign.
    protected java.lang.Boolean isPublic
    True if the post is viewable by anyone.
    protected int postId
    post_id is the index/primary key for the posts table in our database
    protected java.lang.String publishedAt
    Datetime that the creator most recently published (made publicly visible) the post.
    (package private) java.util.List<Tag> tags
    tags is the list of Tag objects linked with this PostBean object
    protected java.lang.String title
    title is the title of the Patreon post
    protected java.lang.String url
    url is the url of the Patreon post
  • Constructor Summary

    Constructors
    Constructor Description
    PostBean()  
  • Method Summary

    Modifier and Type Method Description
    boolean equals​(java.lang.Object o)
    Used to check if a PostBean is equal to another PostBean object

    Methods inherited from class com.patreon.resources.shared.BaseResource

    getId, getLinks, getType, getType, hashCode

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • postId

      protected int postId
      post_id is the index/primary key for the posts table in our database
    • campaignId

      protected int campaignId
      Name of the content creator who made the Patreon post
    • appId

      protected java.lang.String appId
      Platform app id. Can be null
    • appStatus

      protected java.lang.String appStatus
      Processing status of the post. Can be null
    • content

      protected java.lang.String content
      The content of the Patreon post. Can be null
    • embedData

      protected java.lang.String embedData
      An object containing embed data if media is embedded in the post, or none if there is no embed
    • embedUrl

      protected java.lang.String embedUrl
      Embed media url. Can be null
    • isPaid

      protected java.lang.Boolean isPaid
      True if the post incurs a bill as part of a pay-per-post campaign. TODO: Can be null
    • isPublic

      protected java.lang.Boolean isPublic
      True if the post is viewable by anyone. TODO: Can be null
    • publishedAt

      protected java.lang.String publishedAt
      Datetime that the creator most recently published (made publicly visible) the post. Can be null
    • title

      protected java.lang.String title
      title is the title of the Patreon post
    • url

      protected java.lang.String url
      url is the url of the Patreon post
    • tags

      java.util.List<Tag> tags
      tags is the list of Tag objects linked with this PostBean object
  • Constructor Details

    • PostBean

      public PostBean()
  • Method Details

    • equals

      public boolean equals​(java.lang.Object o)
      Used to check if a PostBean is equal to another PostBean object
      Overrides:
      equals in class com.patreon.resources.shared.BaseResource
      Parameters:
      o - is the object we check the current object against
      Returns:
      true if the objects are equal, false otherwise