Class WifiProfiles


  • public class WifiProfiles
    extends Object
    WifiProfiles
    • Constructor Detail

      • WifiProfiles

        public WifiProfiles()
    • Method Detail

      • getProfiles

        public List<Profile> getProfiles()
        List of remote Wi-Fi profiles.
        Returns:
        profiles
      • setProfiles

        public void setProfiles​(List<Profile> profiles)
      • getSettings

        public Settings getSettings()
        Get settings
        Returns:
        settings
      • setSettings

        public void setSettings​(Settings settings)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • validateJsonObject

        public static void validateJsonObject​(com.google.gson.JsonObject jsonObj)
                                       throws IOException
        Validates the JSON Object and throws an exception if issues found
        Parameters:
        jsonObj - JSON Object
        Throws:
        IOException - if the JSON Object is invalid with respect to WifiProfiles
      • fromJson

        public static WifiProfiles fromJson​(String jsonString)
                                     throws IOException
        Create an instance of WifiProfiles given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of WifiProfiles
        Throws:
        IOException - if the JSON string is invalid with respect to WifiProfiles
      • toJson

        public String toJson()
        Convert an instance of WifiProfiles to an JSON string
        Returns:
        JSON string