org.telegram.api.input.geopoint.TLInputGeoPoint Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of telegramapi Show documentation
Show all versions of telegramapi Show documentation
Java library to create Telegram Clients
package org.telegram.api.input.geopoint;
import org.telegram.tl.StreamingUtils;
import org.telegram.tl.TLContext;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
/**
* The type TL input geo point.
*/
public class TLInputGeoPoint extends TLAbsInputGeoPoint {
/**
* The constant CLASS_ID.
*/
public static final int CLASS_ID = 0xf3b7acc9;
private double lat;
private double lon;
/**
* Instantiates a new TL input geo point.
*/
public TLInputGeoPoint() {
super();
}
@Override
public int getClassId() {
return CLASS_ID;
}
@Override
public void serializeBody(OutputStream stream)
throws IOException {
StreamingUtils.writeDouble(this.lat, stream);
StreamingUtils.writeDouble(this.lon, stream);
}
@Override
public void deserializeBody(InputStream stream, TLContext context)
throws IOException {
this.lat = StreamingUtils.readDouble(stream);
this.lon = StreamingUtils.readDouble(stream);
}
@Override
public String toString() {
return "inputGeoPoint#f3b7acc9";
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy