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 -

Python Tornado package error when running server -

Qt QGraphicsScene is not accessable from QGraphicsView (on Qt 5.6.1) -