Class Subscription

Represents a subscription in Episerver's Social Activity Streams system.

Inheritance
System.Object
Subscription
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Social.ActivityStreams.Core
Assembly: EPiServer.Social.ActivityStreams.Core.dll
Version: 1.5.4
Syntax
public class Subscription

Constructors

Subscription(SubscriptionId, Reference, Reference, SubscriptionType, DateTime)

Constructs and returns an initialized Subscription instance.

Declaration
public Subscription(SubscriptionId id, Reference subscriber, Reference target, SubscriptionType type, DateTime created)
Parameters
Type Name Description
SubscriptionId id

The subscription id.

Reference subscriber

A reference to the subscriber the subscription applies to.

Reference target

The reference to the target being followed by the subscriber.

SubscriptionType type

A user assigned type or category of the subscription.

System.DateTime created

The date the subscription was created.

Subscription(Reference, Reference)

Constructs and returns an initialized Subscription instance.

Declaration
public Subscription(Reference subscriber, Reference target)
Parameters
Type Name Description
Reference subscriber

A reference to the subscriber the subscription applies to.

Reference target

The reference to the target being followed by the subscriber.

Subscription(Reference, Reference, SubscriptionType)

Constructs and returns an initialized Subscription instance.

Declaration
public Subscription(Reference subscriber, Reference target, SubscriptionType type)
Parameters
Type Name Description
Reference subscriber

A reference to the subscriber the subscription applies to.

Reference target

The reference to the target being followed by the subscriber.

SubscriptionType type

A user assigned type or category of the subscription.

Properties

Created

Returns the date/time the subscription was created.

Declaration
public DateTime Created { get; }
Property Value
Type Description
System.DateTime

Id

Returns the subscription Id.

Declaration
public SubscriptionId Id { get; }
Property Value
Type Description
SubscriptionId

Subscriber

Returns the reference to the subscriber the subscription applies to.

Declaration
public Reference Subscriber { get; }
Property Value
Type Description
Reference

Target

Returns the reference to the target being followed by the subscriber.

Declaration
public Reference Target { get; }
Property Value
Type Description
Reference

Type

Returns the type of the subscription.

Declaration
public SubscriptionType Type { get; }
Property Value
Type Description
SubscriptionType
Remarks

This is a user assigned and optional property that can be used to categorize subscriptions. Default is empty string.

arrow_upward