Class SocialPost

Specifies a post read from the server.

Hierarchy

Index

Methods

Methods

public customFromJson(obj: any): boolean

Parameters

  • obj: any

Returns

boolean

public customWriteToXml(writer: XmlWriter, serializationContext: SerializationContext): boolean

Parameters

Returns

boolean

public fromJson(obj: any)

Parameters

  • obj: any

public get_attachment(): SocialAttachment

Specifies an image, document preview, or video preview attachment

Returns

SocialAttachment

public get_attributes(): SocialPostAttributes

Describes attributes about the post, such as whether the current user can delete or like the post.

Returns

SocialPostAttributes

public get_authorIndex(): number

Specifies the author of the post as an index to the social thread's Actors array.

Returns

number

public get_createdTime(): string

Specifies the date and time that the post was created on the server.

Returns

string

public get_id(): string

Specifies the unique identifier of the post.

Returns

string

public get_likerInfo(): SocialPostActorInfo

Specifies information about users who like the post.

Returns

SocialPostActorInfo

public get_modifiedTime(): string

Specifies the date and time that the post was last modified on the server.

Returns

string

public get_overlays(): SocialDataOverlay[]

An array of objects in a post, where each object represents a user, document, site, tag, or link.

Returns

SocialDataOverlay[]

public get_postType(): SocialPostType

Specifies whether a post is the root post or a reply post in a thread

Returns

SocialPostType

public get_preferredImageUri(): string

Specifies the URI of the image to be displayed with the post.

Returns

string

public get_source(): SocialLink

Specifies the link to a web site associated with the application that created the post.

Returns

SocialLink

public get_text(): string

Specifies the text of the post.

Returns

string

public get_typeId(): string

Returns

string

public writeToXml(writer: XmlWriter, serializationContext: SerializationContext)

Parameters