如何获得电池的价值以能够将其显示在屏幕上

时间:2019-07-19 01:00:24

标签: java json websocket

这是电池的代码

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;
    }

}

0 个答案:

没有答案