Click or drag to resize
Post Class
A post is a representation of the data used to submit to particular social channels (e.g. Twitter Corporate, Twitter Marketing, Facebook, etc). A post is a child item of the Message class. A message can have multiple posts. Therefore, you should access this through Message.Posts rather than accessing it directly. It is possible to have more than one post per social media type, for example, if the user has two Facebook channels and selects both of them when publishing a message, then there will be one message (the parent) and two posts (one for each social channel).
Inheritance Hierarchy
SystemObject
  DbObject
    Dynamicweb.Content.SocialPostBase
      Dynamicweb.Content.SocialPost

Namespace: Dynamicweb.Content.Social
Assembly: Dynamicweb (in Dynamicweb.dll) Version: 9.6.0
Syntax
public class Post : PostBase

The Post type exposes the following members.

Constructors
  NameDescription
Public methodPost
Initializes a new instance of an object.
Top
Properties
  NameDescription
Public propertyBody
Gets or sets the post body.
(Inherited from PostBase.)
Public propertyChannel
Gets the channel object that this post was published on.
Public propertyChannelID
Gets or sets the channel ID.
Public propertyConnection (Inherited from DbObject.)
Public propertyCreated
Gets the date and time when the message was created.
(Inherited from PostBase.)
Public propertyID (Inherited from DbObject.)
Public propertyImage
Gets or sets the URI of the image that should be associated with the post.
(Inherited from PostBase.)
Public propertyIsNew (Inherited from DbObject.)
Public propertyIsPublished
Gets value indicating whether this post is published.
(Inherited from PostBase.)
Public propertyLink
Gets or sets the URI that should be associated with the post.
(Inherited from PostBase.)
Public propertyMessage
Gets the message which is the parent object for this post.
Public propertyMessageID
Gets or sets the message Id.
Public propertyParsedText
Gets or sets the parsed post body.
Public propertyPublished
Gets or sets the date and time this message was published.
(Inherited from PostBase.)
Public propertyPublishResult
Gets or sets the result of publishing this post.
Public propertyTitle
Gets or sets the post title.
(Inherited from PostBase.)
Public propertyTransaction (Inherited from DbObject.)
Public propertyUpdated
Gets the date and time when the message was updated.
(Inherited from PostBase.)
Top
Methods
  NameDescription
Public methodDelete (Inherited from DbObject.)
Public methodDelete(Int32) (Inherited from DbObject.)
Public methodFill
Fills object properties with data from the given IDataReader object.
(Overrides PostBaseFill(IDataReader).)
Protected methodFillRow
Fills the given DataRow object with object state values.
(Overrides PostBaseFillRow(DataRow).)
Public methodStatic memberGetPostById
Returns the post by its Id.
Public methodStatic memberGetPosts
Gets all posts available posts.
Public methodStatic memberGetPostsByChannelId
Gets all posts by the given channel Id.
Public methodStatic memberGetPostsByMessageId
Gets all posts by the given message Id.
Public methodGetPublishData
Returns the publish data to publish to the channel.
Public methodLoad (Inherited from DbObject.)
Public methodSave (Inherited from DbObject.)
Top
Fields
  NameDescription
Protected field_id (Inherited from DbObject.)
Protected field_keyField (Inherited from DbObject.)
Protected field_tableName (Inherited from DbObject.)
Top
See Also