public Execute ( |
||
request | ||
responseCallback | Action |
|
exceptionCallback | Action |
|
return | void |
public void Simple() { var feedbackService = new FeedbackService { RequestBuilder = ServerRequestBuilder.Instance }; var request = new FeedbackRequest { Since = 10.Days().Ago() }; feedbackService.Execute(request, Callback, ExceptionHandler.Handle); }
public void Integration() { var feedbackService = new FeedbackService { RequestBuilder = RequestBuilderHelper.Build() }; var helper = new AsyncTestHelper<FeedbackResponse>(); var request = new FeedbackRequest { Since = 10.Days().Ago() }; feedbackService.Execute(request, helper.Callback, helper.HandleException); helper.Wait(); var deviceFeedbacks = helper.Response.DeviceFeedbacks; Debug.WriteLine(deviceFeedbacks.Count); foreach (var deviceFeedback in deviceFeedbacks) { Debug.WriteLine(deviceFeedback.DeviceToken); Debug.WriteLine(deviceFeedback.MakedInactiveOn); } }