-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathClientResponse.java
executable file
·48 lines (35 loc) · 1015 Bytes
/
ClientResponse.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
public class ClientResponse extends MessageBase{
public Integer TransactionNo = null;
public MessageType type = null;
public String source = null;
public String msg = null;
public ClientResponse(String source, MessageType type, Integer transNo)
{
this.source = source;
this.type = type;
this.TransactionNo = transNo;
}
public ClientResponse(String source, MessageType type, Integer transNo,String msg)
{
this.source = source;
this.type = type;
this.TransactionNo = transNo;
this.msg = msg;
}
public ClientResponse(String source,MessageType type, String scanMsg)
{
this.source = source;
this.type = type;
this.msg = scanMsg;
}
@Override
public String toString() {
StringBuffer buffer = new StringBuffer();
buffer.append("Source : "+source+" \n");
buffer.append("Type : "+type+" \n");
buffer.append("Trans Number : "+TransactionNo+" \n");
if(msg != null)
buffer.append(msg);
return buffer.toString();
}
}