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

com.gizwits.noti2.client.NotiEvent 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/9/30.
 * noti客户端生命周期的回调事件
 */
public enum NotiEvent {

    @SerializedName("init")
    INIT("init"),
    @SerializedName("start")
    SATRT("start"),
    @SerializedName("restart")
    RESATRT("restart"),
    @SerializedName("destory")
    DESTORY("destory");

    private String name;

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

    public String getName() {
        return name;
    }

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

    public static NotiEvent getEvent(String name) {
        for (NotiEvent event : values()) {
            if (event.getName().equals(name)) {
                return event;
            }
        }
        return null;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy