android - Retrofit with Logansquare Unable to create converter for java.util.ArrayList -


i using retrofit 2 logansquare converter. here's call: @get("v1/account/notification/{accountid}") call<arraylist<message>> getunreadmessages(@path("accountid") string accountid);

and here's crash log message: caused by: java.lang.illegalargumentexception: unable create converter java.util.arraylist<com.example.datamodels.message>

my message class:

@jsonobject public class message {      @jsonfield     public string _id;     @jsonfield     public string message;     @jsonfield     public string createdat;      public message() {     } } 

is there solution this? please help.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -