package com.pengrad.telegrambot.model;

/**
 * stas
 * 1/12/16.
 */
public class InlineQuery {

    private String id;
    private User from;
    private String query;
    private String offset;

    InlineQuery() {
    }

    public String id() {
        return id;
    }

    public User from() {
        return from;
    }

    public String query() {
        return query;
    }

    public String offset() {
        return offset;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        InlineQuery that = (InlineQuery) o;

        if (id != null ? !id.equals(that.id) : that.id != null) return false;
        if (from != null ? !from.equals(that.from) : that.from != null) return false;
        if (query != null ? !query.equals(that.query) : that.query != null) return false;
        return offset != null ? offset.equals(that.offset) : that.offset == null;
    }

    @Override
    public int hashCode() {
        return id.hashCode();
    }

    @Override
    public String toString() {
        return "InlineQuery{" +
                "id='" + id + '\'' +
                ", from=" + from +
                ", query='" + query + '\'' +
                ", offset='" + offset + '\'' +
                '}';
    }
}

@@ -131,24 +131,55 @@
  User from;%0A
+    private Location location;%0A
     private 
@@ -188,24 +188,24 @@
 ring query;%0A
-
     private 
@@ -343,32 +343,97 @@
 rn from;%0A    %7D%0A%0A
+    public Location location() %7B%0A        return location;%0A    %7D%0A%0A
     public Strin
@@ -889,32 +889,134 @@
 ) return false;%0A
+        if (location != null ? !location.equals(that.location) : that.location != null) return false;%0A
         if (quer
@@ -1171,16 +1171,17 @@
 = null;%0A
+%0A
     %7D%0A%0A 
@@ -1364,32 +1364,32 @@
 %22 + id + '%5C'' +%0A
-
                 
@@ -1407,16 +1407,59 @@
  from +%0A
+                %22, location=%22 + location +%0A
         

Add location to the InlineQuery