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

PropertyDescription
First nameThe customers first name
Last nameThe customers last name
Phone numberThe customer's phone number
EmailThe 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 :

ParameterTypeDescription
bundleandroid.os.Bundlebundle 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:

ParameterTypeDescription
textStringThe 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:

ParameterTypeDescription
urljava.net.URLThe 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:

ParameterTypeDescription
attachmentICAttachmentmessage attachment
localFileFilelocal File for attachment

ICAttachmentMessagePart


  Syntax: ICAttachmentMessagePart(ICAttachment attachment)

  Parameter:

ParameterTypeDescription
attachmentICAttachmentmessage 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:

ParameterTypeDescription
localFileFilelocal 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:

ParameterTypeDescription
bundleandroid.os.Bundlebundle 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


Copyright © 2000 - 2021 IMImobile Limited | All Rights Reserved