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 customers email address |
getFirstName
This method is used to get customers first name
Syntax: java.lang.String getFirstName()
Returns value:Returns customers first name.
getLastName
This method is used to get customers Last name
Syntax: java.lang.String getLastName()
Returns value:Returns customers Last name.
getEmail
This method is used to get customers Email address.
Syntax: java.lang.String getEmail()
Returns value:Returns customers Email address
getPhoneNumber
This method is used to get customers Phone Number
Syntax: java.lang.String getPhoneNumber()
Returns value:Returns customers Phone Number
fromBundle
This method is used to get Customer details instance from 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
TThis 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 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 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 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 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 bundle instance from Bundle message part
Syntax: android.os.Bundle getBundle()
Returns value:Returns Bundle instance from message part
Updated almost 2 years ago