Class Activity
Represents an activity that can be processed by Episerver's Social Activity Streams system.
Inheritance
Inherited Members
Namespace: EPiServer.Social.ActivityStreams.Core
Assembly: EPiServer.Social.ActivityStreams.Core.dll
Version: 1.5.4Syntax
public class Activity
Constructors
Activity(Reference, Reference)
Constructs and returns an initialized activity instance.
Declaration
public Activity(Reference actor, Reference target)
Parameters
| Type | Name | Description |
|---|---|---|
| Reference | actor | The user reference of the actor that triggered the activity. |
| Reference | target | The reference of the target (resource or user) on which the activity was performed. |
Activity(Reference, Reference, DateTime)
Constructs and returns an initialized activity instance.
Declaration
public Activity(Reference actor, Reference target, DateTime date)
Parameters
| Type | Name | Description |
|---|---|---|
| Reference | actor | The user reference of the actor that triggered the activity. |
| Reference | target | The reference of the target (resource or user) on which the activity was performed. |
| System.DateTime | date | The date on which the activity was received by the Activity Streams system. |
Properties
Actor
The user reference of the actor that triggered the activity.
Declaration
public Reference Actor { get; }
Property Value
| Type | Description |
|---|---|
| Reference |
Created
The date on which the activity was received by the Activity Streams system.
Declaration
public DateTime Created { get; }
Property Value
| Type | Description |
|---|---|
| System.DateTime |
Target
The reference to the target resource on which the activity was performed.
Declaration
public Reference Target { get; }
Property Value
| Type | Description |
|---|---|
| Reference |