blob: 1d9c55c2e1d9dbacf0f4e3d7dac2d8f45e160dbc (
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-2013 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()) + "'/>";
}
}
|