Skip to content

Instantly share code, notes, and snippets.

@ejcer
Created September 7, 2014 07:08
Show Gist options
  • Save ejcer/f2417db1cfe14bd77e81 to your computer and use it in GitHub Desktop.
Save ejcer/f2417db1cfe14bd77e81 to your computer and use it in GitHub Desktop.
package com.cleverua.android.post;
public class PostParameter<T> {
private static final String DEFAULT_CONTENT_TYPE = "application/octet-stream";
private String paramName;
private String contentType;
private T value;
public PostParameter(String paramName, T value) {
this(paramName, value, DEFAULT_CONTENT_TYPE);
}
public PostParameter(String paramName, T value, String contentType) {
this.paramName = paramName;
this.value = value;
this.contentType = contentType;
}
public String getParamName() {
return paramName;
}
public T getValue() {
return value;
}
protected void setValue(T value) {
this.value = value;
}
public String getContentType() {
return contentType;
}
public void setContentType(String contentType) {
this.contentType = contentType;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment