Class SocialDataItem

Defines a user, document, site, tag, or link to be inserted in a new post. The SocialPostCreationData class defines the content text that contains substitution strings. Each substitution string is replaced by a SocialDataItem value.

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

Identifies the user.

Returns

string

public get_itemType(): SocialDataItemType

Specifies whether the item being inserted is a user, document, site, tag, or link.

Returns

SocialDataItemType

public get_tagGuid(): string

Identifies the tag.

Returns

string

public get_text(): string

Specifies the plain text to be inserted in the created post. The server can use the specified text or can use text that identifies the item, for example the name specified in a user profile.

Returns

string

public get_typeId(): string

Returns

string

public get_uri(): string

Identifies the site, document, or link.

Returns

string

public set_accountName(value: string): string

Identifies the user.

Parameters

  • value: string

Returns

string

public set_itemType(value: SocialDataItemType): SocialDataItemType

Specifies whether the item being inserted is a user, document, site, tag, or link.

Parameters

Returns

SocialDataItemType

public set_tagGuid(value: string): string

Identifies the tag.

Parameters

  • value: string

Returns

string

public set_text(value: string): string

Specifies the plain text to be inserted in the created post. The server can use the specified text or can use text that identifies the item, for example the name specified in a user profile.

Parameters

  • value: string

Returns

string

public set_uri(value: string): string

Identifies the site, document, or link.

Parameters

  • value: string

Returns

string

public writeToXml(writer: XmlWriter, serializationContext: SerializationContext)

Parameters