133 lines
3.4 KiB
C#
133 lines
3.4 KiB
C#
using System;
|
||
using System.Collections.Generic;
|
||
using Aop.Api.Response;
|
||
|
||
namespace Aop.Api.Request
|
||
{
|
||
/// <summary>
|
||
/// AOP API: alipay.mobile.recommend.get
|
||
/// </summary>
|
||
public class AlipayMobileRecommendGetRequest : IAopRequest<AlipayMobileRecommendGetResponse>
|
||
{
|
||
/// <summary>
|
||
/// 请求上下文扩展信息,需要与接口负责人约定。格式为json对象。
|
||
/// </summary>
|
||
public string ExtInfo { get; set; }
|
||
|
||
/// <summary>
|
||
/// 期望获取的最多推荐数量, 默认获取一个推荐内容, 0表示获取所有推荐内容
|
||
/// </summary>
|
||
public string Limit { get; set; }
|
||
|
||
/// <summary>
|
||
/// 所使用的场景id,请向接口负责人申请
|
||
/// </summary>
|
||
public string SceneId { get; set; }
|
||
|
||
/// <summary>
|
||
/// 获取推荐信息的开始位置, 默认从0开始
|
||
/// </summary>
|
||
public string StartIdx { get; set; }
|
||
|
||
/// <summary>
|
||
/// 用户openid
|
||
/// </summary>
|
||
public string UserId { get; set; }
|
||
|
||
#region IAopRequest Members
|
||
private bool needEncrypt=false;
|
||
private string apiVersion = "1.0";
|
||
private string terminalType;
|
||
private string terminalInfo;
|
||
private string prodCode;
|
||
private string notifyUrl;
|
||
private string returnUrl;
|
||
private AopObject bizModel;
|
||
|
||
public void SetNeedEncrypt(bool needEncrypt){
|
||
this.needEncrypt=needEncrypt;
|
||
}
|
||
|
||
public bool GetNeedEncrypt(){
|
||
|
||
return this.needEncrypt;
|
||
}
|
||
|
||
public void SetNotifyUrl(string notifyUrl){
|
||
this.notifyUrl = notifyUrl;
|
||
}
|
||
|
||
public string GetNotifyUrl(){
|
||
return this.notifyUrl;
|
||
}
|
||
|
||
public void SetReturnUrl(string returnUrl){
|
||
this.returnUrl = returnUrl;
|
||
}
|
||
|
||
public string GetReturnUrl(){
|
||
return this.returnUrl;
|
||
}
|
||
|
||
public void SetTerminalType(String terminalType){
|
||
this.terminalType=terminalType;
|
||
}
|
||
|
||
public string GetTerminalType(){
|
||
return this.terminalType;
|
||
}
|
||
|
||
public void SetTerminalInfo(String terminalInfo){
|
||
this.terminalInfo=terminalInfo;
|
||
}
|
||
|
||
public string GetTerminalInfo(){
|
||
return this.terminalInfo;
|
||
}
|
||
|
||
public void SetProdCode(String prodCode){
|
||
this.prodCode=prodCode;
|
||
}
|
||
|
||
public string GetProdCode(){
|
||
return this.prodCode;
|
||
}
|
||
|
||
public string GetApiName()
|
||
{
|
||
return "alipay.mobile.recommend.get";
|
||
}
|
||
|
||
public void SetApiVersion(string apiVersion){
|
||
this.apiVersion=apiVersion;
|
||
}
|
||
|
||
public string GetApiVersion(){
|
||
return this.apiVersion;
|
||
}
|
||
|
||
public IDictionary<string, string> GetParameters()
|
||
{
|
||
AopDictionary parameters = new AopDictionary();
|
||
parameters.Add("ext_info", this.ExtInfo);
|
||
parameters.Add("limit", this.Limit);
|
||
parameters.Add("scene_id", this.SceneId);
|
||
parameters.Add("start_idx", this.StartIdx);
|
||
parameters.Add("user_id", this.UserId);
|
||
return parameters;
|
||
}
|
||
|
||
public AopObject GetBizModel()
|
||
{
|
||
return this.bizModel;
|
||
}
|
||
|
||
public void SetBizModel(AopObject bizModel)
|
||
{
|
||
this.bizModel = bizModel;
|
||
}
|
||
|
||
#endregion
|
||
}
|
||
}
|