C# Class PusherServer.RestfulClient.AuthenticatedRequestFactory

Factory that creates authenticated requests to send to the Pusher API
Inheritance: IAuthenticatedRequestFactory
显示文件 Open project: pusher/pusher-http-dotnet Class Usage Examples

Public Methods

Method Description
AuthenticatedRequestFactory ( string appKey, string appId, string appSecret ) : System

Constructs a new Autheticated Request Factory

Build ( PusherMethod requestType, string resource, object requestParameters = null, object requestBody = null ) : IPusherRestRequest

Private Methods

Method Description
GetQueryString ( object requestParameters, object requestBody ) : string>.SortedDictionary
GetStringBuilderfromSourceObject ( object sourceObject ) : string>.SortedDictionary

Method Details

AuthenticatedRequestFactory() public method

Constructs a new Autheticated Request Factory
public AuthenticatedRequestFactory ( string appKey, string appId, string appSecret ) : System
appKey string Your app Key for the Pusher API
appId string Your app Id for the Pusher API
appSecret string Your app Secret for the Pusher API
return System

Build() public method

public Build ( PusherMethod requestType, string resource, object requestParameters = null, object requestBody = null ) : IPusherRestRequest
requestType PusherMethod
resource string
requestParameters object
requestBody object
return IPusherRestRequest