Commit d00f2db2 authored by Grzegorz Pietrusza's avatar Grzegorz Pietrusza

json propoerty write

parent b25409d3
package com.telephoners.krakyournet.ctf.beans; package com.telephoners.krakyournet.ctf.beans;
import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty;
public class Flag { public class Flag {
private String value; private String value;
...@@ -16,12 +16,12 @@ public class Flag { ...@@ -16,12 +16,12 @@ public class Flag {
this.points = points; this.points = points;
} }
// @JsonIgnore //TODO!! @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
public String getValue() { public String getValue() {
return value; return value;
} }
// @JsonIgnore //TODO!! @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
public void setValue(String value) { public void setValue(String value) {
this.value = value; this.value = value;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment