コード例 #1
0
ファイル: Routes.cs プロジェクト: psrodriguez/CIAPI.CS
        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);
        }            
コード例 #2
0
ファイル: Routes.cs プロジェクト: vebin/SOAPI2
        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);
        }
コード例 #3
0
 public RequestToken(IRequestController requestController)
 {
     _requestController = requestController;
 }
コード例 #4
0
 /// <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;
 }
コード例 #5
0
ファイル: Client.cs プロジェクト: AMEE/revit
 // #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;
 }
コード例 #6
0
 internal ScoreloopResponse(IRequestController requestController, bool success)
 {
     this.RequestSource = requestController;
     this.Success = success;
 }
コード例 #7
0
ファイル: Client.cs プロジェクト: nterranova-fsb/revit
        // #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;
        }
コード例 #8
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="uri"></param>
 /// <param name="requestController"></param>
 public StackAuthClient(Uri uri, IRequestController requestController)
     : base(uri, requestController)
 {
     
 }