Newer
Older
CactusServer / src / main / java / cactusServer / entities / IDAddressedEntity.java
  1. package cactusServer.entities;
  2.  
  3. public class IDAddressedEntity extends AddressedEntity{
  4. private String id;
  5.  
  6. private IDAddressedEntity() {
  7. // JSONDecode時の呼び出し用
  8. }
  9. public IDAddressedEntity(String id, Entity body) {
  10. super(body);
  11. setId(id);
  12. }
  13.  
  14. public String getId() {
  15. return id;
  16. }
  17.  
  18. public void setId(String id) {
  19. this.id = id;
  20. }
  21. }