WifiDisplaySessionInfopublic final class WifiDisplaySessionInfo extends Object implements android.os.ParcelableThis class contains information regarding a wifi display session
(such as session id, source ip address, etc.). This is needed for
Wifi Display Certification process.
This object is immutable.
|
Fields Summary |
---|
private final boolean | mClient | private final int | mSessionId | private final String | mGroupId | private final String | mPassphrase | private final String | mIP | public static final Creator | CREATOR |
Constructors Summary |
---|
public WifiDisplaySessionInfo()
this(true, 0, "", "", "");
| public WifiDisplaySessionInfo(boolean client, int session, String group, String pp, String ip)
mClient = client;
mSessionId = session;
mGroupId = group;
mPassphrase = pp;
mIP = ip;
|
Methods Summary |
---|
public int | describeContents()
return 0;
| public java.lang.String | getGroupId()
return mGroupId;
| public java.lang.String | getIP()
return mIP;
| public java.lang.String | getPassphrase()
return mPassphrase;
| public int | getSessionId()
return mSessionId;
| public boolean | isClient()
return mClient;
| public java.lang.String | toString()
return "WifiDisplaySessionInfo:"
+"\n Client/Owner: " + (mClient ? "Client":"Owner")
+"\n GroupId: " + mGroupId
+"\n Passphrase: " + mPassphrase
+"\n SessionId: " + mSessionId
+"\n IP Address: " + mIP
;
| public void | writeToParcel(android.os.Parcel dest, int flags)
dest.writeInt(mClient ? 1 : 0);
dest.writeInt(mSessionId);
dest.writeString(mGroupId);
dest.writeString(mPassphrase);
dest.writeString(mIP);
|
|