android - how to Have different ExclusionStrategy for request and response in retrofit? -


i've implemented this answer want different strategies excluding fields in "request" , "response". how can that?

update: example, want send name , last name in request , exclude others in response want email included.

model:

public class user{ @expose @serializedname("id") private string mremoteid;  @expose @column(name = "name") @serializedname("name") private string mname;  @expose @column(name = "lastname") @serializedname("lastname") private string mlastname;  @expose @column(name = "email") @serializedname("email") private string memail;  @expose @column(name = "password") @serializedname("password") private string mpassword; } 


Comments

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -