Class SocialThread

Specifies a thread that is stored on the server. The thread contains a root post and zero or more reply posts.

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_actors(): SocialActor[]

Specifies the users who have created a post in the returned thread and also contains any users, documents, sites, and tags that are referenced in any of the posts in the returned thread.

Returns

SocialActor[]

public get_attributes(): SocialThreadAttributes

Specifies attributes of the thread, such as whether the current user can reply or lock the thread and whether the thread is a digest of a thread on the server, whether the number of replies has reached the maximum, and whether the thread is locked.

Returns

SocialThreadAttributes

public get_id(): string

Specifies the unique identification of the thread.

Returns

string

public get_ownerIndex(): number

Specifies the thread owner as an index into the Actors array. Typically, the thread owner is the user who created the root post, but the thread owner can be any user included in the Actors array.

Returns

number

public get_permalink(): string

Specifies a URI that is a permanent reference to the thread, if such a permanent reference is available.

Returns

string

public get_postReference(): SocialPostReference

Specifies a reference to a post in another thread. The PostReference property is available only if the ThreadType has a value of ReplyReference, LikeReference, MentionReference, or TagReference.

Returns

SocialPostReference

public get_replies(): SocialPost[]

Returns an array of zero or more reply posts. The server can return a subset of the reply posts that are stored on the server.

Returns

SocialPost[]

public get_rootPost(): SocialPost

Returns

SocialPost

public get_status(): SocialStatusCode

Provides information about conditions that were encountered retrieving the thread that did not prevent the operation from completing.

Returns

SocialStatusCode

public get_threadType(): SocialThreadType

Specifies if the thread is a normal thread created by one or more CreatePost calls or a reference post generated by the server when a user replies to a post, likes a post, or creates a post with a tag or mention

Returns

SocialThreadType

public get_totalReplyCount(): number

Returns

number

public get_typeId(): string

Returns

string

public writeToXml(writer: XmlWriter, serializationContext: SerializationContext)

Parameters