Package com.adcolony.sdk
Class AdColonyCustomMessage
- java.lang.Object
-
- com.adcolony.sdk.AdColonyCustomMessage
-
public class AdColonyCustomMessage extends java.lang.ObjectInstances of this class are sent to or received from AdColony for possible custom behavior.
-
-
Constructor Summary
Constructors Constructor Description AdColonyCustomMessage(java.lang.String type, java.lang.String message)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetMessage()Used to retrieve the message String tied to this object.java.lang.StringgetType()Used to retrieve the message type.voidsend()Sends the custom message to AdColony.AdColonyCustomMessageset(java.lang.String type, java.lang.String message)Use this method to set the type and message Strings for this object.
-
-
-
Method Detail
-
getMessage
public java.lang.String getMessage()
Used to retrieve the message String tied to this object.- Returns:
- the message String tied to this object, or null if none has been set.
-
getType
public java.lang.String getType()
Used to retrieve the message type.- Returns:
- the message type, or null if none has been set.
-
set
public AdColonyCustomMessage set(java.lang.String type, java.lang.String message)
Use this method to set the type and message Strings for this object.- Parameters:
type- the message type.message- the message String to be sent.- Returns:
- 'this' for chaining.
-
send
public void send()
Sends the custom message to AdColony.
-
-