public final class AdMessage extends AbstractKeyMessage implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
AdMessage.AdStatus
This enum specifies whether an advertisement should be
added or removed.
|
static class |
AdMessage.Builder
Class used to create
AdMessage instances. |
EMessage.MessageType| Modifier and Type | Field and Description |
|---|---|
EMessage.MessageType |
adMessageType
The advertised message is for either a notification or a
request.
|
AdMessage.AdStatus |
adStatus
Add or retract this advertisement.
|
EFeedState |
feedState
The advertised feed's current state.
|
messageClass, messageSubjectSYSTEM_SUBJECTMAX_FIELDS| Modifier and Type | Method and Description |
|---|---|
static AdMessage.Builder |
builder()
Returns a new instance of the
AdMessage builder. |
boolean |
equals(Object o)
Returns
true if o is a
non-null AdMessage instance with ad status,
message class, and message type equal to
this AdMessage instance and false
otherwise. |
int |
hashCode()
Returns the advertisement message hash code.
|
String |
toString()
Returns a human-readable text version of this message.
|
messageKeyisApplicationMessage, isSystemMessage, key, messageTypepublic final AdMessage.AdStatus adStatus
public final EMessage.MessageType adMessageType
public final EFeedState feedState
public boolean equals(Object o)
true if o is a
non-null AdMessage instance with ad status,
message class, and message type equal to
this AdMessage instance and false
otherwise.equals in class AbstractKeyMessageo - comparison object.true if the message fields are equal
and false otherwise.public int hashCode()
hashCode in class AbstractKeyMessagepublic String toString()
toString in class AbstractKeyMessagepublic static AdMessage.Builder builder()
AdMessage builder.Copyright © 2019. All rights reserved.