Show / Hide Table of Contents

Class DataService

Inheritance
object
ServiceLocator<IDataService, DataService>
DataService
Implements
IDataService
Inherited Members
ServiceLocator<IDataService, DataService>.SetTestableInstance(IDataService)
ServiceLocator<IDataService, DataService>.ClearInstance()
ServiceLocator<IDataService, DataService>.GetFactory()
ServiceLocator<IDataService, DataService>.Instance
ServiceLocator<IDataService, DataService>.Factory
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: DotNetNuke.Services.Social.Subscriptions.Data
Assembly: DotNetNuke.dll
Syntax
public class DataService : ServiceLocator<IDataService, DataService>, IDataService

Constructors

DataService()

Declaration
public DataService()

Methods

AddSubscription(int, int, int, string, string, int, int, string)

Declaration
public int AddSubscription(int userId, int portalId, int subscriptionTypeId, string objectKey, string description, int moduleId, int tabId, string objectData)
Parameters
Type Name Description
int userId
int portalId
int subscriptionTypeId
string objectKey
string description
int moduleId
int tabId
string objectData
Returns
Type Description
int

AddSubscriptionType(string, string, int)

Declaration
public int AddSubscriptionType(string subscriptionName, string friendlyName, int desktopModuleId)
Parameters
Type Name Description
string subscriptionName
string friendlyName
int desktopModuleId
Returns
Type Description
int

DeleteSubscription(int)

Declaration
public bool DeleteSubscription(int subscriptionId)
Parameters
Type Name Description
int subscriptionId
Returns
Type Description
bool

DeleteSubscriptionType(int)

Declaration
public bool DeleteSubscriptionType(int subscriptionTypeId)
Parameters
Type Name Description
int subscriptionTypeId
Returns
Type Description
bool

DeleteSubscriptionsByObjectKey(int, string)

Declaration
public void DeleteSubscriptionsByObjectKey(int portalId, string objectKey)
Parameters
Type Name Description
int portalId
string objectKey

GetFactory()

Declaration
protected override Func<IDataService> GetFactory()
Returns
Type Description
Func<IDataService>
Overrides
ServiceLocator<IDataService, DataService>.GetFactory()

GetSubscriptionTypes()

Declaration
public IDataReader GetSubscriptionTypes()
Returns
Type Description
IDataReader

GetSubscriptionsByContent(int, int, string)

Declaration
public IDataReader GetSubscriptionsByContent(int portalId, int subscriptionTypeId, string objectKey)
Parameters
Type Name Description
int portalId
int subscriptionTypeId
string objectKey
Returns
Type Description
IDataReader

GetSubscriptionsByUser(int, int, int)

Declaration
public IDataReader GetSubscriptionsByUser(int portalId, int userId, int subscriptionTypeId)
Parameters
Type Name Description
int portalId
int userId
int subscriptionTypeId
Returns
Type Description
IDataReader

IsSubscribed(int, int, int, string, int, int)

Declaration
public IDataReader IsSubscribed(int portalId, int userId, int subscriptionTypeId, string objectKey, int moduleId, int tabId)
Parameters
Type Name Description
int portalId
int userId
int subscriptionTypeId
string objectKey
int moduleId
int tabId
Returns
Type Description
IDataReader

UpdateSubscriptionDescription(string, int, string)

Declaration
public int UpdateSubscriptionDescription(string objectKey, int portalId, string newDescription)
Parameters
Type Name Description
string objectKey
int portalId
string newDescription
Returns
Type Description
int

Implements

IDataService

Extension Methods

JsonExtensionsWeb.ToJson(object)
Back to top by the community, for the community... #DNNCMS