// Path: src/milk/telegram/type/file/Location.java
// public class Location{
// 
//     private final double latitude;
//     private final double longitude;
// 
//     private Location(JSONObject object){
//         this.latitude = object.getDouble("latitude");
//         this.longitude = object.getDouble("longitude");
//     }
// 
//     public static Location create(JSONObject object){
//         if(object == null){
//             return null;
//         }
//         return new Location(object);
//     }
// 
//     public double getLatitude(){
//         return latitude;
//     }
// 
//     public double getLongitude(){
//         return longitude;
//     }
// 
// }


import milk.telegram.type.file.Location;
import org.json.JSONObject;
package milk.telegram.type.message;


public class LocationMessage extends Message{

    private Location location;

    public LocationMessage(JSONObject object){
        super(object);
// Path: src/milk/telegram/type/file/Location.java
// public class Location{
// 
//     private final double latitude;
//     private final double longitude;
// 
//     private Location(JSONObject object){
//         this.latitude = object.getDouble("latitude");
//         this.longitude = object.getDouble("longitude");
//     }
// 
//     public static Location create(JSONObject object){
//         if(object == null){
//             return null;
//         }
//         return new Location(object);
//     }
// 
//     public double getLatitude(){
//         return latitude;
//     }
// 
//     public double getLongitude(){
//         return longitude;
//     }
// 
// }


// Path: src/milk/telegram/type/message/LocationMessage.java
import milk.telegram.type.file.Location;
import org.json.JSONObject;

package milk.telegram.type.message;


public class LocationMessage extends Message{

    private Location location;

    public LocationMessage(JSONObject object){
        super(object);
        this.location = Location.create(object.getJSONObject("location"));