Skip to content

Instantly share code, notes, and snippets.

@lukaszkalnik
Last active February 10, 2020 15:26
Show Gist options
  • Save lukaszkalnik/46f1f7cc5d129615509b1572794799df to your computer and use it in GitHub Desktop.
Save lukaszkalnik/46f1f7cc5d129615509b1572794799df to your computer and use it in GitHub Desktop.
package net.grandcentrix.gatewayapi.data.remote
internal interface GatewayApi {
@GET("lights/{roomId}")
suspend fun getLights(@Path("roomId") roomId: String): Response<Entity>
@GET("system")
suspend fun getSystemDetail(): Response<Entity>
companion object {
fun create(baseUrl: String): GatewayApi = // Retrofit...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment