예제 #1
0
 public IWebserviceResult Connect()
 {
     var info = new RequestInfo("Connect");
     WebserviceState = WebserviceWrapperState.Connecting;
     bool login = Webservice.Login(UserName, Password);
     var result = new WebserviceResult(info, login);
     WebserviceState = WebserviceWrapperState.Connected;
     return result;
 }
 public AggregateWebserviceResult(RequestInfo info)
     : base(info, false)
 {
 }
예제 #3
0
 public IWebserviceResult DeleteAllPrices(int valor)
 {
     var info = new RequestInfo(string.Format("DeleteAllPricesForValor: {0}", valor));
     object[] deletePricesByValor = Webservice.deletePricesByValor(valor);
     return new WebserviceResult(info, deletePricesByValor);
 }
예제 #4
0
 public IWebserviceResult WritePrice(PriceWebsiteDescription description)
 {
     var info = new RequestInfo(string.Format("WritePrice {0}", description));
     object[] writePrice = Webservice.writePrice(description.Valor, description.LastUpdated, description.Bid,
                                                 description.Ask);
     return new WebserviceResult(info, writePrice);
 }
예제 #5
0
        public IWebserviceResult WriteProduct(ProductWebsiteDescription d)
        {
            var info = new RequestInfo(string.Format("WriteProduct {0}", d));

            object[] writeProduct = Webservice.writeProductV2(d.Valor, d.Name, d.Currency, d.CurrencyRisk, d.Dirty,
                                                              d.Guarantor, d.LeadManager, d.Issuer, d.AssetClass,
                                                              d.ProductCat, d.ProductType, d.ISIN, d.StockExchange,
                                                              d.Pricing, d.ValutaDate, d.EmissionPrice, d.Nominal,
                                                              d.RedemptionDate, d.StartFixationDate, d.EndFixationDate,
                                                              d.CouponObservation, d.CpGuaranteed,
                                                              d.ConditionalObservation, d.Text_Bed_Coupon, d.cpbedingt,
                                                              d.Floater, d.CPFloater, d.TextFloater, d.minCoupon,
                                                              d.maxCoupon, d.TextCoupon, d.CallData, d.EarlyRedemption,
                                                              d.TextEarlyRedemtpion, d.Cap, d.MaxPayback,
                                                              d.TextMaxPayback, d.Protection, d.ProtectionType,
                                                              d.MinPayback, d.Partizipation, d.PartizipationText,
                                                              d.Discount, d.MaxYield, d.bonuslevel, d.issuerNameShort,
                                                              d.ProductState, d.productKatId, d.productTypeId,
                                                              d.EmissionType, d.Symbol, d.SmallestTradeableUnit, d.s1t,
                                                              d.s1v, d.s2t, d.s2v, d.s3t, d.s3v, d.NameEn,
                                                              d.CurrencyRiskEn, d.AssetClassEn, d.ProductCatEn,
                                                              d.ProductTypeEn, d.PricingEn, d.CpGuaranteedEn,
                                                              d.cpbedingtEn, d.CPFloaterEn, d.CallDataEn,
                                                              d.EarlyRedemptionEn, d.CouponGuaranteed_En,
                                                              d.couponBedingtEn, d.textBedCoupon_En, d.FloaterEn,
                                                              d.TextFloaterEn, d.minCouponEn, d.maxCouponEn,
                                                              d.TextCouponEn, d.TextEarlyRedemtpionEn, d.capEn,
                                                              d.MaxPaybackEn, d.TextMaxPaybackEn, d.ProtectionEn,
                                                              d.MinPaybackEn, d.PartizipationEn, d.PartizipationTextEn,
                                                              d.DiscountEn, d.MaxYieldEn, d.bonuslevelEn, d.s1tEN,
                                                              d.s1vEn, d.s2tEn, d.s2vEn, d.s3tEn, d.s3vEn, d.HasEnglish);
            return new WebserviceResult(info, writeProduct);
        }
예제 #6
0
 public IWebserviceResult Disconnect()
 {
     var info = new RequestInfo("Disconnect");
     WebserviceState = WebserviceWrapperState.Disconnecting;
     bool logout = Webservice.Logout();
     WebserviceState = WebserviceWrapperState.Disconnected;
     return new WebserviceResult(info, logout);
 }
예제 #7
0
 public IWebserviceResult WriteEvents(int valor, IEnumerable<EventWebsiteDescription> descriptions)
 {
     var info = new RequestInfo(string.Format("WriteEvents for {0}", valor));
     var result = new AggregateWebserviceResult(info);
     foreach (EventWebsiteDescription description in descriptions)
     {
         result.Add(WriteEvent(valor, description));
     }
     return result;
 }
예제 #8
0
 public IWebserviceResult DeleteProduct(int valor)
 {
     var info = new RequestInfo("Delete product " + valor);
     object[] deleteProduct = Webservice.deleteProductByValor(valor);
     return new WebserviceResult(info, deleteProduct);
 }
예제 #9
0
 public WebserviceResult(RequestInfo userState, object[] result)
 {
     RequestInfo = userState;
     ServiceResult = result;
     ParseResult();
 }
예제 #10
0
 public WebserviceResult(RequestInfo userState, bool result)
     : this(userState, new object[] { result })
 {
 }
예제 #11
0
 public WebserviceResult(RequestInfo userState, bool result)
     : this(userState, new object[] { result })
 {
 }
예제 #12
0
 public WebserviceResult(RequestInfo userState, object[] result)
 {
     RequestInfo   = userState;
     ServiceResult = result;
     ParseResult();
 }