Skip to content

Commit 4d8dcf4

Browse files
committed
Update all model classes to Electron API 39.2
1 parent aa483eb commit 4d8dcf4

File tree

114 files changed

+1527
-499
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

114 files changed

+1527
-499
lines changed

src/ElectronNET.API/API/Entities/AboutPanelOptions.cs

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1-
namespace ElectronNET.API.Entities
1+
using System.Runtime.Versioning;
2+
3+
namespace ElectronNET.API.Entities
24
{
35
/// <summary>
46
/// About panel options.
57
/// </summary>
8+
/// <remarks>Up-to-date with Electron API 39.2</remarks>
69
public class AboutPanelOptions
710
{
811
/// <summary>
@@ -21,28 +24,35 @@ public class AboutPanelOptions
2124
public string Copyright { get; set; }
2225

2326
/// <summary>
24-
/// The app's build version number.
27+
/// The app's build version number (macOS).
2528
/// </summary>
29+
[SupportedOSPlatform("macos")]
2630
public string Version { get; set; }
2731

2832
/// <summary>
29-
/// Credit information.
33+
/// Credit information (macOS, Windows).
3034
/// </summary>
35+
[SupportedOSPlatform("macos")]
36+
[SupportedOSPlatform("windows")]
3137
public string Credits { get; set; }
3238

3339
/// <summary>
34-
/// List of app authors.
40+
/// List of app authors (Linux).
3541
/// </summary>
42+
[SupportedOSPlatform("linux")]
3643
public string[] Authors { get; set; }
3744

3845
/// <summary>
39-
/// The app's website.
46+
/// The app's website (Linux).
4047
/// </summary>
48+
[SupportedOSPlatform("linux")]
4149
public string Website { get; set; }
4250

4351
/// <summary>
44-
/// Path to the app's icon. On Linux, will be shown as 64x64 pixels while retaining aspect ratio.
52+
/// Path to the app's icon in a JPEG or PNG file format. On Linux, will be shown as 64x64 pixels while retaining aspect ratio. On Windows, a 48x48 PNG will result in the best visual quality.
4553
/// </summary>
54+
[SupportedOSPlatform("linux")]
55+
[SupportedOSPlatform("windows")]
4656
public string IconPath { get; set; }
4757
}
4858
}

