class SocialPostActorInfo
SocialPostActorInfo is a data class that represents a set of users, documents, sites, and tags by indexing into a SocialThread Actors array, commonly used to track users who like a social post.
/tf/active/vicechatdev/SPFCsync/venv/lib64/python3.11/site-packages/office365/sharepoint/social/posts/actor_info.py
4 - 8
simple
Purpose
This class serves as a data structure within the Office365 SharePoint social features to specify collections of actors (users, documents, sites, tags) through array indexing. It inherits from ClientValue, making it suitable for client-server communication in the Office365 API. The primary use case is representing the LikerInfo property in SocialPost objects, identifying which users have liked a particular post by referencing indices in the parent SocialThread's Actors array.
Source Code
class SocialPostActorInfo(ClientValue):
"""The SocialPostActorInfo class specifies a set of users, documents, sites, and tags by an index into the
SocialThread Actors array (see section 3.1.5.42.1.1.1).
In the SocialPost LikerInfo property (see section 3.1.5.26.1.1.6), this class represents a set of users that like
the post."""
Parameters
| Name | Type | Default | Kind |
|---|---|---|---|
bases |
ClientValue | - |
Parameter Details
bases: Inherits from ClientValue, which provides base functionality for client-side value objects that can be serialized and transmitted to/from Office365 services
Return Value
Instantiation returns a SocialPostActorInfo object that can store and reference actor information through array indices. The class itself doesn't define explicit return values in the provided code, but as a ClientValue subclass, it likely supports serialization methods that return dictionary or JSON representations.
Class Interface
Dependencies
office365
Required Imports
from office365.runtime.client_value import ClientValue
from office365.sharepoint.social.social_post_actor_info import SocialPostActorInfo
Usage Example
from office365.sharepoint.social.social_post_actor_info import SocialPostActorInfo
from office365.runtime.client_value import ClientValue
# Instantiate the actor info object
actor_info = SocialPostActorInfo()
# This class is typically used as part of larger social post structures
# and populated by the Office365 API when retrieving social post data
# Example: accessing liker information from a social post
# social_post.liker_info would contain SocialPostActorInfo instances
# that reference indices in the parent thread's actors array
Best Practices
- This class is primarily a data container and should be instantiated through Office365 API responses rather than manually constructed in most cases
- When working with SocialPostActorInfo, ensure you have access to the parent SocialThread's Actors array to resolve the indices
- The class inherits from ClientValue, so it supports serialization - use appropriate methods from the parent class for data conversion
- This class is part of the Office365 SharePoint social features, so ensure proper authentication and permissions are configured before use
- Typically used in read-only scenarios when retrieving social post information rather than for creating new posts
Similar Components
AI-powered semantic similarity - components with related functionality:
-
class SocialActorInfo 81.0% similar
-
class SocialActor 74.6% similar
-
class SocialPost 70.9% similar
-
class SocialThread 67.4% similar
-
class SocialRestActor 65.6% similar