Back to project page ReadabilitySDK.
The source code is released under:
MIT License
If you think the Android project ReadabilitySDK listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.idemidov.readability.command.params_builders; //from w ww.jav a 2 s . c o m import org.apache.http.NameValuePair; import org.apache.http.message.BasicNameValuePair; import java.util.List; public class BasicParamsBuilder implements ParamsBuilder { protected List<NameValuePair> params; protected void addBoolean(String name, boolean value) { params.add(new BasicNameValuePair(name, value ? "1" : "0")); } protected void addString(String name, String value) { params.add(new BasicNameValuePair(name, value)); } protected void addInt(String name, int value) { params.add(new BasicNameValuePair(name, String.valueOf(value))); } @Override public List<NameValuePair> build() { return params; } }