mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2025-12-14 00:51:19 +01:00
Change IQ.Type to enum
This commit is contained in:
parent
944ac37fc3
commit
9be0c480e3
90 changed files with 284 additions and 299 deletions
|
|
@ -43,7 +43,7 @@ public class Time extends IQ {
|
|||
private String tzo;
|
||||
|
||||
public Time() {
|
||||
setType(Type.GET);
|
||||
setType(Type.get);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -123,7 +123,7 @@ public class Time extends IQ {
|
|||
|
||||
public static Time createResponse(Packet request) {
|
||||
Time time = new Time(Calendar.getInstance());
|
||||
time.setType(Type.RESULT);
|
||||
time.setType(Type.result);
|
||||
time.setTo(request.getFrom());
|
||||
return time;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue