Mas Calendar é um objeto ne? nao tem como ir no path, só se vc formatar essa data para String e passar no path, ou passar no body ...
Em ter, 29 de set de 2015 às 08:47, Raphael Rezzieri <rezzieri@gmail.com> escreveu:
Estou realizando a seguinte requisição, passando data Calendar para interface.--@GET("objec/{dataIni},{dataFim}")
Call<Object> getObject(@Path("dataIni") Calendar dataIni, @Path("dataFim") Calendar dataFim);
Do lado do servidor:(VRaptor)@Get("/object/{dataIni},{dataFim}")
@AutenticaMobile
public void getObject(Calendar dataIni, Calendar dataFim){
//impl
}
Os argumentos Calendar estão vindo NULL.
Minha dúvida é se na requisição é da forma mencionada que se deve fazer?
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.






0 comentários:
Postar um comentário