Message Parts
com.imimobile.connect.ui.data
ICCustomerDetails
Certain integrations, such as IMIchat, allow customer details to be sent to the agent serving customer requests. This class encapsulates that information.
Properties
Property | Description |
---|---|
First name | The customers first name |
Last name | The customers last name |
Phone number | The customer's phone number |
The customer's email address |
getFirstName
This method is used to get the customer's first name.
Syntax: java.lang.String getFirstName()
Returns value: Returns customers first name.
getLastName
This method is used to get the customer's last name.
Syntax: java.lang.String getLastName()
Returns value: Returns customers last name.
getEmail
This method is used to get the customer's email addresses.
Syntax: java.lang.String getEmail()
Returns value: Returns customer's email address
getPhoneNumber
This method is used to get customers Phone Number
Syntax: java.lang.String getPhoneNumber()
Returns value: Returns customer's phone number.
fromBundle
This method is used to get Customer details instance from the bundle object.
Syntax: ICCustomerDetails fromBundle(@NonNull android.os.Bundle bundle)
Parameters :
Parameter | Type | Description |
---|---|---|
bundle | android.os.Bundle | bundle object |
Returns value: Returns customer details instance
toBundle
This method is used to convert Customer details instance parameters to bundle object.
Syntax: Iandroid.os.Bundle toBundle()
Returns value: Returns bundle object
builder
This method is used to build customer details instance.
Syntax: static ICCustomerDetails.Builder builder()
com.imimobile.connect.ui.data.messagepart
ICTextMessagePart
This class will retrieve all the text that will be displayed for a specific message.
Constructor
ICTextMessagePart
Syntax: ICTextMessagePart(String text)
Parameter:
Parameter | Type | Description |
---|---|---|
text | String | The message text |
ICURLMessagePart
This class will retrieve a URL from which a preview will be displayed for a specific message.
ICURLMessagePart
Syntax: ICURLMessagePart(java.net.URL url)
Parameter:
Parameter | Type | Description |
---|---|---|
url | java.net.URL | The URL that will be represented in the message part view |
ICAttachmentMessagePart
This class implements the ICMessagePart interface and will retrieve a single attachment that will be displayed for a specific message.
ICAttachmentMessagePart
Syntax: ICAttachmentMessagePart(ICAttachment attachment, File localFile)
Parameter:
Parameter | Type | Description |
---|---|---|
attachment | ICAttachment | message attachment |
localFile | File | local File for attachment |
ICAttachmentMessagePart
Syntax: ICAttachmentMessagePart(ICAttachment attachment)
Parameter:
Parameter | Type | Description |
---|---|---|
attachment | ICAttachment | message attachment |
getAttachment
This method is used to get an attachment that should be displayed in the message
part view.
Syntax: ICAttachment getAttachment()
Returns value: Returns attachment that should be displayed in the message part view.
getLocalFile
This method is used to get local file where message attachment stored locally
Syntax: File getLocalFile()
Returns value: Returns local file created from local file path where message attachment stored locally.
setLocalFile
This method is used to set a local file where message attachment stored locally.
Syntax: void setLocalFile(File localFile)
Parameter:
Parameter | Type | Description |
---|---|---|
localFile | File | local File for message attachment |
ICBundleMessagePart
This class provides Bundle message part implementation for message types such as
bundle.
setBundle
This method is used to set a bundle to bundle message part.
Syntax: void setBundle(android.os.Bundle bundle)
Parameter:
Parameter | Type | Description |
---|---|---|
bundle | android.os.Bundle | bundle object |
getLocalFile
This method is used to get the bundle instance from the Bundle message part.
Syntax: android.os.Bundle getBundle()
Returns value: Returns bundle instance from message part.
Updated almost 3 years ago