All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.taobao.api.request.KfcKeywordSearchRequest Maven / Gradle / Ivy

There is a newer version: 1.8.10
Show newest version
package com.taobao.api.request;

import com.taobao.api.internal.util.RequestCheckUtils;
import java.util.Map;

import com.taobao.api.ApiRuleException;
import com.taobao.api.BaseTaobaoRequest;
import com.taobao.api.internal.util.TaobaoHashMap;

import com.taobao.api.response.KfcKeywordSearchResponse;

/**
 * TOP API: taobao.kfc.keyword.search request
 * 
 * @author top auto create
 * @since 1.0, 2016.03.19
 */
public class KfcKeywordSearchRequest extends BaseTaobaoRequest {
	
	

	/** 
	* 应用点,分为一级应用点、二级应用点。其中一级应用点通常是指某一个系统或产品,比如淘宝的商品应用(taobao_auction);二级应用点,是指一级应用点下的具体的分类,比如商品标题(title)、商品描述(content)。不同的二级应用可以设置不同关键词。

这里的apply参数是由一级应用点与二级应用点合起来的字符(一级应用点+"."+二级应用点),如taobao_auction.title。


通常apply参数是不需要传递的。如有特殊需求(比如特殊的过滤需求,需要自己维护一套自己词库),需传递此参数。
	 */
	private String apply;

	/** 
	* 需要过滤的文本信息
	 */
	private String content;

	/** 
	* 发布信息的淘宝会员名,可以不传
	 */
	private String nick;

	public void setApply(String apply) {
		this.apply = apply;
	}

	public String getApply() {
		return this.apply;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getContent() {
		return this.content;
	}

	public void setNick(String nick) {
		this.nick = nick;
	}

	public String getNick() {
		return this.nick;
	}

	public String getApiMethodName() {
		return "taobao.kfc.keyword.search";
	}

	public Map getTextParams() {		
		TaobaoHashMap txtParams = new TaobaoHashMap();
		txtParams.put("apply", this.apply);
		txtParams.put("content", this.content);
		txtParams.put("nick", this.nick);
		if(this.udfParams != null) {
			txtParams.putAll(this.udfParams);
		}
		return txtParams;
	}

	public Class getResponseClass() {
		return KfcKeywordSearchResponse.class;
	}

	public void check() throws ApiRuleException {
		RequestCheckUtils.checkNotEmpty(content, "content");
	}
	

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy