Class Session

    • Method Detail

      • fromJson

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

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

        public final String getSid()
      • getServiceSid

        public final String getServiceSid()
      • getAccountSid

        public final String getAccountSid()
      • getDateLastInteraction

        public final ZonedDateTime getDateLastInteraction()
      • getUniqueName

        public final String getUniqueName()
      • getClosedReason

        public final String getClosedReason()
      • getTtl

        public final Integer getTtl()
      • getUrl

        public final URI getUrl()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object