116 lines
2.2 KiB
Java
116 lines
2.2 KiB
Java
package com.lijun.playvideo.entity;
|
|
|
|
import lombok.Data;
|
|
import org.json.JSONException;
|
|
import org.json.JSONObject;
|
|
|
|
@Data
|
|
public class Video {
|
|
|
|
private long id;
|
|
private String video_name;
|
|
private String video_path;
|
|
private long auth_id;
|
|
private long human;
|
|
private long isdelete;
|
|
private String create_time;
|
|
private String end_time;
|
|
private String delete_time;
|
|
private String file_size;
|
|
private long camera_id;
|
|
|
|
|
|
public long getId() {
|
|
return id;
|
|
}
|
|
|
|
public long getCamera_id() {
|
|
return camera_id;
|
|
}
|
|
|
|
|
|
public void setId(long id) {
|
|
this.id = id;
|
|
}
|
|
|
|
|
|
public String getvideo_name() {
|
|
return video_name;
|
|
}
|
|
|
|
public void setvideo_name(String video_name) {
|
|
this.video_name = video_name;
|
|
}
|
|
|
|
|
|
public String getvideo_path() {
|
|
return video_path;
|
|
}
|
|
|
|
public void setvideo_path(String video_path) {
|
|
this.video_path = video_path;
|
|
}
|
|
|
|
|
|
public long getauth_id() {
|
|
return auth_id;
|
|
}
|
|
|
|
public void setauth_id(long auth_id) {
|
|
this.auth_id = auth_id;
|
|
}
|
|
|
|
|
|
public long getHuman() {
|
|
return human;
|
|
}
|
|
|
|
public void setHuman(long human) {
|
|
this.human = human;
|
|
}
|
|
|
|
|
|
public long getIsdelete() {
|
|
return isdelete;
|
|
}
|
|
|
|
public void setIsdelete(long isdelete) {
|
|
this.isdelete = isdelete;
|
|
}
|
|
|
|
|
|
public String getcreate_time() {
|
|
return create_time;
|
|
}
|
|
|
|
public void setcreate_time(String create_time) {
|
|
this.create_time = create_time;
|
|
}
|
|
|
|
|
|
public String getdelete_time() {
|
|
return delete_time;
|
|
}
|
|
|
|
public void setdelete_time(String delete_time) {
|
|
this.delete_time = delete_time;
|
|
}
|
|
|
|
public JSONObject getJSON() throws JSONException {
|
|
JSONObject jsonObject=new JSONObject();
|
|
jsonObject.put("id",this.id);
|
|
jsonObject.put("camera_id",this.camera_id);
|
|
jsonObject.put("video_name",this.video_name);
|
|
jsonObject.put("video_path",this.video_path);
|
|
jsonObject.put("auth_id",this.auth_id);
|
|
jsonObject.put("human",this.human);
|
|
jsonObject.put("isdelete",this.isdelete);
|
|
jsonObject.put("create_time",this.create_time);
|
|
jsonObject.put("end_time",this.end_time);
|
|
jsonObject.put("delete_time",this.delete_time);
|
|
jsonObject.put("file_size",this.file_size);
|
|
return jsonObject;
|
|
}
|
|
|
|
}
|