UrbanBlimp.Tag.GetTagsService.Execute C# (CSharp) Method

Execute() public method

public Execute ( Action responseCallback, Action exceptionCallback ) : void
responseCallback Action
exceptionCallback Action
return void
        public void Execute(Action<GetTagsResponse> responseCallback, Action<Exception> exceptionCallback)
        {
            var request = RequestBuilder.Build("https://go.urbanairship.com/api/tags/");
            request.Method = "GET";
            request.ContentType = "application/json";

            var asyncRequest = new AsyncRequest
                                   {
                                       ReadFromResponse = stream => responseCallback(new GetTagsResponse { Tags = TagDeSerializer.DeSerialize(stream).ToList() }),
                                       Request = request,
                                       ExceptionCallback = exceptionCallback,
                                   };
            asyncRequest.Execute();
        }

Usage Example

 public void Multiple()
 {
     var service = new GetTagsService
                       {
                           RequestBuilder = ServerRequestBuilder.Instance
                       };
     service.Execute(Callback, ExceptionHandler.Handle);
 }
All Usage Examples Of UrbanBlimp.Tag.GetTagsService::Execute
GetTagsService