Class Conversation

  • All Implemented Interfaces:
    Serializable

    public class Conversation
    extends Resource
    PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact [email protected].
    See Also:
    Serialized Form
    • Method Detail

      • creator

        public static ConversationCreator creator()
        Create a ConversationCreator to execute create.
        Returns:
        ConversationCreator capable of executing the create
      • updater

        public static ConversationUpdater updater​(String pathSid)
        Create a ConversationUpdater to execute update.
        Parameters:
        pathSid - A 34 character string that uniquely identifies this resource.
        Returns:
        ConversationUpdater capable of executing the update
      • deleter

        public static ConversationDeleter deleter​(String pathSid)
        Create a ConversationDeleter to execute delete.
        Parameters:
        pathSid - A 34 character string that uniquely identifies this resource.
        Returns:
        ConversationDeleter capable of executing the delete
      • fetcher

        public static ConversationFetcher fetcher​(String pathSid)
        Create a ConversationFetcher to execute fetch.
        Parameters:
        pathSid - A 34 character string that uniquely identifies this resource.
        Returns:
        ConversationFetcher capable of executing the fetch
      • reader

        public static ConversationReader reader()
        Create a ConversationReader to execute read.
        Returns:
        ConversationReader capable of executing the read
      • fromJson

        public static Conversation fromJson​(String json,
                                            com.fasterxml.jackson.databind.ObjectMapper objectMapper)
        Converts a JSON String into a Conversation object using the provided ObjectMapper.
        Parameters:
        json - Raw JSON String
        objectMapper - Jackson ObjectMapper
        Returns:
        Conversation object represented by the provided JSON
      • fromJson

        public static Conversation fromJson​(InputStream json,
                                            com.fasterxml.jackson.databind.ObjectMapper objectMapper)
        Converts a JSON InputStream into a Conversation object using the provided ObjectMapper.
        Parameters:
        json - Raw JSON InputStream
        objectMapper - Jackson ObjectMapper
        Returns:
        Conversation object represented by the provided JSON
      • getAccountSid

        public final String getAccountSid()
        Returns The The unique id of the Account responsible for this conversation..
        Returns:
        The unique id of the Account responsible for this conversation.
      • getChatServiceSid

        public final String getChatServiceSid()
        Returns The The unique id of the Chat Service this conversation belongs to..
        Returns:
        The unique id of the Chat Service this conversation belongs to.
      • getMessagingServiceSid

        public final String getMessagingServiceSid()
        Returns The The unique id of the SMS Service this conversation belongs to..
        Returns:
        The unique id of the SMS Service this conversation belongs to.
      • getSid

        public final String getSid()
        Returns The A 34 character string that uniquely identifies this resource..
        Returns:
        A 34 character string that uniquely identifies this resource.
      • getFriendlyName

        public final String getFriendlyName()
        Returns The The human-readable name of this conversation..
        Returns:
        The human-readable name of this conversation.
      • getDateCreated

        public final org.joda.time.DateTime getDateCreated()
        Returns The The date that this resource was created..
        Returns:
        The date that this resource was created.
      • getDateUpdated

        public final org.joda.time.DateTime getDateUpdated()
        Returns The The date that this resource was last updated..
        Returns:
        The date that this resource was last updated.
      • getUrl

        public final URI getUrl()
        Returns The An absolute URL for this conversation..
        Returns:
        An absolute URL for this conversation.
      • getLinks

        public final Map<String,​String> getLinks()
        Returns The Absolute URLs to access the Participants of this Conversation..
        Returns:
        Absolute URLs to access the Participants of this Conversation.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object