Class SunmoonResponse


  • public class SunmoonResponse
    extends AerisFriendlyResponse
    Object to make the sunmoon endpoint response more friendly to determine what parts of the AerisDataJSON have come back in the response.
    • Constructor Detail

      • SunmoonResponse

        public SunmoonResponse​(AerisDataJSON data)
        Constructor the the sunmoon response. Wraps the JSON data into a friendlier object to determine what data is available.
        Parameters:
        data - JSON data
    • Method Detail

      • getDateTimeISO

        public String getDateTimeISO()
        Get the date time ISO for the sunmoon.
        Returns:
        the date time ISO
      • getTimestamp

        public Number getTimestamp()
        Get the timestamp
        Returns:
        the timestamp
      • getSunInfo

        public Sun getSunInfo()
        Get the info for the sun.
        Returns:
        the sun info
      • getMoonInfo

        public Moon getMoonInfo()
        Get the moon info for the moon.
        Returns:
        the moon info