-
Notifications
You must be signed in to change notification settings - Fork 79
Expand file tree
/
Copy pathHlr.java
More file actions
123 lines (106 loc) · 2.82 KB
/
Hlr.java
File metadata and controls
123 lines (106 loc) · 2.82 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
package com.messagebird.objects;
import java.math.BigInteger;
import java.util.Date;
/**
* MessageBird provides an API to send Network Queries to any mobile number across the world.
*
* An HLR allows you to view which mobile number (MSISDN) belongs to what operator in real time and see whether the number is active.
* This object is returned after a Hlr request to MessageBird
*
* Created by rvt on 1/7/15.
*/
public class Hlr {
private String id;
private String href;
private BigInteger msisdn;
private String network;
private String reference;
private String status;
private Date createdDatetime;
private Date statusDatetime;
private HlrDetails details;
public Hlr() {
}
@Override
public String toString() {
return "Hlr{" +
"id='" + id + '\'' +
", href='" + href + '\'' +
", msisdn=" + msisdn +
", network='" + network + '\'' +
", reference='" + reference + '\'' +
", details='" + details + '\'' +
", status='" + status + '\'' +
", createdDatetime=" + createdDatetime +
", statusDatetime=" + statusDatetime +
'}';
}
/**
* An unique random ID which is created on the MessageBird platform and is returned upon creation of the object.
* @return
*/
public String getId() {
return id;
}
/**
* The URL of the created object.
* @return
*/
public String getHref() {
return href;
}
/**
* The telephone number.
* @return
*/
public BigInteger getPhoneNumber() {
return msisdn;
}
public void setPhoneNumber(BigInteger msisdn) {
this.msisdn = msisdn;
}
/**
* The MCCMNC code of the network provider
* @return
*/
public String getNetwork() {
return network;
}
/**
* A client reference
* @return
*/
public String getReference() {
return reference;
}
public void setReference(String reference) {
this.reference = reference;
}
/**
* The status of the msisdns. Possible values: sent, absent, active, unknown, and failed
* @return
*/
public String getStatus() {
return status;
}
/**
* The date and time of the creation of the message in RFC3339 format (Y-m-d\TH:i:sP)
* @return
*/
public Date getCreatedDatetime() {
return createdDatetime;
}
/**
* The datum time of the last status in RFC3339 format (Y-m-d\TH:i:sP)
* @return
*/
public Date getStatusDatetime() {
return statusDatetime;
}
public HlrDetails getDetails() {
return details;
}
public void setDetails(HlrDetails details) {
this.details = details;
}
}