package com.hdl.sdk.link.socket.annotation;
|
|
import androidx.annotation.IntDef;
|
|
import java.lang.annotation.ElementType;
|
import java.lang.annotation.Target;
|
|
/**
|
* Created by Tong on 2021/9/22.
|
*/
|
@Target({ElementType.TYPE_PARAMETER, ElementType.PARAMETER})
|
@IntDef({ConnectStatus.CONNECTING,
|
ConnectStatus.CONNECTED,
|
ConnectStatus.DISCONNECT})
|
public @interface ConnectStatus {
|
|
/**
|
* 连接中
|
*/
|
int CONNECTING = 0;
|
|
/**
|
* 连接成功
|
*/
|
int CONNECTED = 1;
|
|
/**
|
* 连接关闭
|
*/
|
int DISCONNECT = 2;
|
}
|