Class SocialPostDefinitionDataItem

Specifies an item to be inserted in a post by replacing a token in the post definition. This type can only be specified in a server-to-server call.

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_accountName(): string

Specifies the name of the user. This property is only used if the ItemType property specifies that the item is a User.

Returns

string

public get_itemType(): SocialPostDefinitionDataItemType

Specifies whether the item being formatted is a text element, a user, a document, a site, a tag, or a link.

Returns

SocialPostDefinitionDataItemType

public get_placeholderName(): string

Specifies the post definition token to be replaced by the item

Returns

string

public get_tagGuid(): string

Specifies the GUID that identifies the tag. This property is only used if the ItemType property specifies that the item is a Tag.

Returns

string

public get_text(): string

Specifies the text that is substituted for the placeholder

Returns

string

public get_typeId(): string

Returns

string

public get_uri(): string

Specifies the URI of the document, site, or link. This property is only available if the ItemType property specifies that the item is a Document, Link, or Site.

Returns

string

public set_accountName(value: string): string

Specifies the name of the user. This property is only used if the ItemType property specifies that the item is a User.

Parameters

  • value: string

Returns

string

public set_itemType(value: SocialPostDefinitionDataItemType): SocialPostDefinitionDataItemType

Specifies whether the item being formatted is a text element, a user, a document, a site, a tag, or a link.

Parameters

Returns

SocialPostDefinitionDataItemType

public set_placeholderName(value: string): string

Specifies the post definition token to be replaced by the item

Parameters

  • value: string

Returns

string

public set_tagGuid(value: string): string

Specifies the GUID that identifies the tag. This property is only used if the ItemType property specifies that the item is a Tag.

Parameters

  • value: string

Returns

string

public set_text(value: string): string

Specifies the text that is substituted for the placeholder

Parameters

  • value: string

Returns

string

public set_uri(value: string): string

Specifies the URI of the document, site, or link. This property is only available if the ItemType property specifies that the item is a Document, Link, or Site.

Parameters

  • value: string

Returns

string

public writeToXml(writer: XmlWriter, serializationContext: SerializationContext)

Parameters