Class UserSocial
The UserSocial is a high-level class describing social details of a user. As an example, this class contains Friends, Followers, Follows lists.
Inheritance
System.Object
UserSocial
Namespace: DotNetNuke.Entities.Users.Social
Assembly: DotNetNuke.dll
Syntax
public class UserSocial : object
Constructors
| Improve this Doc View SourceUserSocial(UserInfo)
Initializes a new instance of the UserSocial class.
Declaration
public UserSocial(UserInfo userInfo)
Parameters
Type | Name | Description |
---|---|---|
UserInfo | userInfo |
Properties
| Improve this Doc View SourceFollower
Gets the Follower Relationship. Does the user in object Follow the current User (with any status).
Declaration
public UserRelationship Follower { get; }
Property Value
Type | Description |
---|---|
UserRelationship |
Following
Gets the Following Relationship (if it exists with the current User).
Declaration
public UserRelationship Following { get; }
Property Value
Type | Description |
---|---|
UserRelationship |
Friend
Gets the Friend Relationship (if it exists with the current User).
Declaration
public UserRelationship Friend { get; }
Property Value
Type | Description |
---|---|
UserRelationship |
Relationships
Gets list of Relationships for the User.
Declaration
public IList<Relationship> Relationships { get; }
Property Value
Type | Description |
---|---|
IList<Relationship> |
Roles
Gets list of Roles/Groups for the User.
Declaration
public IList<UserRoleInfo> Roles { get; }
Property Value
Type | Description |
---|---|
IList<UserRoleInfo> |
UserRelationships
Gets a collection of all the relationships the user is a member of.
Declaration
public IList<UserRelationship> UserRelationships { get; }
Property Value
Type | Description |
---|---|
IList<UserRelationship> |