Initial commit

This commit is contained in:
github-classroom[bot]
2023-11-15 07:02:37 +00:00
committed by GitHub
commit 0e8d7b5d31
23 changed files with 1452 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
package things;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
class CreationBody {
private final String url;
private final Resource.Type type;
@JsonCreator
public CreationBody(@JsonProperty("url") String url, @JsonProperty("type") Resource.Type type) {
this.url = url;
this.type = type;
}
public String getUrl() {
return url;
}
public Resource.Type getType() {
return type;
}
}