nl.vpro.domain.media.update.MemberUpdate Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of media-domain Show documentation
Show all versions of media-domain Show documentation
The basic domain classes for 'media', the core of POMS. Also, the 'update' XML bindings for it.
It also contains some closely related domain classes like the enum to contain NICAM kijkwijzer settings.
/*
* Copyright (C) 2012 Licensed under the Apache License, Version 2.0
* VPRO The Netherlands
*/
package nl.vpro.domain.media.update;
import lombok.*;
import jakarta.xml.bind.annotation.*;
/**
* @see nl.vpro.domain.media.update
* @see nl.vpro.domain.media.Member
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "memberUpdateType")
@XmlRootElement(name = "memberUpdate")
@EqualsAndHashCode
public class MemberUpdate {
@Setter
@XmlAttribute
private Integer position;
@Setter
@Getter
@XmlAttribute
private Long id;
@Setter
@XmlAttribute(required = true)
Boolean highlighted = false;
@XmlElement
private MediaUpdate> mediaUpdate;
public MemberUpdate() {
}
public MemberUpdate(Integer position, MediaUpdate> mediaUpdate) {
this.position = position;
this.mediaUpdate = mediaUpdate;
}
public Integer getPosition() {
return position;
}
public MediaUpdate> getMediaUpdate() {
return mediaUpdate;
}
public Boolean isHighlighted() {
return highlighted;
}
@Override
public String toString() {
return position + ":" + mediaUpdate;
}
}