wjc
2023-06-28 14de918a79943e4961b09fa01ed320c6cad41f2e
HDLLinkLocalSdk/src/main/java/com/hdl/sdk/link/socket/annotation/ConnectStatus.java
New file
@@ -0,0 +1,31 @@
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;
}