Class ActivityImpl
- java.lang.Object
-
- org.javacord.core.entity.activity.ActivityImpl
-
-
Constructor Summary
Constructors Constructor Description ActivityImpl(com.fasterxml.jackson.databind.JsonNode data)
Creates a new activity object.ActivityImpl(ActivityType type, String name, String streamingUrl)
Creates a new activity object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
Optional<Long>
getApplicationId()
Optional<ActivityAssets>
getAssets()
Optional<String>
getDetails()
Optional<Instant>
getEndTime()
String
getName()
Optional<ActivityParty>
getParty()
Optional<Instant>
getStartTime()
Optional<String>
getState()
Optional<String>
getStreamingUrl()
ActivityType
getType()
int
hashCode()
-
-
-
Constructor Detail
-
ActivityImpl
public ActivityImpl(com.fasterxml.jackson.databind.JsonNode data)
Creates a new activity object.- Parameters:
data
- The json data of the activity.
-
ActivityImpl
public ActivityImpl(ActivityType type, String name, String streamingUrl)
Creates a new activity object.- Parameters:
type
- The type of the activity.name
- The name of the activity.streamingUrl
- The streamingUrl of the activity.
-
-
Method Detail
-
getStreamingUrl
public Optional<String> getStreamingUrl()
- Specified by:
getStreamingUrl
in interfaceActivity
-
getType
public ActivityType getType()
-
getDetails
public Optional<String> getDetails()
- Specified by:
getDetails
in interfaceActivity
-
getParty
public Optional<ActivityParty> getParty()
-
getAssets
public Optional<ActivityAssets> getAssets()
-
getApplicationId
public Optional<Long> getApplicationId()
- Specified by:
getApplicationId
in interfaceActivity
-
getStartTime
public Optional<Instant> getStartTime()
- Specified by:
getStartTime
in interfaceActivity
-
getEndTime
public Optional<Instant> getEndTime()
- Specified by:
getEndTime
in interfaceActivity
-
-