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; }
public GetAllCategoriesResponse GetAllCategories(GetAllCategoriesRequest request) { object[] results = this.Invoke("GetAllCategories", new object[] { request }); return((GetAllCategoriesResponse)(results[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); }
/// <remarks/> public void GetAllCategoriesAsync(GetAllCategoriesRequest request) { this.GetAllCategoriesAsync(request, null); }
/// <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); }
/// <remarks/> public void GetAllCategoriesAsync(GetAllCategoriesRequest request) { this.GetAllCategoriesAsync(request, null); }
public GetAllCategoriesResponse GetAllCategories(GetAllCategoriesRequest request) { object[] results = this.Invoke("GetAllCategories", new object[] { request}); return ((GetAllCategoriesResponse)(results[0])); }