public string GetItems(string data) { FindItemsInEBayStoreRequest storeRequest = JsonConvert.DeserializeObject<FindItemsInEBayStoreRequest>(data); if (storeRequest != null) { Store store = new Store(); storeRequest.StoreName = "Beautiful Hearth"; var response = store.FindItemsInStore(storeRequest); if (response == null) { response = new FindItemsInEBayStoreResponse(); } if (response.items == null) { response.items = new List<FindEBayItemResponse>(); response.items.Add(new FindEBayItemResponse()); } return JsonConvert.SerializeObject(response.items[0]); } return null; }
public string GetFeedback() { GetFeedbackRequest storeRequest = new GetFeedbackRequest(); Store store = new Store(); storeRequest.FeedbackType = FeedbackTypeCodeType.FeedbackReceived; storeRequest.DetailLevel = DetailLevelCodeType.ReturnAll; var response = store.GetFeedback(storeRequest); if (response == null) { response = new GetFeedbackResponse(); } if (response.FeedbackDetailArray == null) { response.FeedbackDetailArray = new FeedbackDetailType[] { }; } return JsonConvert.SerializeObject(response); }