| | |
| | | package com.hdl.sdk.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 {
|
| | |
|
| | | public class ConnectStatus {
|
| | |
|
| | | /**
|
| | | * 连接中
|
| | | */
|
| | | int CONNECTING = 0;
|
| | | public static final int CONNECTING = 0;
|
| | |
|
| | | /**
|
| | | * 连接成功
|
| | | */
|
| | | int CONNECTED = 1;
|
| | | public static final int CONNECTED = 1;
|
| | |
|
| | | /**
|
| | | * 连接关闭
|
| | | */
|
| | | int DISCONNECT = 2;
|
| | | public static final int DISCONNECT = 2;
|
| | | }
|