| Constructor and Description |
|---|
SoroushMessage() |
SoroushMessage(String to,
String from,
String body,
MinorType type,
String time,
String fileName,
FileType fileType,
Double fileSize,
String fileUrl,
String thumbnailUrl,
Double imageWidth,
Double imageHeight,
Double fileDuration,
Double thumbnailWidth,
Double thumbnailHeight,
String nickName,
String avatarUrl,
Double phoneNo,
Double latitude,
Double longitude,
List<List<CustomKey>> keyboard) |
| Modifier and Type | Method and Description |
|---|---|
SoroushMessage |
clone() |
boolean |
equals(Object o) |
String |
getAvatarUrl() |
String |
getBody() |
InputStream |
getFile() |
Double |
getFileDuration() |
String |
getFileName() |
Double |
getFileSize() |
FileType |
getFileType() |
String |
getFileUrl() |
String |
getFrom() |
Double |
getImageHeight() |
Double |
getImageWidth() |
List<List<CustomKey>> |
getKeyboard() |
Double |
getLatitude() |
Double |
getLongitude() |
String |
getNickName() |
Double |
getPhoneNo() |
InputStream |
getThumbnail() |
Double |
getThumbnailHeight() |
String |
getThumbnailUrl() |
Double |
getThumbnailWidth() |
String |
getTime() |
String |
getTo() |
MinorType |
getType() |
int |
hashCode() |
void |
setAvatarUrl(String avatarUrl) |
void |
setBody(String body) |
void |
setFile(File file)
set uploading file to a file this field help you store file in the message, it also let you automatically upload
it to the soroush server by sending this message to
uploadFile or sendMessage endpoint. |
void |
setFile(InputStream file) |
void |
setFileDuration(Double fileDuration) |
void |
setFileName(String fileName) |
void |
setFileSize(Double fileSize) |
void |
setFileType(FileType fileType) |
void |
setFileUrl(String fileUrl) |
void |
setFrom(String from) |
void |
setImageHeight(Double imageHeight) |
void |
setImageWidth(Double imageWidth) |
void |
setKeyboard(List<List<CustomKey>> keyboard) |
void |
setLatitude(Double latitude) |
void |
setLongitude(Double longitude) |
void |
setNickName(String nickName) |
void |
setPhoneNo(Double phoneNo) |
void |
setThumbnail(File thumbnail)
set uploading thumbnail to a
thumbnail this field help you store thumbnail in the message, it also let
you automatically upload it to the soroush server by sending this message to uploadFile or
sendMessage endpoint. |
void |
setThumbnail(InputStream thumbnail) |
void |
setThumbnailHeight(Double thumbnailHeight) |
void |
setThumbnailUrl(String thumbnailUrl) |
void |
setThumbnailWidth(Double thumbnailWidth) |
void |
setTime(String time) |
void |
setTo(String to) |
void |
setType(MinorType type) |
String |
toString() |
public SoroushMessage()
public SoroushMessage(String to, String from, String body, MinorType type, String time, String fileName, FileType fileType, Double fileSize, String fileUrl, String thumbnailUrl, Double imageWidth, Double imageHeight, Double fileDuration, Double thumbnailWidth, Double thumbnailHeight, String nickName, String avatarUrl, Double phoneNo, Double latitude, Double longitude, List<List<CustomKey>> keyboard)
public void setFile(File file) throws FileNotFoundException
uploadFile or sendMessage endpoint. auto
upload file is working in the following condition: for sendMessage endpoint:
file!=null && SoroushBotEndpoint.autoUploadFile && (
fileUrl==null || SoroushBotEndpoint.forceUpload) for
uploadFile endpoint: file!=null && (
fileUrl==null || SoroushBotEndpoint.forceUpload)file - to be uploadedFileNotFoundException - if file not foundSoroushBotEndpoint.forceUpload,
SoroushBotEndpoint.autoUploadFilepublic void setThumbnail(File thumbnail) throws FileNotFoundException
thumbnail this field help you store thumbnail in the message, it also let
you automatically upload it to the soroush server by sending this message to uploadFile or
sendMessage endpoint. auto upload thumbnail is working in the following condition: for
sendMessage endpoint:
thumbnail!=null && SoroushBotEndpoint.autoUploadFile && (
thumbnailUrl==null || SoroushBotEndpoint.forceUpload) for
uploadFile endpoint: thumbnail!=null && (
thumbnailUrl==null || SoroushBotEndpoint.forceUpload)thumbnail - to be uploadedFileNotFoundException - if file not foundSoroushBotEndpoint.forceUpload,
SoroushBotEndpoint.autoUploadFilepublic String getTo()
public void setTo(String to)
public String getFrom()
public void setFrom(String from)
public String getBody()
public void setBody(String body)
public MinorType getType()
public void setType(MinorType type)
public String getTime()
public void setTime(String time)
public String getFileName()
public void setFileName(String fileName)
public FileType getFileType()
public void setFileType(FileType fileType)
public Double getFileSize()
public void setFileSize(Double fileSize)
public String getFileUrl()
public void setFileUrl(String fileUrl)
public String getThumbnailUrl()
public void setThumbnailUrl(String thumbnailUrl)
public Double getImageWidth()
public void setImageWidth(Double imageWidth)
public Double getImageHeight()
public void setImageHeight(Double imageHeight)
public Double getFileDuration()
public void setFileDuration(Double fileDuration)
public Double getThumbnailWidth()
public void setThumbnailWidth(Double thumbnailWidth)
public Double getThumbnailHeight()
public void setThumbnailHeight(Double thumbnailHeight)
public String getNickName()
public void setNickName(String nickName)
public String getAvatarUrl()
public void setAvatarUrl(String avatarUrl)
public Double getPhoneNo()
public void setPhoneNo(Double phoneNo)
public Double getLatitude()
public void setLatitude(Double latitude)
public Double getLongitude()
public void setLongitude(Double longitude)
public InputStream getFile()
public void setFile(InputStream file)
public InputStream getThumbnail()
public void setThumbnail(InputStream thumbnail)
public SoroushMessage clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionApache Camel