@@ -10,50 +10,58 @@ namespace NetworkExtension {
10
10
11
11
public partial class NEHotspotConfiguration {
12
12
13
- /// <param name="ssid">To be added.</param>
14
- /// <summary>To be added.</summary>
15
- /// <remarks>To be added.</remarks>
13
+ /// <summary>Create a new <see cref="NEHotspotConfiguration" /> with the specified SSID.</summary>
14
+ /// <param name="ssid">The SSID the new <see cref="NEHotspotConfiguration" /> applies to.</param>
16
15
public NEHotspotConfiguration ( string ssid )
16
+ : base ( NSObjectFlag . Empty )
17
17
{
18
- InitializeHandle ( initWithSsid ( ssid ) ) ;
18
+ InitializeHandle ( _InitWithSsid ( ssid ) , "initWithSSID:" ) ;
19
19
}
20
20
21
- /// <param name="ssid">To be added.</param>
22
- /// <param name="passphrase">To be added.</param>
23
- /// <param name="isWep">To be added.</param>
24
- /// <summary>To be added.</summary>
25
- /// <remarks>To be added.</remarks>
21
+ /// <summary>Create a new <see cref="NEHotspotConfiguration" /> with the specified SSID.</summary>
22
+ /// <param name="ssid">The SSID the new <see cref="NEHotspotConfiguration" /> applies to.</param>
23
+ /// <param name="passphrase">The passphrase for the network specified by <paramref name="ssid" />.</param>
24
+ /// <param name="isWep">Whether the network is a WEP network (otherwise a WPA or WPA2 network).</param>
26
25
public NEHotspotConfiguration ( string ssid , string passphrase , bool isWep )
26
+ : base ( NSObjectFlag . Empty )
27
27
{
28
- InitializeHandle ( initWithSsid ( ssid , passphrase , isWep ) ) ;
28
+ InitializeHandle ( _InitWithSsidAndPassprase ( ssid , passphrase , isWep ) , "initWithSSID:passphrase:isWEP:" ) ;
29
29
}
30
30
31
- #if NET
31
+ /// <summary>Create a new <see cref="NEHotspotConfiguration" /> with the specified SSID.</summary>
32
+ /// <param name="ssid">The SSID the new <see cref="NEHotspotConfiguration" /> applies to.</param>
33
+ /// <param name="ssidIsPrefix">Whether <paramref name="ssid" /> specifies the prefix of an SSID, or a complete SSID.</param>
32
34
[ SupportedOSPlatform ( "ios13.0" ) ]
33
35
[ SupportedOSPlatform ( "maccatalyst" ) ]
34
36
[ UnsupportedOSPlatform ( "macos" ) ]
35
37
[ UnsupportedOSPlatform ( "tvos" ) ]
36
- #else
37
- [ iOS ( 13 , 0 ) ]
38
- #endif
39
38
public NEHotspotConfiguration ( string ssid , bool ssidIsPrefix )
39
+ : base ( NSObjectFlag . Empty )
40
40
{
41
- var h = ssidIsPrefix ? initWithSsidPrefix ( ssid ) : initWithSsid ( ssid ) ;
42
- InitializeHandle ( h ) ;
41
+ if ( ssidIsPrefix ) {
42
+ InitializeHandle ( _InitWithSsidPrefix ( ssid ) , "initWithSSIDPrefix:" ) ;
43
+ } else {
44
+ InitializeHandle ( _InitWithSsid ( ssid ) , "initWithSSID:" ) ;
45
+ }
43
46
}
44
47
45
- #if NET
48
+ /// <summary>Create a new <see cref="NEHotspotConfiguration" /> with the specified SSID.</summary>
49
+ /// <param name="ssid">The SSID the new <see cref="NEHotspotConfiguration" /> applies to.</param>
50
+ /// <param name="passphrase">The passphrase for the network specified by <paramref name="ssid" />.</param>
51
+ /// <param name="isWep">Whether the network is a WEP network (otherwise a WPA or WPA2 network).</param>
52
+ /// <param name="ssidIsPrefix">Whether <paramref name="ssid" /> specifies the prefix of an SSID, or a complete SSID.</param>
46
53
[ SupportedOSPlatform ( "ios13.0" ) ]
47
54
[ SupportedOSPlatform ( "maccatalyst" ) ]
48
55
[ UnsupportedOSPlatform ( "macos" ) ]
49
56
[ UnsupportedOSPlatform ( "tvos" ) ]
50
- #else
51
- [ iOS ( 13 , 0 ) ]
52
- #endif
53
57
public NEHotspotConfiguration ( string ssid , string passphrase , bool isWep , bool ssidIsPrefix )
58
+ : base ( NSObjectFlag . Empty )
54
59
{
55
- var h = ssidIsPrefix ? initWithSsidPrefix ( ssid , passphrase , isWep ) : initWithSsid ( ssid , passphrase , isWep ) ;
56
- InitializeHandle ( h ) ;
60
+ if ( ssidIsPrefix ) {
61
+ InitializeHandle ( _InitWithSsidPrefixAndPassphrase ( ssid , passphrase , isWep ) , "initWithSSIDPrefix:passphrase:isWEP:" ) ;
62
+ } else {
63
+ InitializeHandle ( _InitWithSsidAndPassprase ( ssid , passphrase , isWep ) , "initWithSSID:passphrase:isWEP:" ) ;
64
+ }
57
65
}
58
66
}
59
67
}
0 commit comments