1

我正在尝试通过 eBay 交易 API 设置卖家反馈,LeaveFeedbackCall. 我正在使用 .NET SDK,并且难以分配反馈详细信息。在 API 描述中,这是一个SelerItemRatingDetailsArray包含ItemRatingDetails两个项目的数组,Rating (Int)并且RatingDetail (FeedbackRatingDetailCodeType). 下面是我正在使用的引发错误的代码行。

apicall.SellerItemRatingDetailArrayList.Item("Communication").Rating = iCommunication.

iCommunication是一个整数变量,其值介于 0 和 4 之间。

任何援助将不胜感激。

4

1 回答 1

0

我认为您需要此代码。

ItemRatingDetailsType itemRateing = new ItemRatingDetailsType();
itemRateing.RatingDetail = FeedbackRatingDetailCodeType.Communication;
itemRateing.Rateing = iCommunication;
apicall.SellerItemRatingDetailArrayList.Add( itemRateing);

C# 语法。基本上你不能像你尝试的那样使用 SellerItemRatingDetailArrayList 。

链接:DetailedSellerRatingsLeaveFeedbackCallMembers

于 2012-09-16T14:25:30.627 回答