Back to project page blink.
The source code is released under:
Apache License
If you think the Android project blink listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.nashlincoln.blink.network; /*from ww w.j a va 2 s .com*/ import com.nashlincoln.blink.content.Command; import com.nashlincoln.blink.model.AttributeType; import com.nashlincoln.blink.model.Device; import com.nashlincoln.blink.model.DeviceType; import com.nashlincoln.blink.model.Group; import java.util.List; import retrofit.Callback; import retrofit.client.Response; import retrofit.http.Body; import retrofit.http.GET; import retrofit.http.POST; /** * Created by nash on 10/5/14. */ public interface BlinkApiInterface { @GET("/api/devices/") public void getDevices(Callback<List<Device>> callback); @GET("/api/groups/") public void getGroups(Callback<List<Group>> callback); @GET("/api/device_types/") public void getDeviceTypes(Callback<List<DeviceType>> callback); @GET("/api/attribute_types/") public void getAttributeTypes(Callback<List<AttributeType>> callback); @POST("/api/commands/") void sendCommands(@Body List<Command> commands, Callback<Response> callback); }