public enum MidrollFrequencyType extends Enum<MidrollFrequencyType>
Java class for MidrollFrequencyType.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="MidrollFrequencyType">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="NONE"/>
<enumeration value="EVERY_N_SECONDS"/>
<enumeration value="FIXED_TIME"/>
<enumeration value="EVERY_N_CUEPOINTS"/>
<enumeration value="FIXED_CUE_POINTS"/>
<enumeration value="UNKNOWN"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
EVERY_N_CUEPOINTS
MidrollFrequency is a cue point interval and is a single integer
value, such as "5", which means "play a mid-roll every 5th cue point". |
EVERY_N_SECONDS
MidrollFrequency is a time interval and mentioned as a single
numeric value in seconds. |
FIXED_CUE_POINTS
Same as
FIXED_TIME, except the values represent the ordinal cue
points ("1,3,5", for example). |
FIXED_TIME
MidrollFrequency is a comma-delimited list of points in time
(in seconds) when an ad should play. |
NONE
The ad rule slot is not a mid-roll and hence
MidrollFrequency
should be ignored. |
UNKNOWN
The value returned if the actual value is not exposed by the requested API version.
|
| Modifier and Type | Method and Description |
|---|---|
static MidrollFrequencyType |
fromValue(String v) |
String |
value() |
static MidrollFrequencyType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MidrollFrequencyType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MidrollFrequencyType NONE
MidrollFrequency
should be ignored.public static final MidrollFrequencyType EVERY_N_SECONDS
MidrollFrequency is a time interval and mentioned as a single
numeric value in seconds. For example, "100" would mean "play a
mid-roll every 100 seconds".public static final MidrollFrequencyType FIXED_TIME
MidrollFrequency is a comma-delimited list of points in time
(in seconds) when an ad should play. For example, "100,300" would mean
"play an ad at 100 seconds and 300 seconds".public static final MidrollFrequencyType EVERY_N_CUEPOINTS
MidrollFrequency is a cue point interval and is a single integer
value, such as "5", which means "play a mid-roll every 5th cue point".public static final MidrollFrequencyType FIXED_CUE_POINTS
FIXED_TIME, except the values represent the ordinal cue
points ("1,3,5", for example).public static final MidrollFrequencyType UNKNOWN
public static MidrollFrequencyType[] values()
for (MidrollFrequencyType c : MidrollFrequencyType.values()) System.out.println(c);
public static MidrollFrequencyType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String value()
public static MidrollFrequencyType fromValue(String v)
Copyright © 2018. All Rights Reserved.