}
/*package*/ HttpParameter[] asHttpParameterArray() {
List<HttpParameter> params = new ArrayList<HttpParameter>();
if (message != null) {
params.add(new HttpParameter("message", message));
}
if (link != null) {
params.add(new HttpParameter("link", link.toString()));
}
if (picture != null) {
params.add(new HttpParameter("picture", picture.toString()));
}
if (name != null) {
params.add(new HttpParameter("name", name));
}
if (caption != null) {
params.add(new HttpParameter("caption", caption));
}
if (description != null) {
params.add(new HttpParameter("description", description));
}
if (actions != null && actions.size() != 0) {
JSONArray jsonArray = new JSONArray(actions);
params.add(new HttpParameter("actions", jsonArray.toString()));
}
if (place != null) {
params.add(new HttpParameter("place", place));
}
if (tags != null) {
params.add(new HttpParameter("tags", tags));
}
if (privacy != null) {
params.add(new HttpParameter("privacy", privacy.asJSONString()));
}
if (objectAttachment != null) {
params.add(new HttpParameter("object_attachment", objectAttachment));
}
if (targeting != null) {
params.add(new HttpParameter("targeting", targeting.asJSONString()));
}
if (published != null) {
params.add(new HttpParameter("published", published));
}
if (scheduledPublishTime != null) {
params.add(new HttpParameter("scheduled_publish_time", scheduledPublishTime));
}
return params.toArray(new HttpParameter[params.size()]);
}