Class ClientPost

java.lang.Object
org.gcube.portal.databook.shared.ClientPost

@JsType(isNative=true, namespace="<global>", name="Object") public class ClientPost extends Object
Author:
Massimiliano Assante, CNR-ISTI
  • Field Details

    • key

      public String key
    • type

      public String type
    • userid

      public String userid
    • time

      public Date time
    • uri

      public String uri
    • description

      public String description
    • fullName

      public String fullName
    • email

      public String email
    • thumbnailURL

      public String thumbnailURL
    • linkTitle

      public String linkTitle
    • linkDescription

      public String linkDescription
    • linkUrlThumbnail

      public String linkUrlThumbnail
    • linkHost

      public String linkHost
    • attachments

      public ClientAttachment[] attachments
  • Constructor Details

    • ClientPost

      public ClientPost()
  • Method Details

    • create

      @JsOverlay public static ClientPost create(String key, String type, String userid, Date time, String uri, String description, String fullName, String email, String thumbnailURL, String linkTitle, String linkDescription, String linkUrlThumbnail, String linkHost, ClientAttachment[] attachments)
      Creates a new instance of ClientPost.
      Parameters:
      key - the unique identifier for the post.
      type - the type of the post.
      userid - the user ID of the post author.
      time - the timestamp of the post.
      uri - the URI associated with the post.
      description - the description of the post.
      fullName - the full name of the post author.
      email - the email of the post author.
      thumbnailURL - the URL of the thumbnail image for the post author.
      linkTitle - the title of the link associated with the post.
      linkDescription - the description of the link associated with the post.
      linkUrlThumbnail - the URL of the thumbnail for the link.
      linkHost - the host of the link.
      attachments - the array of attachments associated with the post.
      Returns:
      a new ClientPost instance.