package com.pengrad.telegrambot.model;

/**
 * stas
 * 1/20/16.
 */
public class ChosenInlineResult {

    private String result_id;
    private User from;
    private String query;

    ChosenInlineResult() {
    }

    public String resultId() {
        return result_id;
    }

    public User from() {
        return from;
    }

    public String query() {
        return query;
    }

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

        ChosenInlineResult that = (ChosenInlineResult) o;

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

    }

    @Override
    public int hashCode() {
        return result_id != null ? result_id.hashCode() : 0;
    }

    @Override
    public String toString() {
        return "ChosenInlineResult{" +
                "result_id='" + result_id + '\'' +
                ", from=" + from +
                ", query='" + query + '\'' +
                '}';
    }
}

@@ -145,24 +145,93 @@
  User from;%0A
+    private Location location;%0A    private String inline_message_id;%0A
     private 
@@ -244,16 +244,16 @@
  query;%0A
-
 %0A    Cho
@@ -388,32 +388,176 @@
 rn from;%0A    %7D%0A%0A
+    public Location location() %7B%0A        return location;%0A    %7D%0A%0A    public String inlineMessageId() %7B%0A        return inline_message_id;%0A    %7D%0A%0A
     public Strin
@@ -996,32 +996,284 @@
 ) return false;%0A
+        if (location != null ? !location.equals(that.location) : that.location != null) return false;%0A        if (inline_message_id != null ? !inline_message_id.equals(that.inline_message_id) : that.inline_message_id != null)%0A            return false;%0A
         return q
@@ -1579,32 +1579,32 @@
 ult_id + '%5C'' +%0A
-
                 
@@ -1622,16 +1622,128 @@
  from +%0A
+                %22, location=%22 + location +%0A                %22, inline_message_id='%22 + inline_message_id + '%5C'' +%0A
         

Add location and inline_message_id to the ChosenInlineResult