Created
February 1, 2014 11:09
-
-
Save mazurio/8750846 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@POST("/announcements") | |
Announcement insertAnnouncement( | |
@Body Announcement announcement, | |
@Query("auth") String authToken | |
); | |
public class Announcement implements Serializable { | |
public String module_id; | |
public String user_id; | |
public String title; | |
public String description; | |
public int timestamp; | |
public Announcement(String module_id, String user_id, String title, String description) { | |
this.module_id = module_id; | |
this.user_id = user_id; | |
this.title = title; | |
this.description = description; | |
this.timestamp = 0; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment