All Downloads are FREE. Search and download functionalities are using the official Maven repository.

nl.vpro.domain.media.update.MemberUpdate Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 8.3.1
Show newest version
/*
 * 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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy