
com.gizwits.noti2.client.NotiEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of noti-netty-client Show documentation
Show all versions of noti-netty-client Show documentation
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
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