-
Notifications
You must be signed in to change notification settings - Fork 2
/
SMSNotifcation.php
94 lines (78 loc) · 2.25 KB
/
SMSNotifcation.php
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
<?php
class SMSNotifcation {
private $applicationId;
private $password;
private $charging_amount;
private $encoding;
private $version;
private $deliveryStatusRequest;
private $binaryHeader;
private $sourceAddress;
private $address;
private $serverURL;
public function getVersion(){
return $this->version;
}
// Get the encoding of the incomming message
public function getEncoding(){
return $this->encoding;
}
// Get the Application of the incomming message
public function getApplicationId(){
return $this->applicationId;
}
// Get the address of the incomming message
public function getSourceAddress(){
return $this->sourceAddress;
}
public function getAddress(){
return $this->address;
}
// Get the Message of the incomming request
public function getMessage(){
return $this->message;
}
// Get the unique requestId of the incomming message
public function getRequestId(){
return $this->requestId;
}
/**
* Setters
*/
public function setApplicationId($applicationId) {
$this->applicationId = $applicationId;
}
public function setDestinationAddress($address) {
$this->address = $address;
}
public function setSourceAddress($sourceAddress){
$this->sourceAddress=$sourceAddress;
}
public function setCharging_amount($charging_amount){
$this->charging_amount=$charging_amount;
}
public function setEncoding($encoding){
$this->encoding=$encoding;
}
public function setVersion($version){
$this->version=$version;
}
public function setBnaryHeader($binaryHeader){
$this->binaryHeader=$binaryHeader;
}
public function setDeliveryStatusRequest($deliveryStatusRequest){
$this->deliveryStatusRequest=$deliveryStatusRequest;
}
/**
* Return the values of all the parameters
*/
public function toString() {
/*$vars = get_object_vars($this);
$str = "";
foreach ($vars as $name => $value) {
$str = $str.$name.":".$value.",";
}
return $str;*/
return json_encode($this);
}
}?>