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 -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -