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
Post a Comment