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.
Show file Open project: Sitecore/Hyves-network-provider-for-Sitecore-Social-Connected-1.3 Class Usage Examples

Public Methods

Method 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

Method Description
LogResponse ( HyvesResponse response ) : void

Method Details

GetLastResponse() public method

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
return HyvesResponse

HyvesSession() public method

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.
return System

InitializeToken() public method

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
return void

InitializeUserId() public method

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