Package one.tranic.scorpio.api.impl
Class PlatformMessage
-
- All Implemented Interfaces:
-
one.tranic.scorpio.api.impl.Message
public final class PlatformMessage implements Message
Represents a message sent from an external platform.
-
-
Field Summary
Fields Modifier and Type Field Description private final String
platform
private final String
senderId
private final String
senderName
private final String
content
private final String
platformName
-
Constructor Summary
Constructors Constructor Description PlatformMessage(String senderId, String senderName, String content, String platformName)
-
Method Summary
Modifier and Type Method Description String
getPlatform()
The platform from which the message was sent. String
getSenderId()
String
getSenderName()
String
getContent()
final String
getPlatformName()
-
-
Constructor Detail
-
PlatformMessage
PlatformMessage(String senderId, String senderName, String content, String platformName)
- Parameters:
senderId
- the unique identifier of the message sendersenderName
- the name of the message sendercontent
- the content of the messageplatformName
- the name of the platform from which the message was sent
-
-
Method Detail
-
getPlatform
String getPlatform()
The platform from which the message was sent.
-
getSenderId
String getSenderId()
-
getSenderName
String getSenderName()
-
getContent
String getContent()
-
getPlatformName
final String getPlatformName()
-
-
-
-