Class SocialPostCreationData

Specifies the content of a post in the SocialFeedManager.createPost method. The post consists of a text message, which can optionally include social tags, mentions of users, and links.

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 to be used in the post.

Returns

SocialAttachment

public get_contentItems(): SocialDataItem

Specifies an array consisting of social tags, user mentions, links to documents, links to sites, and generic links. Each element in the array is inserted into the ContentText string if there is a substitution reference to the array element in the string.

Returns

SocialDataItem

public get_contentText(): string

Contains the text body of the post.

Returns

string

public get_definitionData(): SocialPostDefinitionData

Specifies additional information when creating server-generated posts

Returns

SocialPostDefinitionData

public get_securityUris(): Array<string>

Specifies that access to the post SHOULD be restricted to users that have access to the objects identified by the array of URIs

Returns

Array<string>

public get_source(): SocialLink

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

Returns

SocialLink

public get_typeId(): string

Returns

string

public get_updateStatusText(): boolean

Indicates whether the post is to be used as the current user's new status message.

Returns

boolean

public set_attachment(value: SocialAttachment): SocialAttachment

Specifies an image, document preview, or video preview to be used in the post.

Parameters

Returns

SocialAttachment

public set_contentItems(value: SocialDataItem): SocialDataItem

Specifies an array consisting of social tags, user mentions, links to documents, links to sites, and generic links. Each element in the array is inserted into the ContentText string if there is a substitution reference to the array element in the string.

Parameters

Returns

SocialDataItem

public set_contentText(value: string): string

Contains the text body of the post. It can optionally contain one or more substitution references to elements in the zero-based ContentItems array. A substitution reference consists of a series of characters that consist of an open-brace character ({) followed by one of more digits in the range 0 to 9 and terminated by a close-brace character (}). The substitution reference is replaced by the text value of the element in the in the array at the offset specified by the value of the digits. For example, the text string "{0}" is replaced by the first element in the ContentItems array.

Parameters

  • value: string

Returns

string

public set_definitionData(value: SocialPostDefinitionData): SocialPostDefinitionData

Specifies additional information when creating server-generated posts

Parameters

Returns

SocialPostDefinitionData

public set_securityUris(value: Array<string>): Array<string>

Specifies that access to the post SHOULD be restricted to users that have access to the objects identified by the array of URIs

Parameters

  • value: Array<string>

Returns

Array<string>

public set_source(value: SocialLink): SocialLink

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

Parameters

Returns

SocialLink

public set_updateStatusText(value: boolean): boolean

Indicates whether the post is to be used as the current user's new status message.

Parameters

  • value: boolean

Returns

boolean

public writeToXml(writer: XmlWriter, serializationContext: SerializationContext)

Parameters