package com.proxerme.library.connection.messenger.result;

import com.proxerme.library.connection.ProxerResult;
import com.proxerme.library.connection.messenger.entity.Message;

public final class MessagesResult extends ProxerResult<Message[]> {

    private Message[] messages;

    private MessagesResult() {
    }

    @Override
    public Message[] getData() {
        return messages;
    }
}

package com.proxerme.library.connection.messenger.result;

import com.proxerme.library.connection.ProxerResult;
import com.proxerme.library.connection.messenger.entity.Message;
import com.squareup.moshi.Json;

public final class MessagesResult extends ProxerResult<Message[]> {

    @Json(name = "data")
    private Message[] messages;

    private MessagesResult() {
    }

    @Override
    public Message[] getData() {
        return messages;
    }
}

Fix MessagesRequest