src/ElectronNET.API/API/Entities/AddRepresentationOptions.cs

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,35 @@
1+
using System.Text.Json.Serialization;
2+
13
namespace ElectronNET.API.Entities
24
{
35
/// <summary>
46
///
57
/// </summary>
8+
/// <remarks>Up-to-date with Electron API 39.2</remarks>
69
public class AddRepresentationOptions
710
{
811
/// <summary>
9-
/// Gets or sets the width
12+
/// Gets or sets the width in pixels. Defaults to 0. Required if a bitmap buffer is specified as <see cref="Buffer"/>.
1013
/// </summary>
1114
public int? Width { get; set; }
1215

1316
/// <summary>
14-
/// Gets or sets the height
17+
/// Gets or sets the height in pixels. Defaults to 0. Required if a bitmap buffer is specified as <see cref="Buffer"/>.
1518
/// </summary>
1619
public int? Height { get; set; }
1720

1821
/// <summary>
19-
/// Gets or sets the scalefactor
22+
/// Gets or sets the image scale factor. Defaults to 1.0.
2023
/// </summary>
2124
public float ScaleFactor { get; set; } = 1.0f;
2225

2326
/// <summary>
24-
/// Gets or sets the buffer
27+
/// Gets or sets the buffer containing the raw image data.
2528
/// </summary>
2629
public byte[] Buffer { get; set; }
2730

2831
/// <summary>
29-
/// Gets or sets the dataURL
32+
/// Gets or sets the data URL containing a base 64 encoded PNG or JPEG image.
3033
/// </summary>
3134
public string DataUrl { get; set; }
3235
}

src/ElectronNET.API/API/Entities/AppDetailsOptions.cs

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,36 @@
1-
namespace ElectronNET.API.Entities
1+
using System.Runtime.Versioning;
2+
3+
namespace ElectronNET.API.Entities
24
{
35
/// <summary>
46
///
57
/// </summary>
8+
/// <remarks>Up-to-date with Electron API 39.2</remarks>
9+
[SupportedOSPlatform("windows")]
610
public class AppDetailsOptions
711
{
812
/// <summary>
9-
/// Windows App User Model ID. It has to be set, otherwise the other options will have no effect.
13+
/// Window's App User Model ID. It has to be set, otherwise the other options will have no effect.
1014
/// </summary>
1115
public string AppId { get; set; }
1216

1317
/// <summary>
14-
/// Window’s Relaunch Icon.
18+
/// Window's relaunch icon resource path.
1519
/// </summary>
1620
public string AppIconPath { get; set; }
1721

1822
/// <summary>
19-
/// Index of the icon in appIconPath. Ignored when appIconPath is not set. Default is 0.
23+
/// Index of the icon in <see cref="AppIconPath"/>. Ignored when <see cref="AppIconPath"/> is not set. Default is 0.
2024
/// </summary>
2125
public int AppIconIndex { get; set; }
2226

2327
/// <summary>
24-
/// Window’s Relaunch Command.
28+
/// Window's relaunch command.
2529
/// </summary>
2630
public string RelaunchCommand { get; set; }
2731

2832
/// <summary>
29-
/// Window’s Relaunch Display Name.
33+
/// Window's relaunch display name.
3034
/// </summary>
3135
public string RelaunchDisplayName { get; set; }
3236
}

src/ElectronNET.API/API/Entities/AutoResizeOptions.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ namespace ElectronNET.API.Entities
55
/// <summary>
66
///
77
/// </summary>
8+
/// <remarks>Up-to-date with Electron API 39.2</remarks>
89
public class AutoResizeOptions
910
{
1011
/// <summary>

src/ElectronNET.API/API/Entities/BitmapOptions.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33
/// <summary>
44
///
55
/// </summary>
6+
/// <remarks>Up-to-date with Electron API 39.2</remarks>
67
public class BitmapOptions
78
{
89
/// <summary>
9-
/// Gets or sets the scale factor
10+
/// The image scale factor. Defaults to 1.0.
1011
/// </summary>
1112
public float ScaleFactor { get; set; } = 1.0f;
1213
}

src/ElectronNET.API/API/Entities/Blob.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
/// <summary>
44
///
55
/// </summary>
6+
/// <remarks>Up-to-date with Electron API 39.2</remarks>
67
public class Blob : IPostData
78
{
89
/// <summary>

src/ElectronNET.API/API/Entities/BrowserViewConstructorOptions.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,26 @@
33
/// <summary>
44
///
55
/// </summary>
6+
/// <remarks>Up-to-date with Electron API 39.2</remarks>
67
public class BrowserViewConstructorOptions
78
{
89
/// <summary>
9-
/// See BrowserWindow.
10+
/// Gets or sets the web preferences for the view (see WebPreferences).
1011
/// </summary>
1112
public WebPreferences WebPreferences { get; set; }
1213

1314
/// <summary>
14-
/// A proxy to set on creation in the format host:port.
15+
/// Gets or sets a proxy to use on creation in the format host:port.
1516
/// The proxy can be alternatively set using the BrowserView.WebContents.SetProxyAsync function.
1617
/// </summary>
18+
/// <remarks>This is custom shortcut. Not part of the Electron API.</remarks>
1719
public string Proxy { get; set; }
1820

1921
/// <summary>
20-
/// The credentials of the Proxy in the format username:password.
22+
/// Gets or sets the credentials of the proxy in the format username:password.
2123
/// These will only be used if the Proxy field is also set.
2224
/// </summary>
25+
/// <remarks>This is custom shortcut. Not part of the Electron API.</remarks>
2326
public string ProxyCredentials { get; set; }
2427
}
2528
}

0 commit comments

Comments
 (0)