package com.sheep.gamegroup.greendao.download;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Property;
import org.greenrobot.greendao.annotation.Generated;

/**
 * Created by realicing on 2018/9/21.
 * realicing@sina.com
 * 进程运行时长记录表---5.0及其以下使用
 */
@Entity
public class ProcessRecord {
    /**
     * id,
     */
    @Id(autoincrement = true)
    private Long id;
    /**
     * 用户id
     */
    @Property(nameInDb = "user_id")
    private String userId;
    /**
     * 包名
     */
    @Property(nameInDb = "package_name")
    private String packageName;
    /**
     * 运行时长
     */
    @Property(nameInDb = "run_time")
    private int runTime;
    public int getRunTime() {
        return this.runTime;
    }
    public void setRunTime(int runTime) {
        this.runTime = runTime;
    }
    public String getPackageName() {
        return this.packageName;
    }
    public void setPackageName(String packageName) {
        this.packageName = packageName;
    }
    public String getUserId() {
        return this.userId;
    }
    public void setUserId(String userId) {
        this.userId = userId;
    }
    public Long getId() {
        return this.id;
    }
    public void setId(Long id) {
        this.id = id;
    }
    @Generated(hash = 1731687783)
    public ProcessRecord(Long id, String userId, String packageName, int runTime) {
        this.id = id;
        this.userId = userId;
        this.packageName = packageName;
        this.runTime = runTime;
    }
    @Generated(hash = 9957031)
    public ProcessRecord() {
    }
}
