这是电池的代码
package com.example.app;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
public class battery {
private String topic;
Msg MsgObject;
private String op;
public String getTopic() {
return topic;
}
public Msg getMsg() {
return MsgObject;
}
public String getOp() {
return op;
}
public void setTopic(String topic) {
this.topic = topic;
}
public void setMsg(Msg msgObject) {
this.MsgObject = msgObject;
}
public void setOp(String op) {
this.op = op;
}
}