Package com.facebook.openwifi.cloudsdk
Class UCentralApConfiguration
- java.lang.Object
-
- com.facebook.openwifi.cloudsdk.UCentralApConfiguration
-
public class UCentralApConfiguration extends Object
Wrapper around uCentral AP configuration.
-
-
Constructor Summary
Constructors Constructor Description UCentralApConfiguration(com.google.gson.JsonObject config)Constructor from JsonObject (makes deep copy).UCentralApConfiguration(String configJson)Constructor from JSON string.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>getRadioBandsSet(List<UCentralSchema.Radio> radioConfigList)Return all the operational bands of an AP (from the radio config)com.google.gson.JsonObjectgetRadioConfig(int index)Return the radio config at the given index, or null if invalid.List<UCentralSchema.Radio>getRadioConfigList()Return all info in the radio config (or an empty list if none).intgetRadioCount()Return the number of radios, or -1 if the field is missing/malformed.intgetStatisticsInterval()Return the statistics interval (in seconds), or -1 if the field is missing/malformed.voidsetRadioConfig(int index, com.google.gson.JsonObject radioConfig)Set radio config at the given index.voidsetStatisticsInterval(int intervalSec)Set the statistics interval to the given value (in seconds).StringtoString()StringtoString(com.google.gson.Gson gson)Serialize the configuration to JSON using the given Gson instance.
-
-
-
Constructor Detail
-
UCentralApConfiguration
public UCentralApConfiguration(String configJson)
Constructor from JSON string.
-
UCentralApConfiguration
public UCentralApConfiguration(com.google.gson.JsonObject config)
Constructor from JsonObject (makes deep copy).
-
-
Method Detail
-
toString
public String toString(com.google.gson.Gson gson)
Serialize the configuration to JSON using the given Gson instance.
-
getRadioCount
public int getRadioCount()
Return the number of radios, or -1 if the field is missing/malformed.
-
getRadioConfigList
public List<UCentralSchema.Radio> getRadioConfigList()
Return all info in the radio config (or an empty list if none).
-
getRadioBandsSet
public Set<String> getRadioBandsSet(List<UCentralSchema.Radio> radioConfigList)
Return all the operational bands of an AP (from the radio config)
-
getRadioConfig
public com.google.gson.JsonObject getRadioConfig(int index)
Return the radio config at the given index, or null if invalid.
-
setRadioConfig
public void setRadioConfig(int index, com.google.gson.JsonObject radioConfig)Set radio config at the given index. Adds empty objects as needed.
-
getStatisticsInterval
public int getStatisticsInterval()
Return the statistics interval (in seconds), or -1 if the field is missing/malformed.
-
setStatisticsInterval
public void setStatisticsInterval(int intervalSec)
Set the statistics interval to the given value (in seconds).
-
-