This service is available via Telligent.Evolution.Extensibility.Apis.Get<Telligent.Evolution.Extensibility.Api.Version1.IFollows>()
and is defined in Telligent.Evolution.Platform.dll
Events
Events.AfterCreate
Handler
void FollowAfterCreateEventHandler(FollowAfterCreateEventArgs e);
Events.AfterDelete
Handler
void FollowAfterDeleteEventHandler(FollowAfterDeleteEventArgs e);
Events.BeforeCreate
Handler
void FollowBeforeCreateEventHandler(FollowBeforeCreateEventArgs e);
Events.BeforeDelete
Handler
void FollowBeforeDeleteEventHandler(FollowBeforeDeleteEventArgs e);
Properties
Name | Type | Description | Default | Options |
---|---|---|---|---|
DataTypeId | Guid | Follows data type identifier |
Methods
Follow Create(int followingId, FollowsCreateOptions options = null);
Creates a new following relationship for the accessing user
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
followingId | int | Id of user to follow | Required | ||
options | FollowsCreateOptions | Optional parameter names are: FollowerId, FollowerName | Optional |
Return Type
AdditionalInfo Delete(FollowsDeleteOptions options);
Deletes a following relationship between users.
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
options | FollowsDeleteOptions | Optional parameter names are: FollowingId, FollowingName, FollowerId, FollowerName | Required |
Return Type
User Get(int userId, FollowsGetOptions options);
Gets a following relationship.
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
userId | int | Id of user who is following | Required | ||
options | FollowsGetOptions | Optional parameters are: FollowingId, FollowingName | Required |
Return Type
IsFollowingResponse IsFollowing(IsFollowingOptions options);
Checks whether a user is following another user.
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
options | IsFollowingOptions | Optional parameter names are: FollowingId, FollowingName, FollowerId, FollowerName | Required |
Return Type
PagedList<User> List(FollowsListOptions options);
Lists following relationships for a follower
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
options | FollowsListOptions | Optional parameter names are: FollowerName, FollowerId, PageSize, PageIndex | Required |