eBay Trading API LeaveFeedbackCall
I am开发者_开发知识库 attempting to set seller feedback through the eBay Trading API, LeaveFeedbackCall
. I am using the .NET SDK and am having difficulty assigning the feedback details. In the API description this is an array SelerItemRatingDetailsArray
that holds ItemRatingDetails
with two items, Rating (Int)
and RatingDetail (FeedbackRatingDetailCodeType)
. The line of code I am using that is throwing an error follows.
apicall.SellerItemRatingDetailArrayList.Item("Communication").Rating = iCommunication.
iCommunication
is an integer variable holding a value between 0 and 4.
Any assistance would be appreciated.
I think you need this code instead.
ItemRatingDetailsType itemRateing = new ItemRatingDetailsType();
itemRateing.RatingDetail = FeedbackRatingDetailCodeType.Communication;
itemRateing.Rateing = iCommunication;
apicall.SellerItemRatingDetailArrayList.Add( itemRateing);
C# syntax. Basically you can not use the SellerItemRatingDetailArrayList like you were trying to.
Link: DetailedSellerRatings and LeaveFeedbackCallMembers
精彩评论