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

com.glookast.commons.capture.VTRStatus Maven / Gradle / Ivy

Go to download

Helper classes with Jackson annotations for easy interfacing with Glookast Products

There is a newer version: 3.1.6
Show newest version
package com.glookast.commons.capture;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.glookast.commons.timecode.TimecodeDuration;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, defaultImpl = VTRStatus.class)
public class VTRStatus
{
    protected VTRDeckType deckType;
    protected VTRState state;
    protected VTRStatusDetail detail;
    protected TimecodeDuration prerollDuration;

    public VTRStatus(VTRStatus vtrStatus)
    {
        deckType = vtrStatus.deckType != null ? new VTRDeckType(deckType) : null;
        state = vtrStatus.state;
        detail = vtrStatus.detail != null ? new VTRStatusDetail(detail) : null;
        prerollDuration = vtrStatus.prerollDuration;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy