C# Класс 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.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
LogResponse ( HyvesResponse response ) : void

Описание методов

GetLastResponse() публичный Метод

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
Результат HyvesResponse

HyvesSession() публичный Метод

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.
Результат System

InitializeToken() публичный Метод

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
Результат void

InitializeUserId() публичный Метод

Initializes the user associated with this session.
public InitializeUserId ( string userId ) : void
userId string The identifier of the user associated with the session.
Результат void