to top
AFEX APIs
public class

WifiConfigIps

extends Object
implements Parcelable
java.lang.Object
   ↳ com.ardic.android.parcelables.WifiConfigIps

Class Overview

Implementation of Parcelable Interface for Wi-Fi Configuration Ip settings

See also:

Summary

[Expand]
Inherited Constants
From interface android.os.Parcelable
Fields
public static final Creator<WifiConfigIps> CREATOR
Public Constructors
WifiConfigIps(String ipAddress, String gateway, int netPrefix, String dns1, String dns2)
Constructor method for Wi-Fi APN Configuration attributes related to IP assignment.
Public Methods
int describeContents()
String getDns1()
Returns primary DNS Ip address.
String getDns2()
Returns secondary DNS Ip address.
String getGateway()
Returns Gateway Ip address for the Wi-Fi APN.
String getIpAddress()
Returns Ip address of the device for the Wi-Fi APN.
int getNetPrefix()
Returns Network Prefix i.e.
void setDns1(String dns1)
Sets primary DNS Ip address.
void setDns2(String dns2)
Sets secondary DNS Ip address.
void setGateway(String gateway)
Sets Gateway Ip address for the Wi-Fi APN.
void setIpAddress(String ipAddress)
Sets Ip address of the device for the Wi-Fi APN.
void setNetPrefix(int netPrefix)
Sets Network Prefix i.e.
void writeToParcel(Parcel dest, int flags)
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

Fields

public static final Creator<WifiConfigIps> CREATOR

Added in API level 1

Public Constructors

public WifiConfigIps (String ipAddress, String gateway, int netPrefix, String dns1, String dns2)

Added in API level 1

Constructor method for Wi-Fi APN Configuration attributes related to IP assignment.

Parameters
ipAddress String: IP address given to the device.
gateway String: default gateway address.
netPrefix int: subnet prefix.
dns1 String: primary DNS address.
dns2 String: secondary DNS address.

Public Methods

public int describeContents ()

Added in API level 1

Returns
int

public String getDns1 ()

Added in API level 1

Returns primary DNS Ip address.

Returns
String dns1 primary DNS Ip address.

public String getDns2 ()

Added in API level 1

Returns secondary DNS Ip address.

Returns
String dns2 secondary DNS Ip address.

public String getGateway ()

Added in API level 1

Returns Gateway Ip address for the Wi-Fi APN.

Returns
String Gateway Ip address for the Wi-Fi APN.

public String getIpAddress ()

Added in API level 1

Returns Ip address of the device for the Wi-Fi APN.

Returns
String Ip address of the device for the Wi-Fi APN.

public int getNetPrefix ()

Added in API level 1

Returns Network Prefix i.e. how many bits of Ip address will be used to define subnet. For example for Class C networks netPrefix is 24.

Returns
int Network Prefix for the Wi-Fi APN.

public void setDns1 (String dns1)

Added in API level 1

Sets primary DNS Ip address.

Parameters
dns1 String: primary DNS Ip address.

public void setDns2 (String dns2)

Added in API level 1

Sets secondary DNS Ip address.

Parameters
dns2 String: secondary DNS Ip address.

public void setGateway (String gateway)

Added in API level 1

Sets Gateway Ip address for the Wi-Fi APN.

Parameters
gateway String: Gateway Ip address for the Wi-Fi APN.

public void setIpAddress (String ipAddress)

Added in API level 1

Sets Ip address of the device for the Wi-Fi APN.

Parameters
ipAddress String: Ip address of the device for the Wi-Fi APN.

public void setNetPrefix (int netPrefix)

Added in API level 1

Sets Network Prefix i.e. how many bits of Ip address will be used to define subnet. For example for Class C networks netPrefix is 24.

Parameters
netPrefix int: for the Wi-Fi APN.

public void writeToParcel (Parcel dest, int flags)

Added in API level 1

Parameters
dest Parcel
flags int