Skip to content

Instantly share code, notes, and snippets.

@Mekapiku
Last active August 29, 2015 14:06
Show Gist options
  • Save Mekapiku/48bef9bb06db2bf3fc5e to your computer and use it in GitHub Desktop.
Save Mekapiku/48bef9bb06db2bf3fc5e to your computer and use it in GitHub Desktop.
GsonでJsonのフィールド命名規則を変更する
class ResponseObject {
@SerializedName("room_id")
private Long roomId;
public Long getRoomId() {
return roomId;
}
public void setRoomId(Long roomId) {
this.roomId = roomId;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment