Class Metric

    • Method Detail

      • fromJson

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

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

        public final String getTimestamp()
      • getCallSid

        public final String getCallSid()
      • getAccountSid

        public final String getAccountSid()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object