Package com.intercom.api.types
Class Context
- java.lang.Object
-
- com.intercom.api.types.Context
-
public final class Context extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classContext.Builderstatic classContext.Location
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Context.Builderbuilder()booleanequals(java.lang.Object other)java.util.Map<java.lang.String,java.lang.Object>getAdditionalProperties()java.util.Optional<java.lang.Integer>getConversationId()java.util.Optional<java.lang.String>getLocale()java.util.Optional<Context.Location>getLocation()java.util.Optional<java.lang.String>getMessengerActionColour()java.util.Optional<java.lang.String>getMessengerBackgroundColour()java.util.Optional<java.lang.String>getReferrer()inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
getConversationId
public java.util.Optional<java.lang.Integer> getConversationId()
- Returns:
- The id of the conversation where the app is added or being used.
-
getLocation
public java.util.Optional<Context.Location> getLocation()
- Returns:
- Where the app is added or the action took place. Can be either 'conversation', 'home', 'message', or 'operator'.
-
getLocale
public java.util.Optional<java.lang.String> getLocale()
- Returns:
- The default end-user language of the Messenger. Use to localise Messenger App content.
-
getMessengerActionColour
public java.util.Optional<java.lang.String> getMessengerActionColour()
- Returns:
- The messengers action colour. Use in Sheets and Icons to make a Messenger App experience feel part of the host Messenger.
-
getMessengerBackgroundColour
public java.util.Optional<java.lang.String> getMessengerBackgroundColour()
- Returns:
- The messengers background colour. Use in Sheets and Icons to make a Messenger App experience feel part of the host Messenger.
-
getReferrer
public java.util.Optional<java.lang.String> getReferrer()
- Returns:
- The current page URL where the app is being used.
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
getAdditionalProperties
public java.util.Map<java.lang.String,java.lang.Object> getAdditionalProperties()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
builder
public static Context.Builder builder()
-
-