blob: e78a724765b74ce340563571fabd2fcb7a061220 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
/*
* Copyright (c) 2011 Isode Limited, London, England.
* All rights reserved.
*/
/*
* Copyright (c) 2011 Kevin Smith
* All rights reserved.
*/
package com.isode.stroke.serializer.payloadserializers;
import com.isode.stroke.elements.Last;
import com.isode.stroke.serializer.GenericPayloadSerializer;
public class LastSerializer extends GenericPayloadSerializer<Last> {
public LastSerializer() {
super(Last.class);
}
@Override
protected String serializePayload(Last last) {
return "<query xmlns='jabber:iq:last' seconds='" + Integer.toString(last.getSeconds()) + "'/>";
}
}
|