This repository has been archived on 2024-01-25. You can view files and clone it, but cannot push or open issues or pull requests.
SDi-Servlet/src/main/java/things/CreationBody.java
github-classroom[bot] 0e8d7b5d31
Initial commit
2023-11-15 07:02:37 +00:00

24 lines
512 B
Java

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;
}
}