vc pode ver aq --> square.github.io/retrofit/
Em ter, 29 de set de 2015 às 09:13, Raphael Rezzieri <rezzieri@gmail.com> escreveu:
Mas no caso, sendo dois parâmetros, como vou mandar dois @body?
E no caso, se for um endpoint como abaixo:
"/object/{codId},{dataIni},{dataFim}"
Qual seria a recomendação?
Vlw
Em terça-feira, 29 de setembro de 2015 08:47:11 UTC-4, Raphael Rezzieri 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