All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.gizwits.noti2.client.DataCommand Maven / Gradle / Ivy

Go to download

Enterprise customers can use the secure data transmission channel provided by SNoti, real-time data collection equipment, equipment for information sorting, equipment status statistics, equipment monitoring, etc .; can also remote control function, real-time transmission of business instructions to control online equipment

There is a newer version: 0.1.7
Show newest version
package com.gizwits.noti2.client;

import com.google.gson.annotations.SerializedName;

/**
 * Created by feel on 2017/6/17.
 */
public enum DataCommand {

    @SerializedName("write_attrs")
    WRITE_ATTRS("write_attrs"),
    @SerializedName("write")
    WRITE("write"),
    @SerializedName("write_v1")
    WRITE_V1("write_v1");

    private String name;

    DataCommand(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public static DataCommand getCmd(String name) {
        for (DataCommand cmd : values()) {
            if (cmd.getName().equals(name)) {
                return cmd;
            }
        }
        return null;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy