public final class AdMessage extends AbstractKeyMessage implements java.io.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, messageSubject
SYSTEM_SUBJECT
MAX_SUBJECT_LENGTH, subject, timestamp
Modifier and Type | Method and Description |
---|---|
static AdMessage.Builder |
builder()
Returns a new instance of the
AdMessage builder. |
boolean |
equals(java.lang.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.
|
java.lang.String |
toString()
Returns a human-readable text version of this message.
|
messageKey
isApplicationMessage, isSystemMessage, key, messageType
public final AdMessage.AdStatus adStatus
public final EMessage.MessageType adMessageType
public final EFeedState feedState
public boolean equals(java.lang.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 AbstractKeyMessage
o
- comparison object.true
if the message fields are equal
and false
otherwise.public int hashCode()
hashCode
in class AbstractKeyMessage
public java.lang.String toString()
toString
in class AbstractKeyMessage
public static AdMessage.Builder builder()
AdMessage
builder.Copyright © 2001 - 2024. Charles W. Rapp. All rights reserved.