io.induct.yle.api.programs.domain.items.GenericItem Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of yle-api Show documentation
Show all versions of yle-api Show documentation
Uploads all artifacts belonging to configuration ':archives'
The newest version!
package io.induct.yle.api.programs.domain.items;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.induct.yle.api.YleId;
import io.induct.yle.api.programs.domain.Item;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* @since 2015-05-30
*/
public class GenericItem extends Item {
private final Logger log = LoggerFactory.getLogger(GenericItem.class);
@JsonCreator
public GenericItem(@JsonProperty("id") YleId identity,
@JsonProperty("type") String type) {
super(identity);
log.warn("Unknown type '{}' mapped to GenericItem; library needs to be updated for support", type);
}
}