I am new to retrofit and I know to send serialized objects to and from the server.
Earlier I used to create java objects and use gson for converting.
What is ResponseBody used for?
What does the below text mean?
A one-shot stream from the origin server to the client application with the raw bytes of the * response body. Each response body is supported by an active connection to the webserver. This * imposes both obligations and limits on the client application.
@Headers("Authorization: Key=$SERVER_KEY", "Content-Type:$CONTENT_TYPE")
@POST("fcm/send")
suspend fun postNotification(@Body notification: NotificationData): Response<ResponseBody>
The above code is what I am trying to understand