C# Class Hyves.Service.Core.HyvesSession

A Hyves session represents a logical user login, and allows an application to access Hyves services in the context of the specific user.
Afficher le fichier Open project: Sitecore/Hyves-network-provider-for-Sitecore-Social-Connected-1.3 Class Usage Examples

Méthodes publiques

Méthode Description
GetLastResponse ( ) : HyvesResponse

Gets the last response returned from the Hyves service for access to the raw response, and status code for diagnostics purposes. This may be null.

HyvesSession ( string consumerKey, string consumerSecret, List methods ) : System

Initializes an instance of a HyvesSession.

InitializeToken ( string token, string tokenSecret, System.DateTime expireDate ) : void

Initializes the session information once a session has been created.

InitializeUserId ( string userId ) : void

Initializes the user associated with this session.

Private Methods

Méthode Description
LogResponse ( HyvesResponse response ) : void

Method Details

GetLastResponse() public méthode

Gets the last response returned from the Hyves service for access to the raw response, and status code for diagnostics purposes. This may be null.
public GetLastResponse ( ) : HyvesResponse
Résultat HyvesResponse

HyvesSession() public méthode

Initializes an instance of a HyvesSession.
public HyvesSession ( string consumerKey, string consumerSecret, List methods ) : System
consumerKey string The consumer key representing the application.
consumerSecret string
methods List The methods supported in this application.
Résultat System

InitializeToken() public méthode

Initializes the session information once a session has been created.
public InitializeToken ( string token, string tokenSecret, System.DateTime expireDate ) : void
token string The unique identifier of the session.
tokenSecret string The secret of the session.
expireDate System.DateTime
Résultat void

InitializeUserId() public méthode

Initializes the user associated with this session.
public InitializeUserId ( string userId ) : void
userId string The identifier of the user associated with the session.
Résultat void