package com.vk.api.sdk.objects.messages.responses;

import com.google.gson.annotations.SerializedName;
import com.vk.api.sdk.objects.base.BoolInt;
import com.vk.api.sdk.objects.messages.Chat;
import com.vk.api.sdk.objects.messages.LongpollMessages;
import com.vk.api.sdk.objects.users.User;

import java.util.List;
import java.util.Objects;

/**
 * GetLongPollHistoryResponse object
 */
public class GetLongPollHistoryResponse {

    @SerializedName("history")
    private List<List<Integer>> history;

    @SerializedName("messages")
    private LongpollMessages messages;

    @SerializedName("profiles")
    private List<User> profiles;

    @SerializedName("chats")
    private List<Chat> chats;

    @SerializedName("new_pts")
    private Integer newPts;

    @SerializedName("more")
    private BoolInt more;

    public List<List<Integer>> getHistory() {
        return history;
    }

    public LongpollMessages getMessages() {
        return messages;
    }

    public List<User> getProfiles() {
        return profiles;
    }

    public List<Chat> getChats() {
        return chats;
    }

    public Integer getNewPts() {
        return newPts;
    }

    public BoolInt getMore() {
        return more;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        GetLongPollHistoryResponse that = (GetLongPollHistoryResponse) o;
        return Objects.equals(history, that.history) &&
                Objects.equals(messages, that.messages) &&
                Objects.equals(profiles, that.profiles) &&
                Objects.equals(chats, that.chats) &&
                Objects.equals(newPts, that.newPts) &&
                more == that.more;
    }

    @Override
    public int hashCode() {
        return Objects.hash(history, messages, profiles, chats, newPts, more);
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("GetLongPollHistoryResponse{");
        sb.append("history=").append(history);
        sb.append(", messages=").append(messages);
        sb.append(", profiles=").append(profiles);
        sb.append(", chats=").append(chats);
        sb.append(", newPts=").append(newPts);
        sb.append(", more=").append(more);
        sb.append('}');
        return sb.toString();
    }
}

@@ -140,16 +140,60 @@
 oolInt;%0A
+import com.vk.api.sdk.objects.groups.Group;%0A
 import c
@@ -229,16 +229,16 @@
 s.Chat;%0A
-
 import c
@@ -674,24 +674,87 @@
  profiles;%0A%0A
+    @SerializedName(%22groups%22)%0A    private List%3CGroup%3E groups;%0A%0A
     @Seriali
@@ -1131,32 +1131,99 @@
 rofiles;%0A    %7D%0A%0A
+    public List%3CGroup%3E getGroups() %7B%0A        return groups;%0A    %7D%0A%0A
     public List%3C
@@ -1791,24 +1791,84 @@
 rofiles) &&%0A
+                Objects.equals(groups, that.getGroups()) &&%0A
             
@@ -2103,16 +2103,24 @@
 rofiles,
+ groups,
  chats, 
@@ -2363,24 +2363,24 @@
 (messages);%0A
-
         sb.a
@@ -2414,24 +2414,71 @@
 (profiles);%0A
+        sb.append(%22, groups=%22).append(groups);%0A
         sb.a

Add 'groups' field to 'GetLongPollHistoryResponse' method