Package nl.vpro.parkpost
Class PromoEventConverter
- java.lang.Object
-
- nl.vpro.parkpost.PromoEventConverter
-
public class PromoEventConverter extends Object
- Since:
- 1.8
- Author:
- Michiel Meeuwissen
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PromoEventConverter.NoMidException
static class
PromoEventConverter.NoPromoException
static class
PromoEventConverter.NoTitleException
-
Field Summary
Fields Modifier and Type Field Description static String
RELATION_CHANNEL
static String
RELATION_OWNER
static String
RELATION_PRODUCTCODE
static String
RELATION_REFERRER
static String
RELATION_VERSION
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ProgramUpdate
convert(PromoEvent event, String locationBaseUrl)
protected static Duration
getDuration(PromoEvent promoEvent)
protected static ProgramType
getProgramType(PromoEvent promoEvent)
protected static String
getProgramUrl(String productCode, String locationBaseUrl)
-
-
-
Field Detail
-
RELATION_OWNER
public static final String RELATION_OWNER
- See Also:
- Constant Field Values
-
RELATION_VERSION
public static final String RELATION_VERSION
- See Also:
- Constant Field Values
-
RELATION_PRODUCTCODE
public static final String RELATION_PRODUCTCODE
- See Also:
- Constant Field Values
-
RELATION_CHANNEL
public static final String RELATION_CHANNEL
- See Also:
- Constant Field Values
-
RELATION_REFERRER
public static final String RELATION_REFERRER
- See Also:
- Constant Field Values
-
-
Method Detail
-
convert
public static ProgramUpdate convert(PromoEvent event, String locationBaseUrl) throws PromoEventConverter.NoMidException, PromoEventConverter.NoPromoException, PromoEventConverter.NoTitleException
-
getDuration
protected static Duration getDuration(PromoEvent promoEvent)
-
getProgramType
protected static ProgramType getProgramType(PromoEvent promoEvent)
-
-