package com.sheep.gamegroup.model.entity;

import android.text.TextUtils;

import com.sheep.gamegroup.helper.DownloadHelper;
import com.sheep.gamegroup.model.api.IDownload;

import java.io.Serializable;

/**
 * 小米游戏
 * Created by ljy on 2018/7/29.
 */

public class XiaomiGameEntity implements Serializable,IDownload {
    private int Id;//integer($int64)
    private long created_at;//integer($int64)
    private int download;//integer($int64)1:可下载 其他：不可下载

    private long download_at;//integer($int64)预约下载开放时间

    private int download_count;//integer($int64)下载数量

    private int download_type;//integer($int32)1：非预约下载 2：预约下载

    private String download_url;//string下载地址

    private String icon;//string应用图标

    private String intro;//string应用简介

    private int is_recommend;//integer($int32)是否推荐：0：不推荐 1：推荐

    private String manufacturer;//string厂商

    private String name;//string应用名称

    private String package_id;//stringGameID
    private String package_name;//string应用包名称

    private String package_size;//number($float)包大小(M)

    private int package_type;//integer($int64)出包类型：1：快发出包 2：腾讯出包 3：小米出包 4：其它

    private String pictures;//string宣传图标（分号隔开）

    private int platform;//integer($int32)平台 0：全 1：安卓 2：IOS

    private int receive_account = 1;//integer($int64)0:未领取账号 1:已领取账号

    private int record;//integer($int64)1:可记录 其他：不可记录

    private float score;//number($float)评分

    private int score_count;//integer($int64)评分人数

    private int sort;//integer($int64)排序：越大越靠前

    private int status;//integer($int32)1:开启 2：关闭

    private long updated_at;//integer($int64)
    private String versions;//string版本号

    private int download_count_increment;//下载数量的增量

    private String type;//类型

    private int available_receive = 1;//0:可领取账号 1:不可领取账号

    public int getAvailable_receive() {
        return available_receive;
    }

    public void setAvailable_receive(int available_receive) {
        this.available_receive = available_receive;
    }

    public void setPackage_sizes(String package_sizes) {
        this.package_size = package_sizes;
    }

    public int getDownload_count_increment() {
        return download_count_increment;
    }

    public void setDownload_count_increment(int download_count_increment) {
        this.download_count_increment = download_count_increment;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public int getId() {
        return Id;
    }

    public void setId(int id) {
        Id = id;
    }

    public long getCreated_at() {
        return created_at;
    }

    public void setCreated_at(long created_at) {
        this.created_at = created_at;
    }

    public int getDownload() {
        return download;
    }

    public void setDownload(int download) {
        this.download = download;
    }

    public long getDownload_at() {
        return download_at;
    }

    public void setDownload_at(long download_at) {
        this.download_at = download_at;
    }

    public int getDownload_count() {
        return download_count;
    }

    public void setDownload_count(int download_count) {
        this.download_count = download_count;
    }

    public int getDownload_type() {
        return download_type;
    }

    public void setDownload_type(int download_type) {
        this.download_type = download_type;
    }

    public String getDownload_url() {
        return download_url;
    }

    public void setDownload_url(String download_url) {
        this.download_url = download_url;
    }

    @Override
    public String getPackage_names() {
        return package_name;
    }

    @Override
    public int getTask_type() {
        return package_type;
    }

    @Override
    public String getDownload_link() {
        return download_url;
    }

    @Override
    public String getTask_name() {
        return name;
    }

    public String getIcon() {
        return icon;
    }

    @Override
    public String getPackage_size() {
        return TextUtils.isEmpty(package_size)?"0":package_size;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getIntro() {
        return intro;
    }

    public void setIntro(String intro) {
        this.intro = intro;
    }

    public int getIs_recommend() {
        return is_recommend;
    }

    public void setIs_recommend(int is_recommend) {
        this.is_recommend = is_recommend;
    }

    public String getManufacturer() {
        return manufacturer;
    }

    public void setManufacturer(String manufacturer) {
        this.manufacturer = manufacturer;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPackage_id() {
        return package_id;
    }

    public void setPackage_id(String package_id) {
        this.package_id = package_id;
    }

    public String getPackage_name() {
        return package_name;
    }

    public void setPackage_name(String package_name) {
        this.package_name = package_name;
    }

    @Override
    public int getAcceptedTaskId() {
        return 0;
    }

    public int getPackage_type() {
        return package_type;
    }

    public void setPackage_type(int package_type) {
        this.package_type = package_type;
    }

    public String getPictures() {
        return pictures;
    }

    public void setPictures(String pictures) {
        this.pictures = pictures;
    }

    public int getPlatform() {
        return platform;
    }

    public void setPlatform(int platform) {
        this.platform = platform;
    }

    public int getReceive_account() {
        return receive_account;
    }

    public void setReceive_account(int receive_account) {
        this.receive_account = receive_account;
    }

    public int getRecord() {
        return record;
    }

    public void setRecord(int record) {
        this.record = record;
    }

    public float getScore() {
        return score;
    }

    public void setScore(float score) {
        this.score = score;
    }

    public int getScore_count() {
        return score_count;
    }

    public void setScore_count(int score_count) {
        this.score_count = score_count;
    }

    public int getSort() {
        return sort;
    }

    public void setSort(int sort) {
        this.sort = sort;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public long getUpdated_at() {
        return updated_at;
    }

    public void setUpdated_at(long updated_at) {
        this.updated_at = updated_at;
    }

    public String getVersions() {
        return TextUtils.isEmpty(versions)?"0":versions;
    }

    public void setVersions(String versions) {
        this.versions = versions;
    }
    private DownloadHelper downloadHelper = new DownloadHelper();

    public DownloadHelper getDownloadHelper() {
        return downloadHelper;
    }
}
