public Client(Uri uri, IRequestController requestController) : base(uri, requestController) { this. Authentication = new _Authentication(this); this. PriceHistory = new _PriceHistory(this); this. Market = new _Market(this); this. News = new _News(this); this. CFDMarkets = new _CFDMarkets(this); this. SpreadMarkets = new _SpreadMarkets(this); this. TradesAndOrders = new _TradesAndOrders(this); this. AccountInformation = new _AccountInformation(this); this. Messaging = new _Messaging(this); this. ExceptionHandling = new _ExceptionHandling(this); }
public SoapiClient(string apiKey, string appId,Uri uri, IRequestController requestController) : base(uri, requestController) { #if SILVERLIGHT #if WINDOWS_PHONE UserAgent = "SOAPI2.PHONE7."+ GetVersionNumber(); #else UserAgent = "SOAPI2.SILVERLIGHT."+ GetVersionNumber(); #endif #else UserAgent = "SOAPI2." + GetVersionNumber(); #endif _client = this; _appId = appId; _apiKey = apiKey; this.Answers = new _Answers(this); this.Badges = new _Badges(this); this.Comments = new _Comments(this); this.Events = new _Events(this); this.Posts = new _Posts(this); this.Privileges = new _Privileges(this); this.Questions = new _Questions(this); this.Revisions = new _Revisions(this); this.Search = new _Search(this); this.Suggested_Edits = new _Suggested_Edits(this); this.Info = new _Info(this); this.Tags = new _Tags(this); this.Users = new _Users(this); this.Access_Tokens = new _Access_Tokens(this); this.Applications = new _Applications(this); this.Errors = new _Errors(this); this.Filters = new _Filters(this); this.Inbox = new _Inbox(this); this.Sites = new _Sites(this); }
public RequestToken(IRequestController requestController) { _requestController = requestController; }
/// <summary> /// /// </summary> /// <param name="apiKey"></param> /// <param name="uri"></param> /// <param name="requestController"></param> public StackExchangeClient(string apiKey, Uri uri, IRequestController requestController) : base(uri, requestController) { ApiKey = apiKey; }
// #TODO: implement per request specification of content-type as AMEE varies public Client(Uri uri, IRequestController requestController, string basicAuthUsername, string basicAuthPassword) : base(uri, requestController, basicAuthUsername, basicAuthPassword) { RequestController.ContentType = ContentType.FORM; }
internal ScoreloopResponse(IRequestController requestController, bool success) { this.RequestSource = requestController; this.Success = success; }
/// <summary> /// /// </summary> /// <param name="uri"></param> /// <param name="requestController"></param> public StackAuthClient(Uri uri, IRequestController requestController) : base(uri, requestController) { }