package com.tejia.lijin.app.entity;
|
|
import android.os.Parcel;
|
import android.os.Parcelable;
|
|
import com.alibaba.fastjson.JSONObject;
|
import com.google.gson.annotations.Expose;
|
|
public class HotKey implements Parcelable {
|
@Expose
|
String name;
|
@Expose
|
JSONObject params;
|
|
public String getName() {
|
return name;
|
}
|
|
public void setName(String name) {
|
this.name = name;
|
}
|
|
public JSONObject getParams() {
|
return params;
|
}
|
|
public void setParams(JSONObject params) {
|
this.params = params;
|
}
|
|
|
@Override
|
public int describeContents() {
|
return 0;
|
}
|
|
@Override
|
public void writeToParcel(Parcel dest, int flags) {
|
dest.writeString(this.name);
|
dest.writeSerializable(this.params);
|
}
|
|
public HotKey() {
|
}
|
|
protected HotKey(Parcel in) {
|
this.name = in.readString();
|
this.params = (JSONObject) in.readSerializable();
|
}
|
|
public static final Creator<HotKey> CREATOR = new Creator<HotKey>() {
|
@Override
|
public HotKey createFromParcel(Parcel source) {
|
return new HotKey(source);
|
}
|
|
@Override
|
public HotKey[] newArray(int size) {
|
return new HotKey[size];
|
}
|
};
|
}
|