Class UserPreferencesController
Inheritance
System.Object
UserPreferencesController
Implements
Inherited Members
Namespace: DotNetNuke.Services.Social.Messaging
Assembly: DotNetNuke.dll
Syntax
public class UserPreferencesController : ServiceLocator<IUserPreferencesController, UserPreferencesController>, IUserPreferencesController
Constructors
| Improve this Doc View SourceUserPreferencesController()
Initializes a new instance of the UserPreferencesController class.
Declaration
public UserPreferencesController()
UserPreferencesController(IDataService)
Initializes a new instance of the UserPreferencesController class.
Declaration
public UserPreferencesController(IDataService dataService)
Parameters
Type | Name | Description |
---|---|---|
IDataService | dataService |
Methods
| Improve this Doc View SourceGetFactory()
Gets the service locator factory.
Declaration
protected override Func<IUserPreferencesController> GetFactory()
Returns
Type | Description |
---|---|
Func<IUserPreferencesController> | A factory function. |
Overrides
DotNetNuke.Framework.ServiceLocator<DotNetNuke.Services.Social.Messaging.IUserPreferencesController, DotNetNuke.Services.Social.Messaging.UserPreferencesController>.GetFactory()
|
Improve this Doc
View Source
GetUserPreference(UserInfo)
Get the User Messaging Preference.
Declaration
public UserPreference GetUserPreference(UserInfo userinfo)
Parameters
Type | Name | Description |
---|---|---|
UserInfo | userinfo | User info. |
Returns
Type | Description |
---|---|
UserPreference | User Messaging Preference. |
SetUserPreference(UserPreference)
Set the User Messaging Preference.
Declaration
public void SetUserPreference(UserPreference userPreference)
Parameters
Type | Name | Description |
---|---|---|
UserPreference | userPreference | User Preference. |