Package com.zopim.android.sdk.model
Class FileSending
- java.lang.Object
-
- com.zopim.android.sdk.model.FileSending
-
public class FileSending extends java.lang.Object
This is a model class for File Sending (Attachments) that will be created byLivechatFileSendingPath
.It is used to tell if file sending is enabled and which extensions are supported. File sending is available only to certain plan types as per Zopim pricing plan.
You can subscribe to this broadcast via
com.zopim.android.sdk.data.DataSource#addFileSendingObserver(java.util.Observer)
usingFileSendingObserver
This class is a model that will be serialised to JSON and deserialized from JSON to this model. As such it does not follow the m naming prefix for fields.
-
-
Constructor Summary
Constructors Constructor and Description FileSending()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.String[]
getExtensions()
Gets file extensions that are allowed for file sendingboolean
isEnabled()
Indicates if file sending is enabledjava.lang.String
toString()
-
-
-
Method Detail
-
isEnabled
public boolean isEnabled()
Indicates if file sending is enabled- Returns:
- true if enabled, false otherwise
-
getExtensions
public java.lang.String[] getExtensions()
Gets file extensions that are allowed for file sendingFile sending is configurable via File Sending Dashboard Settings
- Returns:
- array of allowed extensions
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-