public static final class AdMessage.Builder extends AbstractKeyMessage.Builder<AdMessage,AdMessage.Builder>
AdMessage instances. Used by
eBus to de-serialize an encoded message.mTargetClass| Modifier and Type | Method and Description |
|---|---|
AdMessage.Builder |
adMessageType(EMessage.MessageType mt)
Sets the message type to the given value.
|
AdMessage.Builder |
adStatus(AdMessage.AdStatus status)
Sets the advertisement status to the given value.
|
protected AdMessage |
buildImpl()
Returns the newly instantiated
AdMessage based
on this builder configuration. |
AdMessage.Builder |
feedState(EFeedState fs)
Sets the advertisement feed state to the given value.
|
protected void |
validate(List<String> problems)
Checks if the ad status and message type are
configured.
|
messageClass, messageKey, messageSubjectsubject, timestamp, timestampbuildprotected AdMessage buildImpl()
AdMessage based
on this builder configuration.buildImpl in class EMessageObject.Builder<AdMessage,AdMessage.Builder>protected void validate(List<String> problems)
validate in class AbstractKeyMessage.Builder<AdMessage,AdMessage.Builder>problems - list of message configuration
problems.public AdMessage.Builder adStatus(AdMessage.AdStatus status)
status - advertisement status.this builder.NullPointerException - if status is null.public AdMessage.Builder adMessageType(EMessage.MessageType mt)
mt - message type.this builder.NullPointerException - if mt is null.public AdMessage.Builder feedState(EFeedState fs)
fs - advertisement feed state. May be
null.this builder.Copyright © 2019. All rights reserved.