mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-12-12 22:11:07 +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
|
|
@ -28,7 +28,7 @@ public class Ping extends IQ {
|
|||
|
||||
public Ping(String to) {
|
||||
setTo(to);
|
||||
setType(IQ.Type.GET);
|
||||
setType(IQ.Type.get);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ public class Pong extends IQ {
|
|||
* @param ping
|
||||
*/
|
||||
public Pong(Packet ping) {
|
||||
setType(IQ.Type.RESULT);
|
||||
setType(IQ.Type.result);
|
||||
setFrom(ping.getTo());
|
||||
setTo(ping.getFrom());
|
||||
setPacketID(ping.getPacketID());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue