-
Notifications
You must be signed in to change notification settings - Fork 176
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(All): Solution pass to fix formatting warnings (#3068)
* chore: Silence Bentley and AdvanceSteel warnings on CI * fix(rvt): Remove space in `Partial Classes` folder * fix(tekla): Remove space from `Partial Classes` folder * fix(dyn): REVERT THIS AT THE END. Fix dynamo build on mac for cleanup * chore(all): Run csharpier for entire monorepo * fix(IDE0161): File-scoped namespaces * fix(IDE0090): 'new' expression can be simplified * fix(IDE0022): Use block body for method * Revert "fix(IDE0022): Use block body for method" This reverts commit 8bb9b7e. * feat: Expression body for methods is suggestion now * chore: Enforce husky setup on restore * fix: PEBKAC 🤦🏼♂️ * fix(all): IDE0011 * Warnings for our first set of warnings * fix(all): IDE0011 * feat(ci): Enforce csharpier formatting * fix(ci): Wrong yaml indent and format * fix(tests): IsDesktopBuild passed to tests in core * fix(ci): Disable auto pre-commit hook install * removed accidental push of warning as error * Revert "fix(dyn): REVERT THIS AT THE END. Fix dynamo build on mac for cleanup" This reverts commit 0658b36. --------- Co-authored-by: Jedd Morgan <[email protected]>
- Loading branch information
Showing
852 changed files
with
60,133 additions
and
50,614 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
98 changes: 49 additions & 49 deletions
98
ConnectorArchicad/ConnectorArchicad/Communication/CommandRequest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,78 +1,78 @@ | ||
using Speckle.Newtonsoft.Json; | ||
using Speckle.Newtonsoft.Json; | ||
|
||
namespace Archicad.Communication | ||
namespace Archicad.Communication; | ||
|
||
[JsonObject(MemberSerialization.OptIn)] | ||
internal sealed class AddOnCommandRequest<T> | ||
where T : class | ||
{ | ||
#region --- Classes --- | ||
|
||
[JsonObject(MemberSerialization.OptIn)] | ||
internal sealed class AddOnCommandRequest<T> where T : class | ||
private sealed class AddonCommandID | ||
{ | ||
#region --- Classes --- | ||
|
||
[JsonObject(MemberSerialization.OptIn)] | ||
private sealed class AddonCommandID | ||
{ | ||
#region --- Fields --- | ||
|
||
[JsonProperty("commandName")] | ||
public string CommandName { get; private set; } | ||
#region --- Fields --- | ||
|
||
[JsonProperty("commandNamespace")] | ||
public string CommandNamespace { get; } = "Speckle"; | ||
[JsonProperty("commandName")] | ||
public string CommandName { get; private set; } | ||
|
||
#endregion | ||
[JsonProperty("commandNamespace")] | ||
public string CommandNamespace { get; } = "Speckle"; | ||
|
||
#region --- Ctor \ Dtor --- | ||
#endregion | ||
|
||
public AddonCommandID(string commandName) | ||
{ | ||
CommandName = commandName; | ||
} | ||
#region --- Ctor \ Dtor --- | ||
|
||
#endregion | ||
public AddonCommandID(string commandName) | ||
{ | ||
CommandName = commandName; | ||
} | ||
|
||
[JsonObject(MemberSerialization.OptIn)] | ||
private sealed class AddonCommandParameters | ||
{ | ||
#region --- Fields --- | ||
#endregion | ||
} | ||
|
||
[JsonProperty("addOnCommandId")] | ||
private AddonCommandID Id { get; set; } | ||
[JsonObject(MemberSerialization.OptIn)] | ||
private sealed class AddonCommandParameters | ||
{ | ||
#region --- Fields --- | ||
|
||
[JsonProperty("addOnCommandParameters")] | ||
private T Parameters { get; set; } | ||
[JsonProperty("addOnCommandId")] | ||
private AddonCommandID Id { get; set; } | ||
|
||
#endregion | ||
[JsonProperty("addOnCommandParameters")] | ||
private T Parameters { get; set; } | ||
|
||
#region --- Ctor \ Dtor --- | ||
#endregion | ||
|
||
public AddonCommandParameters(string commandName, T parameters) | ||
{ | ||
Id = new AddonCommandID(commandName); | ||
Parameters = parameters; | ||
} | ||
#region --- Ctor \ Dtor --- | ||
|
||
#endregion | ||
public AddonCommandParameters(string commandName, T parameters) | ||
{ | ||
Id = new AddonCommandID(commandName); | ||
Parameters = parameters; | ||
} | ||
|
||
#endregion | ||
} | ||
|
||
#region --- Fields --- | ||
#endregion | ||
|
||
[JsonProperty("command")] | ||
private string Command { get; } = "API.ExecuteAddOnCommand"; | ||
#region --- Fields --- | ||
|
||
[JsonProperty("parameters")] | ||
private AddonCommandParameters Parameters { get; set; } | ||
[JsonProperty("command")] | ||
private string Command { get; } = "API.ExecuteAddOnCommand"; | ||
|
||
#endregion | ||
[JsonProperty("parameters")] | ||
private AddonCommandParameters Parameters { get; set; } | ||
|
||
#region --- Ctor \ Dtor --- | ||
#endregion | ||
|
||
public AddOnCommandRequest(string commandName, T requestParams) | ||
{ | ||
Parameters = new AddonCommandParameters(commandName, requestParams); | ||
} | ||
#region --- Ctor \ Dtor --- | ||
|
||
#endregion | ||
public AddOnCommandRequest(string commandName, T requestParams) | ||
{ | ||
Parameters = new AddonCommandParameters(commandName, requestParams); | ||
} | ||
|
||
#endregion | ||
} |
Oops, something went wrong.