步步为盈
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
498 B

using System;
namespace Jd.Api.Parser
{
/// <summary>
/// Jd API响应解释器接口。响应格式可以是XML, JSON等等。
/// </summary>
/// <typeparam name="T">领域对象</typeparam>
public interface IJdParser<T>
{
/// <summary>
/// 把响应字符串解释成相应的领域对象。
/// </summary>
/// <param name="body">响应字符串</param>
/// <returns>领域对象</returns>
T Parse(string body);
}
}