Is it possible to recieve only String response using Retrofit library? I have a situation where I need to add Query on my link so that link is looking like :
localhost//Register?handle=SomeID
SomeID is integer and when I do that I will receive response from server in string format that consist of 20 chars. How can I get that response? Can Retrofit even handle response that is not in Json format?
Also how should I create this :
@GET("/api/UserMainInformations")
Call getUserMainInfo();
That's example from some other call but now I won't have any model to send it cuz I only add it on Query. What should i put in Call<> ;
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…