Exemplo n.º 1
0
        public GetAllCategoriesResult GetAllCategories()
        {
            var service = new DOMAService();
              service.Url = WebServiceUrl;

              var request = new GetAllCategoriesRequest
              {
            Username = Username,
            Password = Password
              };

              var response = service.GetAllCategories(request);
              var result = new GetAllCategoriesResult
              {
            ErrorMessage = response.ErrorMessage,
            Success = response.Success,
              };
              if (response.Success)
              {
            result.Categories = new List<Category>();
            foreach (var category in response.Categories)
            {
              result.Categories.Add(TranslateCategory(category));
            }
              }
              return result;
        }
Exemplo n.º 2
0
        public GetAllCategoriesResponse GetAllCategories(GetAllCategoriesRequest request)
        {
            object[] results = this.Invoke("GetAllCategories", new object[] {
                request
            });

            return((GetAllCategoriesResponse)(results[0]));
        }
Exemplo n.º 3
0
 /// <remarks/>
 public void GetAllCategoriesAsync(GetAllCategoriesRequest request, object userState)
 {
     if ((this.GetAllCategoriesOperationCompleted == null))
     {
         this.GetAllCategoriesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetAllCategoriesOperationCompleted);
     }
     this.InvokeAsync("GetAllCategories", new object[] {
         request
     }, this.GetAllCategoriesOperationCompleted, userState);
 }
Exemplo n.º 4
0
 /// <remarks/>
 public void GetAllCategoriesAsync(GetAllCategoriesRequest request)
 {
     this.GetAllCategoriesAsync(request, null);
 }
Exemplo n.º 5
0
 /// <remarks/>
 public void GetAllCategoriesAsync(GetAllCategoriesRequest request, object userState) {
     if ((this.GetAllCategoriesOperationCompleted == null)) {
         this.GetAllCategoriesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetAllCategoriesOperationCompleted);
     }
     this.InvokeAsync("GetAllCategories", new object[] {
                 request}, this.GetAllCategoriesOperationCompleted, userState);
 }
Exemplo n.º 6
0
 /// <remarks/>
 public void GetAllCategoriesAsync(GetAllCategoriesRequest request) {
     this.GetAllCategoriesAsync(request, null);
 }
Exemplo n.º 7
0
 public GetAllCategoriesResponse GetAllCategories(GetAllCategoriesRequest request) {
     object[] results = this.Invoke("GetAllCategories", new object[] {
                 request});
     return ((GetAllCategoriesResponse)(results[0]));
 }