-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathMms.java
More file actions
59 lines (42 loc) · 883 Bytes
/
Copy pathMms.java
File metadata and controls
59 lines (42 loc) · 883 Bytes
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
package pl.smsapi.message;
import pl.smsapi.SmsapiException;
import pl.smsapi.sender.Sender;
public final class Mms extends Message {
protected SmilInterface smil;
public Mms() {
setPath("mms.do");
}
public Mms(Sender sender) {
this();
setSender(sender);
}
@Override
public String getObjMessage() {
if (smil == null) {
throw new SmsapiException("Smil not exists");
}
return smil.render();
}
public String getSubject() {
return params.get("subject");
}
public void setSubject(String subject) {
params.put("subject", subject);
}
public SmilInterface smil() {
if (smil == null) {
smil = new Smil();
}
return smil;
}
public SmilInterface smil(String content) {
if (smil == null) {
smil = new Smil(content);
}
return smil;
}
public SmilInterface smil(SmilInterface smil) {
this.smil = smil;
return this.smil;
}
}