package com.x.app.util.loader;

import java.util.List;

public class DetailBase {
	private String id;
	private String title;
	private String trunk;
	private String img_url;
	private String intro;
	private String rating;
	private String pubtime;
	private List<String> director;
	private List<String> actor;
	private List<String> area;
	private List<String> type;
	private String play_filter;
	private List<String> tags;
	private String default_pos;
	private String foreign_ip;

	public String getId() {
		return id;
	}

	public String getTitle() {
		return title;
	}

	public String getTrunk() {
		return trunk;
	}

	public String getImgUrl() {
		return img_url;
	}

	public String getIntro() {
		return intro;
	}

	public String getRating() {
		return rating;
	}

	public String getPubtime() {
		return pubtime;
	}

	public String getDirector() {
		if (director == null)
			return "";

		StringBuilder builder = new StringBuilder();
		for (String s : director) {
			builder.append(s);
			builder.append(" ");
		}

		return builder.toString();
	}

	public String getActor() {
		if (actor == null)
			return "";

		StringBuilder builder = new StringBuilder();
		for (String s : actor) {
			builder.append(s);
			builder.append(" ");
		}

		return builder.toString();
	}

	public String getArea() {
		if (area == null)
			return "";

		StringBuilder builder = new StringBuilder();
		for (String s : area) {
			builder.append(s);
			builder.append(" ");
		}

		return builder.toString();
	}

	public String getType() {
		if (type == null)
			return "";

		StringBuilder builder = new StringBuilder();
		for (String s : type) {
			builder.append(s);
			builder.append(" ");
		}

		return builder.toString();
	}

	public String getPlayFilter() {
		return play_filter;
	}

	public String getTags() {
		if (tags == null)
			return "";

		StringBuilder builder = new StringBuilder();
		for (String s : tags) {
			builder.append(s);
			builder.append(" ");
		}

		return builder.toString();
	}

	public String getDefaultPos() {
		return default_pos;
	}

	public String isForeignIp() {
		return foreign_ip;
	}
}
