Class LiveScoutEntityMapper
java.lang.Object
com.sportradar.livedata.sdk.feed.livescout.classes.LiveScoutEntityMapper
- All Implemented Interfaces:
EntityMapper<IncomingMessage,LiveScoutEntityBase>
public class LiveScoutEntityMapper
extends Object
implements EntityMapper<IncomingMessage,LiveScoutEntityBase>
A
EntityMapper implementation used to map protocol layer scout messages into feed layer scout entities.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionmap(IncomingMessage message) Maps the passedIncomingMessagederived message to feed entity
-
Constructor Details
-
LiveScoutEntityMapper
Initializes a new instance of theLiveScoutEntityMapperclass.- Parameters:
factory- ALiveScoutEntityFactoryused to build live scout entities.- Throws:
IllegalArgumentException- thefactoryis a null reference orsdkLoggeris a null reference
-
-
Method Details
-
map
Maps the passedIncomingMessagederived message to feed entity- Specified by:
mapin interfaceEntityMapper<IncomingMessage,LiveScoutEntityBase> - Parameters:
message- TheIncomingMessagederived message to be mapped to the feed layer entity.- Returns:
- The
LiveScoutEntityBasederived class representing the passed message. - Throws:
IllegalArgumentException- themessageis a null referenceInvalidEntityException- wrong entity provided
-