Class ProfileObject
- Namespace
- ActivityPub.Types.AS.Extended.Object
- Assembly
- ActivityPub.Types.dll
A Profile is a content object that describes another Object, typically used to describe Actor Type objects. The describes property is used to reference the object being described by the profile.
public class ProfileObject : ASObject, IASModel<ASType, ASTypeEntity>, IASModel<ASType>, IASModel<ASObject, ASObjectEntity, ASType>, IASModel<ASObject, ASObjectEntity>, IASModel<ASObject>, IASModel<ProfileObject, ProfileObjectEntity, ASObject>, IASModel<ProfileObject, ProfileObjectEntity>, IASModel<ProfileObject>
- Inheritance
-
ProfileObject
- Implements
- Inherited Members
Constructors
ProfileObject()
Constructs a new instance and attaches it to a new, empty type graph.
public ProfileObject()
ProfileObject(ASType)
Constructs a new instance and extends an existing type graph from a provided model.
public ProfileObject(ASType existingGraph)
Parameters
existingGraph
ASType
- See Also
-
Extend<TModel, TEntity>()
ProfileObject(TypeMap, ProfileObjectEntity?)
public ProfileObject(TypeMap typeMap, ProfileObjectEntity? entity)
Parameters
typeMap
TypeMapentity
ProfileObjectEntity
ProfileObject(TypeMap, bool)
Constructs a new instance from an existing type graph. The existing graph is either extended or wrapped, depending on the value of
isExtending
public ProfileObject(TypeMap typeMap, bool isExtending = true)
Parameters
Remarks
All overrides MUST call this using
base(typeMap, false)
Exceptions
- InvalidOperationException
If
is true and the entity type already exists in the graphextendGraph
- InvalidOperationException
If
is true and the entity requires another entity that is missing from the graphextendGraph
- InvalidCastException
If
is false and the object is not of typeextendGraph
TEntity
- See Also
Fields
ProfileType
ActivityStreams type name for "Profile" types.
[PublicAPI]
public const string ProfileType = "Profile"
Field Value
Properties
Describes
On a Profile object, the describes property identifies the object described by the Profile.
public ASObject? Describes { get; set; }
Property Value
- See Also
Entity
private ProfileObjectEntity Entity { get; }
Property Value
Explicit Interface Implementations
IASModel<ProfileObject>.ASTypeName
AS type name of this entity. For the full list of names in the object graph, use ASTypes.
static string IASModel<ProfileObject>.ASTypeName { get; }
Returns
IASModel<ProfileObject>.FromGraph(TypeMap)
Constructs an instance from this type from a pre-populated type graph. The provided TypeMap instance is guaranteed to include an instance of type EntityType.
static ProfileObject IASModel<ProfileObject>.FromGraph(TypeMap typeMap)
Parameters
typeMap
TypeMap