-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRequest.java
More file actions
73 lines (55 loc) · 1.37 KB
/
Request.java
File metadata and controls
73 lines (55 loc) · 1.37 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
package wish;
import org.bson.BsonDocument;
import java.io.Serializable;
import java.util.Arrays;
/**
* Created by jeppe on 2/27/17.
*/
public class Request implements Serializable{
private byte[] luid;
private byte[] ruid;
private String alias;
private byte[] pubkey;
private BsonDocument meta;
public byte[] getLuid() {
return luid;
}
public void setLuid(byte[] luid) {
this.luid = luid;
}
public byte[] getRuid() {
return ruid;
}
public void setRuid(byte[] ruid) {
this.ruid = ruid;
}
public String getAlias() {
return alias;
}
public void setAlias(String alias) {
this.alias = alias;
}
public byte[] getPubkey() {
return pubkey;
}
public void setPubkey(byte[] pubkey) {
this.pubkey = pubkey;
}
public BsonDocument getMeta() {
return meta;
}
public void setMeta(BsonDocument meta) {
this.meta = meta;
}
@Override
public boolean equals(Object other) {
if (!(other instanceof Request)) {
return false;
}
Request that = (Request) other;
return Arrays.equals(this.luid, that.luid)
&& Arrays.equals(this.ruid, that.ruid)
&& Arrays.equals(this.pubkey, that.pubkey)
&& this.alias.equals(that.alias);
}
}