-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconnectionStatus.java
53 lines (46 loc) · 1009 Bytes
/
connectionStatus.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
public abstract class connectionStatus {
public abstract Status getStatus();
public abstract void setStatus(Status newTyp);
public abstract TransferStatus getTransfer();
public abstract void setTransfer(TransferStatus newTyp);
public enum Status
{
Activ("Activ", 0),
Inactiv("Inactiv", 1);
private final int m_value;
private final String m_name;
Status(String name, int valu)
{
this.m_name = name;
this.m_value = valu;
}
public int getValue()
{
return this.m_value;
}
public String getName()
{
return this.m_name;
}
}
public enum TransferStatus
{
Keep_Alive("Alive", true),
Keep_Close("Close", false);
private final boolean m_value;
private final String m_name;
TransferStatus(String name, boolean value)
{
this.m_name = name;
this.m_value = value;
}
public boolean getValue()
{
return this.m_value;
}
public String getName()
{
return this.m_name;
}
}
}