public class Wifi extends Schema
WIFI:T:AUTHENTICATION;S:SSID;P:PSK;H:HIDDEN;
Modifier and Type | Class and Description |
---|---|
static class |
Wifi.Authentication |
Modifier and Type | Field and Description |
---|---|
static String |
AUTHENTICATION |
static String |
HIDDEN |
static String |
PSK |
static String |
SSID |
static String |
WIFI_PROTOCOL_HEADER |
Constructor and Description |
---|
Wifi() |
Modifier and Type | Method and Description |
---|---|
static String |
escape(String text) |
String |
generateString()
Generates code string.
|
String |
getAuthentication() |
String |
getPsk() |
String |
getSsid() |
boolean |
isHidden() |
static Wifi |
parse(String wifiCode) |
Schema |
parseSchema(String code)
Parse qr code schema for given code string.
|
void |
setAuthentication(String authentication) |
void |
setAuthentication(Wifi.Authentication authentication) |
void |
setHidden(boolean hidden) |
void |
setHidden(String value) |
void |
setPsk(String psk) |
void |
setSsid(String ssid) |
String |
toString() |
static String |
unescape(String text) |
Wifi |
withAuthentication(Wifi.Authentication authentication) |
Wifi |
withHidden(boolean hidden) |
Wifi |
withPsk(String psk) |
Wifi |
withSsid(String ssid) |
public static final String WIFI_PROTOCOL_HEADER
public static final String AUTHENTICATION
public static final String SSID
public static final String PSK
public static final String HIDDEN
public String getAuthentication()
public void setAuthentication(Wifi.Authentication authentication)
authentication
- the authentication to setpublic void setAuthentication(String authentication)
authentication
- the authentication to setpublic Wifi withAuthentication(Wifi.Authentication authentication)
authentication
- the authentication to setpublic String getSsid()
public void setSsid(String ssid)
ssid
- the ssid to setpublic String getPsk()
public void setPsk(String psk)
psk
- the psk to setpublic boolean isHidden()
public void setHidden(String value)
value
- the hidden to setpublic void setHidden(boolean hidden)
hidden
- the hidden to setpublic Wifi withHidden(boolean hidden)
hidden
- the hidden to setpublic Schema parseSchema(String code)
Schema
parseSchema
in class Schema
public String generateString()
Schema
generateString
in class Schema
Copyright © 2018. All rights reserved.