Пример #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;
 }
Пример #2
0
        public IWebserviceResult SaveFile(int valor, FileWebsiteDescription description)
        {
            string requestInfo = string.Format("SaveFile for {0}", valor);

            return(WebserviceResult.Create(
                       requestInfo,
                       Webservice.saveFile(description.Valor, description.Description, description.FileName,
                                           description.SortOrder,
                                           description.ByteFile)));
        }
Пример #3
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);
        }
Пример #4
0
        public IWebserviceResult WriteEvent(int valor, EventWebsiteDescription description)
        {
            string operation = string.Format("WriteEvent for {0}", valor);

            return(WebserviceResult.Create(operation,
                                           Webservice.writeEvent(description.Valor, description.ObservationDate,
                                                                 description.EventType,
                                                                 description.EventValutaDate,
                                                                 description.PeriodName, description.PeriodStart,
                                                                 description.PeriodEnd,
                                                                 description.Description, description.EventTypeEn,
                                                                 description.PeriodNameEn, description.DescriptionEn)));
        }
Пример #5
0
        public IWebserviceResult WriteBarrier(int valor, BarrierWebsiteDescription description)
        {
            string requestInfo = string.Format("WriteBarrier for {0}", valor);

            return(WebserviceResult.Create(requestInfo,
                                           Webservice.writeBarrage(description.Valor, description.Name,
                                                                   description.Barrier,
                                                                   description.Trigger, description.Observation,
                                                                   description.Settlement,
                                                                   description.NameEn, description.TriggerEn,
                                                                   description.ObservationEn,
                                                                   description.SettlementEn)));
        }
Пример #6
0
 public IWebserviceResult WriteIssuerRating(int issuerId, IssuerRatingWebsiteDescription description)
 {
     return(WebserviceResult.Create("WriteIssuerRating",
                                    Webservice.writeEmittentenRatingWithLogo(description.IssuerId,
                                                                             description.Bank,
                                                                             description.RatingSP,
                                                                             description.RatingMoody,
                                                                             description.RatingFitch,
                                                                             description.DateSP,
                                                                             description.DateMoody,
                                                                             description.DateFitch,
                                                                             description.Comment,
                                                                             description.CommentEN,
                                                                             description.Website,
                                                                             description.LogoFileName,
                                                                             description.ByteLogo)));
 }
Пример #7
0
        public IWebserviceResult DeleteFile(string fileName)
        {
            string info = string.Format("DeleteFile {0}", fileName);

            return(WebserviceResult.Create(info, Webservice.deleteFileByOriginalName(fileName)));
        }
Пример #8
0
        public IWebserviceResult DeleteEvents(int valor)
        {
            string operation = string.Format("DeleteEvents for {0}", valor);

            return(WebserviceResult.Create(operation, Webservice.deleteEventsOfProductByValor(valor)));
        }
Пример #9
0
        public IWebserviceResult WriteBaseValue(int valor, BaseValueWebsiteDescription description)
        {
            string operation = string.Format("WriteBaseValue for {0}", valor);

            return(WebserviceResult.Create(operation, Webservice.writeBasevalue(description.Valor, description.Name)));
        }
Пример #10
0
        public IWebserviceResult DeleteBaseValues(int valor)
        {
            string requestInfo = string.Format("DeleteEvents for {0}", valor);

            return(WebserviceResult.Create(requestInfo, Webservice.deleteBasevaluesOfProductByValor(valor)));
        }