if ((annotations != null) && (!annotations.isEmpty())) {
appendParameter("annotations", annotations.asParameterValue(), params);
}
params.add(includeEntities);
if(null != mediaFile){
params.add(new HttpParameter("media[]", mediaFile));
params.add(new HttpParameter("possibly_sensitive", possiblySensitive));
}else if(mediaName != null && mediaBody != null){
params.add(new HttpParameter("media[]", mediaName, mediaBody));
params.add(new HttpParameter("possibly_sensitive", possiblySensitive));
}
HttpParameter[] paramArray = new HttpParameter[params.size()];
return params.toArray(paramArray);
}