99 lines
2.0 KiB
Java
99 lines
2.0 KiB
Java
package com.fuying.sn.bean;
|
||
|
||
import androidx.annotation.NonNull;
|
||
|
||
import com.google.gson.Gson;
|
||
import com.google.gson.JsonParser;
|
||
|
||
import java.io.Serializable;
|
||
import java.util.List;
|
||
|
||
public class AppTimeControlInfo implements Serializable {
|
||
private static final long serialVersionUID = 8299581486763443394L;
|
||
|
||
String app_name;
|
||
String app_package;
|
||
/**
|
||
* 0不管控,1时长管控,2时间段管控
|
||
*/
|
||
int control_type;
|
||
/**
|
||
* 0 禁用,1 未禁用
|
||
*/
|
||
int is_control;
|
||
long work_time;
|
||
long rest_time;
|
||
List<PartTime> time_part;
|
||
long today_time;
|
||
|
||
public String getApp_name() {
|
||
return app_name;
|
||
}
|
||
|
||
public void setApp_name(String app_name) {
|
||
this.app_name = app_name;
|
||
}
|
||
|
||
public String getApp_package() {
|
||
return app_package;
|
||
}
|
||
|
||
public void setApp_package(String app_package) {
|
||
this.app_package = app_package;
|
||
}
|
||
|
||
public int getControl_type() {
|
||
return control_type;
|
||
}
|
||
|
||
public void setControl_type(int control_type) {
|
||
this.control_type = control_type;
|
||
}
|
||
|
||
public int getIs_control() {
|
||
return is_control;
|
||
}
|
||
|
||
public void setIs_control(int is_control) {
|
||
this.is_control = is_control;
|
||
}
|
||
|
||
public long getWork_time() {
|
||
return work_time;
|
||
}
|
||
|
||
public void setWork_time(long work_time) {
|
||
this.work_time = work_time;
|
||
}
|
||
|
||
public long getRest_time() {
|
||
return rest_time;
|
||
}
|
||
|
||
public void setRest_time(long rest_time) {
|
||
this.rest_time = rest_time;
|
||
}
|
||
|
||
public List<PartTime> getTime_part() {
|
||
return time_part;
|
||
}
|
||
|
||
public void setTime_part(List<PartTime> time_part) {
|
||
this.time_part = time_part;
|
||
}
|
||
|
||
public long getToday_time() {
|
||
return today_time;
|
||
}
|
||
|
||
public void setToday_time(long today_time) {
|
||
this.today_time = today_time;
|
||
}
|
||
|
||
@NonNull
|
||
@Override
|
||
public String toString() {
|
||
return JsonParser.parseString(new Gson().toJson(this)).getAsJsonObject().toString();
|
||
}
|
||
}
|