C# Class Hyves.Service.FriendsService

Represents the service APIs that allow access to information on Hyves friends.
显示文件 Open project: Sitecore/Hyves-network-provider-for-Sitecore-Social-Connected-1.3

Public Methods

Method Description
GetConnection ( string userId ) : Collection

Retrieves the connections between the user the access token is for and another user. This corresponds to the friends.getConnection Hyves method.

GetDistance ( Collection userIds ) : Collection

Gets the distance for given friend ids with the current user. This corresponds to the friends.getDistance Hyves method.

GetFriends ( ) : Collection

Gets the friends of the current user. This corresponds to the friends.get Hyves method.

GetIncomingInvitations ( ) : Collection

Gets all incoming invitations for the logged in user. This corresponds to the friends.getIncomingInvitations Hyves method.

GetOutgoingInvitations ( ) : Collection

Gets all outgoing invitations for the logged in user. This corresponds to the friends.getOutgoingInvitations Hyves method.

Private Methods

Method Description
FriendsService ( HyvesSession session ) : System

Method Details

GetConnection() public method

Retrieves the connections between the user the access token is for and another user. This corresponds to the friends.getConnection Hyves method.
public GetConnection ( string userId ) : Collection
userId string The requested userId.
return Collection

GetDistance() public method

Gets the distance for given friend ids with the current user. This corresponds to the friends.getDistance Hyves method.
public GetDistance ( Collection userIds ) : Collection
userIds Collection The list of requested user Ids.
return Collection

GetFriends() public method

Gets the friends of the current user. This corresponds to the friends.get Hyves method.
public GetFriends ( ) : Collection
return Collection

GetIncomingInvitations() public method

Gets all incoming invitations for the logged in user. This corresponds to the friends.getIncomingInvitations Hyves method.
public GetIncomingInvitations ( ) : Collection
return Collection

GetOutgoingInvitations() public method

Gets all outgoing invitations for the logged in user. This corresponds to the friends.getOutgoingInvitations Hyves method.
public GetOutgoingInvitations ( ) : Collection
return Collection