Advertisement
Guest User

Untitled

a guest
Sep 26th, 2016
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. public interface ApiCommands {
  2.  
  3. @GET("/archive/")
  4. List<Archive> archiveList();
  5.  
  6.  
  7. @POST("/mark_emergency/")
  8. void markEmergency(@Body List<String> files, Callback<Void> cb);
  9.  
  10. @POST("/unmark_emergency/")
  11. void unmarkEmergency(@Body List<String> files, Callback<Void> cb);
  12.  
  13. @POST("/delete/")
  14. void delete(@Body List<String> files, Callback<Void> cb);
  15.  
  16. @GET("/info/")
  17. void info(Callback<About> cb);
  18.  
  19. @POST("/update/")
  20. void update(@Body TypedFile file, Callback<Void> cb);
  21.  
  22. @GET("/active/")
  23. void active(Callback<List<Integer>> cb);
  24.  
  25. @GET("/action/{path}")
  26. void action(@Path("path") int id, Callback<Void> cb);
  27.  
  28. @GET("/set_time/{unixtime_GMT}/{time_zone_name}")
  29. void set_time(@Path("unixtime_GMT") long time, @Path("time_zone_name") String tz, Callback<Void> cb);
  30.  
  31. @GET("/make_photo")
  32. void makePhoto(Callback<Void> cb);
  33.  
  34. @GET("/mark_emergency_current")
  35. void markEmergencyRealtime(Callback<Void> cb);
  36.  
  37. @GET("/recording_status")
  38. void recordingStatus (Callback<Integer> cb);
  39.  
  40. @GET("/toggle_recording")
  41. void toogleRecording(Callback<Void> cb);
  42.  
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement