From 6fdc535d7c4f0f6f3ead62e3631ad7fd21e36b70 Mon Sep 17 00:00:00 2001 From: legalles Date: Thu, 24 Oct 2024 14:23:38 +0200 Subject: [PATCH] style: use file-scope namespace and primary constructor --- Client/Api/Responses/IActivateJobsResponse.cs | 16 +-- Client/Api/Responses/IBrokerInfo.cs | 30 ++--- .../ICancelProcessInstanceResponse.cs | 15 ++- Client/Api/Responses/ICompleteJobResponse.cs | 16 ++- Client/Api/Responses/IDecisionMetadata.cs | 12 +- .../IDecisionRequirementsMetadata.cs | 18 +-- .../Api/Responses/IDeployResourceResponse.cs | 29 +++-- .../Responses/IEvaluateDecisionResponse.cs | 115 +++++++++--------- Client/Api/Responses/IEvaluatedDecision.cs | 25 ++-- .../Api/Responses/IEvaluatedDecisionInput.cs | 14 +-- .../Api/Responses/IEvaluatedDecisionOutput.cs | 14 +-- Client/Api/Responses/IFailJobResponse.cs | 16 ++- Client/Api/Responses/IJob.cs | 75 ++++++------ Client/Api/Responses/IMatchedDecisionRule.cs | 15 ++- .../IModifyProcessInstanceResponse.cs | 4 +- Client/Api/Responses/IPartitionInfo.cs | 22 ++-- .../Api/Responses/IProcessInstanceResponse.cs | 47 ++++--- .../Api/Responses/IProcessInstanceResult.cs | 51 ++++---- Client/Api/Responses/IProcessMetadata.cs | 25 ++-- .../Api/Responses/IPublishMessageResponse.cs | 15 +-- .../Api/Responses/IResolveIncidentResponse.cs | 15 +-- Client/Api/Responses/ISetVariablesResponse.cs | 17 ++- Client/Api/Responses/IThrowErrorResponse.cs | 15 +-- Client/Api/Responses/ITopology.cs | 25 ++-- .../Responses/IUpdateJobTimeoutResponse.cs | 15 +-- .../Api/Responses/IUpdateRetriesResponse.cs | 15 +-- Client/Api/Responses/PartitionBrokerRole.cs | 19 ++- 27 files changed, 331 insertions(+), 364 deletions(-) diff --git a/Client/Api/Responses/IActivateJobsResponse.cs b/Client/Api/Responses/IActivateJobsResponse.cs index 0da07ce5..ff0bb7f6 100644 --- a/Client/Api/Responses/IActivateJobsResponse.cs +++ b/Client/Api/Responses/IActivateJobsResponse.cs @@ -12,15 +12,15 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + using System.Collections.Generic; -namespace Zeebe.Client.Api.Responses +namespace Zeebe.Client.Api.Responses; + +public interface IActivateJobsResponse { - public interface IActivateJobsResponse - { - /// - /// the list of activated jobs - /// - IList Jobs { get; } - } + /// + /// the list of activated jobs. + /// + IList Jobs { get; } } \ No newline at end of file diff --git a/Client/Api/Responses/IBrokerInfo.cs b/Client/Api/Responses/IBrokerInfo.cs index 5669829d..2f25406a 100644 --- a/Client/Api/Responses/IBrokerInfo.cs +++ b/Client/Api/Responses/IBrokerInfo.cs @@ -12,25 +12,25 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + using System.Collections.Generic; -namespace Zeebe.Client.Api.Responses +namespace Zeebe.Client.Api.Responses; + +public interface IBrokerInfo { - public interface IBrokerInfo - { - /// the node if of the broker - int NodeId { get; } + /// the node if of the broker. + int NodeId { get; } - /// the address host of the broker - string Host { get; } + /// the address host of the broker. + string Host { get; } - /// the address port of the broker - int Port { get; } + /// the address port of the broker. + int Port { get; } - /// the address (host+port) of the broker separated by a ':' - string Address { get; } + /// the address (host+port) of the broker separated by a ':'. + string Address { get; } - /// all partitions of the broker - IList Partitions { get; } - } -} + /// all partitions of the broker. + IList Partitions { get; } +} \ No newline at end of file diff --git a/Client/Api/Responses/ICancelProcessInstanceResponse.cs b/Client/Api/Responses/ICancelProcessInstanceResponse.cs index 565e2f07..7306f2a8 100644 --- a/Client/Api/Responses/ICancelProcessInstanceResponse.cs +++ b/Client/Api/Responses/ICancelProcessInstanceResponse.cs @@ -1,9 +1,8 @@ -namespace Zeebe.Client.Api.Responses +namespace Zeebe.Client.Api.Responses; + +/// +/// Response on a cancel process instance command. +/// +public interface ICancelProcessInstanceResponse { - /// - /// Response on a cancel process instance command. - /// - public interface ICancelProcessInstanceResponse - { - } -} +} \ No newline at end of file diff --git a/Client/Api/Responses/ICompleteJobResponse.cs b/Client/Api/Responses/ICompleteJobResponse.cs index ba54fe80..d92fc1f1 100644 --- a/Client/Api/Responses/ICompleteJobResponse.cs +++ b/Client/Api/Responses/ICompleteJobResponse.cs @@ -12,12 +12,10 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. -namespace Zeebe.Client.Api.Responses -{ - /// - /// Represents an response for an job complete command request. - /// - public interface ICompleteJobResponse - { - } -} + +namespace Zeebe.Client.Api.Responses; + +/// +/// Represents an response for an job complete command request. +/// +public interface ICompleteJobResponse; \ No newline at end of file diff --git a/Client/Api/Responses/IDecisionMetadata.cs b/Client/Api/Responses/IDecisionMetadata.cs index bd4baf4d..11099cec 100644 --- a/Client/Api/Responses/IDecisionMetadata.cs +++ b/Client/Api/Responses/IDecisionMetadata.cs @@ -19,25 +19,25 @@ public interface IDecisionMetadata { /// /// the dmn decision ID, as parsed during deployment; together with the versions forms a - /// unique identifier for a specific decision + /// unique identifier for a specific decision. /// string DmnDecisionId { get; } - /// the dmn name of the decision, as parsed during deployment + /// the dmn name of the decision, as parsed during deployment. string DmnDecisionName { get; } - /// the assigned decision version + /// the assigned decision version. int Version { get; } - /// the assigned decision key, which acts as a unique identifier for this decision + /// the assigned decision key, which acts as a unique identifier for this decision. long DecisionKey { get; } /// /// the dmn ID of the decision requirements graph that this decision is part of, as parsed - /// during deployment + /// during deployment. /// string DmnDecisionRequirementsId { get; } - /// the assigned key of the decision requirements graph that this decision is part of + /// the assigned key of the decision requirements graph that this decision is part of. long DecisionRequirementsKey { get; } } \ No newline at end of file diff --git a/Client/Api/Responses/IDecisionRequirementsMetadata.cs b/Client/Api/Responses/IDecisionRequirementsMetadata.cs index 5388bfb8..74a2bd3b 100644 --- a/Client/Api/Responses/IDecisionRequirementsMetadata.cs +++ b/Client/Api/Responses/IDecisionRequirementsMetadata.cs @@ -1,12 +1,12 @@ -// +// // Copyright (c) 2021 camunda services GmbH (info@camunda.com) -// +// // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at -// +// // http://www.apache.org/licenses/LICENSE-2.0 -// +// // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -19,24 +19,24 @@ public interface IDecisionRequirementsMetadata { /// /// the dmn decision requirements ID, as parsed during deployment; together with the - /// versions forms a unique identifier for a specific decision + /// versions forms a unique identifier for a specific decision. /// string DmnDecisionRequirementsId { get; } - /// the dmn name of the decision requirements, as parsed during deployment + /// the dmn name of the decision requirements, as parsed during deployment. string DmnDecisionRequirementsName { get; } - /// the assigned decision requirements version + /// the assigned decision requirements version. int Version { get; } /// /// the assigned decision requirements key, which acts as a unique identifier for this - /// decision requirements + /// decision requirements. /// long DecisionRequirementsKey { get; } /// - /// the resource name (i.e. filename) from which this decision requirements was parsed + /// the resource name (i.e. filename) from which this decision requirements was parsed. /// string ResourceName { get; } } \ No newline at end of file diff --git a/Client/Api/Responses/IDeployResourceResponse.cs b/Client/Api/Responses/IDeployResourceResponse.cs index 42ebecfa..a6453ce1 100644 --- a/Client/Api/Responses/IDeployResourceResponse.cs +++ b/Client/Api/Responses/IDeployResourceResponse.cs @@ -1,22 +1,21 @@ using System.Collections.Generic; -namespace Zeebe.Client.Api.Responses +namespace Zeebe.Client.Api.Responses; + +public interface IDeployResourceResponse { - public interface IDeployResourceResponse - { - /// the unique key of the deployment - long Key { get; } + /// the unique key of the deployment. + long Key { get; } - /// the processes meta data, which are deployed - IList Processes { get; } + /// the processes meta data, which are deployed. + IList Processes { get; } - /// the decisions which are deployed - IList Decisions { get; } + /// the decisions which are deployed. + IList Decisions { get; } - /// the decision requirements which are deployed - IList DecisionRequirements { get; } + /// the decision requirements which are deployed. + IList DecisionRequirements { get; } - /// the forms which are deployed - IList Forms { get; } - } -} + /// the forms which are deployed. + IList Forms { get; } +} \ No newline at end of file diff --git a/Client/Api/Responses/IEvaluateDecisionResponse.cs b/Client/Api/Responses/IEvaluateDecisionResponse.cs index 7f58c499..79c3f41f 100644 --- a/Client/Api/Responses/IEvaluateDecisionResponse.cs +++ b/Client/Api/Responses/IEvaluateDecisionResponse.cs @@ -1,62 +1,61 @@ using System.Collections.Generic; -namespace Zeebe.Client.Api.Responses +namespace Zeebe.Client.Api.Responses; + +/// +/// Response for evaluating a decision on the broker. +/// +public interface IEvaluateDecisionResponse { - /// - /// Response for evaluating a decision on the broker. - /// - public interface IEvaluateDecisionResponse - { - /// - /// the decision ID, as parsed during deployment; together with the versions forms a unique - /// identifier for a specific decision - /// - string DecisionId { get; } - - /// - /// the assigned decision version - /// - int DecisionVersion { get; } - - /// - /// the assigned decision key, which acts as a unique identifier for this decision - /// - long DecisionKey { get; } - - /// - /// the name of the decision, as parsed during deployment - /// - string DecisionName { get; } - - /// - /// the ID of the decision requirements graph that this decision is part of, as parsed - /// during deployment - /// - string DecisionRequirementsId { get; } - - /// - /// the assigned key of the decision requirements graph that this decision is part of - /// - long DecisionRequirementsKey { get; } - - /// - /// the output of the evaluated decision - /// - string DecisionOutput { get; } - - /// - /// a list of decisions that were evaluated within the requested decision evaluation - /// - IList EvaluatedDecisions { get; } - - /// - /// a string indicating the ID of the decision which failed during evaluation - /// - string FailedDecisionId { get; } - - /// - /// a message describing why the decision which was evaluated failed - /// - string FailureMessage { get; } - } + /// + /// the decision ID, as parsed during deployment; together with the versions forms a unique + /// identifier for a specific decision. + /// + string DecisionId { get; } + + /// + /// the assigned decision version. + /// + int DecisionVersion { get; } + + /// + /// the assigned decision key, which acts as a unique identifier for this decision. + /// + long DecisionKey { get; } + + /// + /// the name of the decision, as parsed during deployment. + /// + string DecisionName { get; } + + /// + /// the ID of the decision requirements graph that this decision is part of, as parsed + /// during deployment. + /// + string DecisionRequirementsId { get; } + + /// + /// the assigned key of the decision requirements graph that this decision is part of. + /// + long DecisionRequirementsKey { get; } + + /// + /// the output of the evaluated decision. + /// + string DecisionOutput { get; } + + /// + /// a list of decisions that were evaluated within the requested decision evaluation. + /// + IList EvaluatedDecisions { get; } + + /// + /// a string indicating the ID of the decision which failed during evaluation. + /// + string FailedDecisionId { get; } + + /// + /// a message describing why the decision which was evaluated failed. + /// + string FailureMessage { get; } } \ No newline at end of file diff --git a/Client/Api/Responses/IEvaluatedDecision.cs b/Client/Api/Responses/IEvaluatedDecision.cs index 98b7fea9..1af90db2 100644 --- a/Client/Api/Responses/IEvaluatedDecision.cs +++ b/Client/Api/Responses/IEvaluatedDecision.cs @@ -1,12 +1,12 @@ -// +// // Copyright (c) 2021 camunda services GmbH (info@camunda.com) -// +// // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at -// +// // http://www.apache.org/licenses/LICENSE-2.0 -// +// // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -14,7 +14,6 @@ // limitations under the License. using System.Collections.Generic; -using GatewayProtocol; namespace Zeebe.Client.Api.Responses; @@ -22,42 +21,42 @@ public interface IEvaluatedDecision { /// /// the decision ID, as parsed during deployment; together with the versions forms a unique - /// identifier for a specific decision + /// identifier for a specific decision. /// string DecisionId { get; } /// - /// the assigned decision version + /// the assigned decision version. /// int DecisionVersion { get; } /// - /// the assigned decision key, which acts as a unique identifier for this decision + /// the assigned decision key, which acts as a unique identifier for this decision. /// long DecisionKey { get; } /// - /// the name of the decision, as parsed during deployment + /// the name of the decision, as parsed during deployment. /// string DecisionName { get; } /// - /// the type of the evaluated decision + /// the type of the evaluated decision. /// string DecisionType { get; } /// - /// the output of the evaluated decision + /// the output of the evaluated decision. /// string DecisionOutput { get; } /// - /// the decision inputs that were evaluated within this decision evaluation + /// the decision inputs that were evaluated within this decision evaluation. /// IList EvaluatedInputs { get; } /// - /// the decision rules that matched within this decision evaluation + /// the decision rules that matched within this decision evaluation. /// IList MatchedRules { get; } } \ No newline at end of file diff --git a/Client/Api/Responses/IEvaluatedDecisionInput.cs b/Client/Api/Responses/IEvaluatedDecisionInput.cs index 4a85509b..51af544a 100644 --- a/Client/Api/Responses/IEvaluatedDecisionInput.cs +++ b/Client/Api/Responses/IEvaluatedDecisionInput.cs @@ -1,12 +1,12 @@ -// +// // Copyright (c) 2021 camunda services GmbH (info@camunda.com) -// +// // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at -// +// // http://www.apache.org/licenses/LICENSE-2.0 -// +// // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -18,17 +18,17 @@ namespace Zeebe.Client.Api.Responses; public interface IEvaluatedDecisionInput { /// - /// the id of the evaluated decision input + /// the id of the evaluated decision input. /// string InputId { get; } /// - /// the name of the evaluated decision input + /// the name of the evaluated decision input. /// string InputName { get; } /// - /// the value of the evaluated decision input + /// the value of the evaluated decision input. /// string InputValue { get; } } \ No newline at end of file diff --git a/Client/Api/Responses/IEvaluatedDecisionOutput.cs b/Client/Api/Responses/IEvaluatedDecisionOutput.cs index 874d00e8..c75bf497 100644 --- a/Client/Api/Responses/IEvaluatedDecisionOutput.cs +++ b/Client/Api/Responses/IEvaluatedDecisionOutput.cs @@ -1,12 +1,12 @@ -// +// // Copyright (c) 2021 camunda services GmbH (info@camunda.com) -// +// // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at -// +// // http://www.apache.org/licenses/LICENSE-2.0 -// +// // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -18,17 +18,17 @@ namespace Zeebe.Client.Api.Responses; public interface IEvaluatedDecisionOutput { /// - /// the id of the evaluated decision output + /// the id of the evaluated decision output. /// string OutputId { get; } /// - /// the name of the evaluated decision output + /// the name of the evaluated decision output. /// string OutputName { get; } /// - /// the value of the evaluated decision output + /// the value of the evaluated decision output. /// string OutputValue { get; } } \ No newline at end of file diff --git a/Client/Api/Responses/IFailJobResponse.cs b/Client/Api/Responses/IFailJobResponse.cs index 75459b4d..c33c2fc6 100644 --- a/Client/Api/Responses/IFailJobResponse.cs +++ b/Client/Api/Responses/IFailJobResponse.cs @@ -12,12 +12,10 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. -namespace Zeebe.Client.Api.Responses -{ - /// - /// Represents an response for an job fail command request. - /// - public interface IFailJobResponse - { - } -} + +namespace Zeebe.Client.Api.Responses; + +/// +/// Represents an response for an job fail command request. +/// +public interface IFailJobResponse; \ No newline at end of file diff --git a/Client/Api/Responses/IJob.cs b/Client/Api/Responses/IJob.cs index 0dbc338c..1f76a2ca 100644 --- a/Client/Api/Responses/IJob.cs +++ b/Client/Api/Responses/IJob.cs @@ -12,57 +12,56 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + using System; -using System.Collections.Generic; -namespace Zeebe.Client.Api.Responses +namespace Zeebe.Client.Api.Responses; + +public interface IJob { - public interface IJob - { - /// The unique key of the job - long Key { get; } + /// The unique key of the job. + long Key { get; } - /// The type of the job - string Type { get; } + /// The type of the job. + string Type { get; } - /// Key of the process instance - long ProcessInstanceKey { get; } + /// Key of the process instance. + long ProcessInstanceKey { get; } - /// BPMN process id of the process - string BpmnProcessId { get; } + /// BPMN process id of the process. + string BpmnProcessId { get; } - /// Version of the process - int ProcessDefinitionVersion { get; } + /// Version of the process. + int ProcessDefinitionVersion { get; } - /// Key of the process - long ProcessDefinitionKey { get; } + /// Key of the process. + long ProcessDefinitionKey { get; } - /// Id of the process element - string ElementId { get; } + /// Id of the process element. + string ElementId { get; } - /// Key of the element instance - long ElementInstanceKey { get; } + /// Key of the element instance. + long ElementInstanceKey { get; } - /// the assigned worker to complete the job - string Worker { get; } + /// the assigned worker to complete the job. + string Worker { get; } - /// remaining retries - int Retries { get; } + /// remaining retries. + int Retries { get; } - /// - /// The time until when the job is exclusively assigned to this worker. If the deadline is - /// exceeded, it can happen that the job is handed to another worker and the work is performed - /// twice. - /// - DateTime Deadline { get; } + /// + /// The time until when the job is exclusively assigned to this worker. If the deadline is + /// exceeded, it can happen that the job is handed to another worker and the work is performed + /// twice. + /// + DateTime Deadline { get; } - /// JSON-formatted variables - string Variables { get; } + /// JSON-formatted variables. + string Variables { get; } - /// JSON-formatted Custom Headers - string CustomHeaders { get; } + /// JSON-formatted Custom Headers. + string CustomHeaders { get; } - /// tenant ID of the process - string TenantId { get; } - } -} + /// tenant ID of the process. + string TenantId { get; } +} \ No newline at end of file diff --git a/Client/Api/Responses/IMatchedDecisionRule.cs b/Client/Api/Responses/IMatchedDecisionRule.cs index d8cc7617..3efdfcbe 100644 --- a/Client/Api/Responses/IMatchedDecisionRule.cs +++ b/Client/Api/Responses/IMatchedDecisionRule.cs @@ -1,12 +1,12 @@ -// +// // Copyright (c) 2021 camunda services GmbH (info@camunda.com) -// +// // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at -// +// // http://www.apache.org/licenses/LICENSE-2.0 -// +// // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -14,24 +14,23 @@ // limitations under the License. using System.Collections.Generic; -using GatewayProtocol; namespace Zeebe.Client.Api.Responses; public interface IMatchedDecisionRule { /// - /// the id of the matched rule + /// the id of the matched rule. /// string RuleId { get; } /// - /// the index of the matched rule + /// the index of the matched rule. /// int RuleIndex { get; } /// - /// the evaluated decision outputs + /// the evaluated decision outputs. /// IList EvaluatedOutputs { get; } } \ No newline at end of file diff --git a/Client/Api/Responses/IModifyProcessInstanceResponse.cs b/Client/Api/Responses/IModifyProcessInstanceResponse.cs index c7bcc162..697e30e1 100644 --- a/Client/Api/Responses/IModifyProcessInstanceResponse.cs +++ b/Client/Api/Responses/IModifyProcessInstanceResponse.cs @@ -3,6 +3,4 @@ /// /// Response on a process instance to modification. /// -public interface IModifyProcessInstanceResponse -{ -} \ No newline at end of file +public interface IModifyProcessInstanceResponse; \ No newline at end of file diff --git a/Client/Api/Responses/IPartitionInfo.cs b/Client/Api/Responses/IPartitionInfo.cs index 7ce9b7dd..5634337f 100644 --- a/Client/Api/Responses/IPartitionInfo.cs +++ b/Client/Api/Responses/IPartitionInfo.cs @@ -12,17 +12,17 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. -namespace Zeebe.Client.Api.Responses + +namespace Zeebe.Client.Api.Responses; + +public interface IPartitionInfo { - public interface IPartitionInfo - { - /// the partition's id - int PartitionId { get; } + /// the partition's id. + int PartitionId { get; } - /// the current role of the broker for this partition (i.e. leader or follower) - PartitionBrokerRole Role { get; } + /// the current role of the broker for this partition (i.e. leader or follower). + PartitionBrokerRole Role { get; } - /// true if the broker is the current leader of this partition - bool IsLeader { get; } - } -} + /// true if the broker is the current leader of this partition. + bool IsLeader { get; } +} \ No newline at end of file diff --git a/Client/Api/Responses/IProcessInstanceResponse.cs b/Client/Api/Responses/IProcessInstanceResponse.cs index ce687227..5275815e 100644 --- a/Client/Api/Responses/IProcessInstanceResponse.cs +++ b/Client/Api/Responses/IProcessInstanceResponse.cs @@ -1,28 +1,27 @@ -namespace Zeebe.Client.Api.Responses +namespace Zeebe.Client.Api.Responses; + +/// +/// Response for an create process instance command. +/// +public interface IProcessInstanceResponse { - /// - /// Response for an create process instance command. - /// - public interface IProcessInstanceResponse - { - /// - /// Key of the process which this instance was created for. - /// - long ProcessDefinitionKey { get; } + /// + /// Key of the process which this instance was created for. + /// + long ProcessDefinitionKey { get; } - /// - /// BPMN process id of the process which this instance was created for. - /// - string BpmnProcessId { get; } + /// + /// BPMN process id of the process which this instance was created for. + /// + string BpmnProcessId { get; } - /// - /// Version of the process which this instance was created for. - /// - int Version { get; } + /// + /// Version of the process which this instance was created for. + /// + int Version { get; } - /// - /// Unique key of the created process instance on the partition. - /// - long ProcessInstanceKey { get; } - } -} + /// + /// Unique key of the created process instance on the partition. + /// + long ProcessInstanceKey { get; } +} \ No newline at end of file diff --git a/Client/Api/Responses/IProcessInstanceResult.cs b/Client/Api/Responses/IProcessInstanceResult.cs index bf78b86f..17e08e41 100644 --- a/Client/Api/Responses/IProcessInstanceResult.cs +++ b/Client/Api/Responses/IProcessInstanceResult.cs @@ -1,31 +1,30 @@ -namespace Zeebe.Client.Api.Responses +namespace Zeebe.Client.Api.Responses; + +/// +/// Response for an create process instance with result command. +/// +public interface IProcessInstanceResult { - /// - /// Response for an create process instance with result command. - /// - public interface IProcessInstanceResult - { - /// - /// Key of the process which this instance was created for. - /// - long ProcessDefinitionKey { get; } + /// + /// Key of the process which this instance was created for. + /// + long ProcessDefinitionKey { get; } - /// - /// BPMN process id of the process which this instance was created for. - /// - string BpmnProcessId { get; } + /// + /// BPMN process id of the process which this instance was created for. + /// + string BpmnProcessId { get; } - /// - /// Version of the process which this instance was created for. - /// - int Version { get; } + /// + /// Version of the process which this instance was created for. + /// + int Version { get; } - /// - /// Unique key of the created process instance on the partition. - /// - long ProcessInstanceKey { get; } + /// + /// Unique key of the created process instance on the partition. + /// + long ProcessInstanceKey { get; } - /// JSON-formatted variables - string Variables { get; } - } -} + /// JSON-formatted variables. + string Variables { get; } +} \ No newline at end of file diff --git a/Client/Api/Responses/IProcessMetadata.cs b/Client/Api/Responses/IProcessMetadata.cs index 705e96e4..e1f3ba45 100644 --- a/Client/Api/Responses/IProcessMetadata.cs +++ b/Client/Api/Responses/IProcessMetadata.cs @@ -1,17 +1,16 @@ -namespace Zeebe.Client.Api.Responses +namespace Zeebe.Client.Api.Responses; + +public interface IProcessMetadata { - public interface IProcessMetadata - { - /// the BPMN process id of the process - string BpmnProcessId { get; } + /// the BPMN process id of the process. + string BpmnProcessId { get; } - /// the version of the deployed process - int Version { get; } + /// the version of the deployed process. + int Version { get; } - /// the key of the deployed process - long ProcessDefinitionKey { get; } + /// the key of the deployed process. + long ProcessDefinitionKey { get; } - /// the name of the deployment resource which contains the process - string ResourceName { get; } - } -} + /// the name of the deployment resource which contains the process. + string ResourceName { get; } +} \ No newline at end of file diff --git a/Client/Api/Responses/IPublishMessageResponse.cs b/Client/Api/Responses/IPublishMessageResponse.cs index f6ab308c..9ea5d5f5 100644 --- a/Client/Api/Responses/IPublishMessageResponse.cs +++ b/Client/Api/Responses/IPublishMessageResponse.cs @@ -1,9 +1,6 @@ -namespace Zeebe.Client.Api.Responses -{ - /// - /// Response for publishing a message. - /// - public interface IPublishMessageResponse - { - } -} \ No newline at end of file +namespace Zeebe.Client.Api.Responses; + +/// +/// Response for publishing a message. +/// +public interface IPublishMessageResponse; \ No newline at end of file diff --git a/Client/Api/Responses/IResolveIncidentResponse.cs b/Client/Api/Responses/IResolveIncidentResponse.cs index 7111f7ac..f82f20a0 100644 --- a/Client/Api/Responses/IResolveIncidentResponse.cs +++ b/Client/Api/Responses/IResolveIncidentResponse.cs @@ -1,9 +1,6 @@ -namespace Zeebe.Client.Api.Responses -{ - /// - /// Response for an resolve incident request. - /// - public interface IResolveIncidentResponse - { - } -} \ No newline at end of file +namespace Zeebe.Client.Api.Responses; + +/// +/// Response for an resolve incident request. +/// +public interface IResolveIncidentResponse; \ No newline at end of file diff --git a/Client/Api/Responses/ISetVariablesResponse.cs b/Client/Api/Responses/ISetVariablesResponse.cs index 60af656c..a72164ab 100644 --- a/Client/Api/Responses/ISetVariablesResponse.cs +++ b/Client/Api/Responses/ISetVariablesResponse.cs @@ -1,11 +1,10 @@ -namespace Zeebe.Client.Api.Responses +namespace Zeebe.Client.Api.Responses; + +/// +/// Response for an set variables request. +/// +public interface ISetVariablesResponse { - /// - /// Response for an set variables request. - /// - public interface ISetVariablesResponse - { - /// The unique key of the command - long Key { get; } - } + /// The unique key of the command. + long Key { get; } } \ No newline at end of file diff --git a/Client/Api/Responses/IThrowErrorResponse.cs b/Client/Api/Responses/IThrowErrorResponse.cs index 61a1940a..ea9888f6 100644 --- a/Client/Api/Responses/IThrowErrorResponse.cs +++ b/Client/Api/Responses/IThrowErrorResponse.cs @@ -1,9 +1,6 @@ -namespace Zeebe.Client.Api.Responses -{ - /// - /// Response for an throw error request. - /// - public interface IThrowErrorResponse - { - } -} \ No newline at end of file +namespace Zeebe.Client.Api.Responses; + +/// +/// Response for an throw error request. +/// +public interface IThrowErrorResponse; \ No newline at end of file diff --git a/Client/Api/Responses/ITopology.cs b/Client/Api/Responses/ITopology.cs index a130b8b4..7860e37c 100644 --- a/Client/Api/Responses/ITopology.cs +++ b/Client/Api/Responses/ITopology.cs @@ -14,18 +14,17 @@ // limitations under the License. using System.Collections.Generic; -namespace Zeebe.Client.Api.Responses +namespace Zeebe.Client.Api.Responses; + +public interface ITopology { - public interface ITopology - { - /// - /// All (known) brokers of the cluster - /// - IList Brokers { get; } + /// + /// All (known) brokers of the cluster. + /// + IList Brokers { get; } - /// - /// The gateway version or 'lower then 0.23' if none was found. - /// - string GatewayVersion { get; } - } -} + /// + /// The gateway version or 'lower then 0.23' if none was found. + /// + string GatewayVersion { get; } +} \ No newline at end of file diff --git a/Client/Api/Responses/IUpdateJobTimeoutResponse.cs b/Client/Api/Responses/IUpdateJobTimeoutResponse.cs index 6a0156a2..75662254 100644 --- a/Client/Api/Responses/IUpdateJobTimeoutResponse.cs +++ b/Client/Api/Responses/IUpdateJobTimeoutResponse.cs @@ -1,9 +1,6 @@ -namespace Zeebe.Client.Api.Responses -{ - /// - /// Response for an update job timeout request. - /// - public interface IUpdateJobTimeoutResponse - { - } -} \ No newline at end of file +namespace Zeebe.Client.Api.Responses; + +/// +/// Response for an update job timeout request. +/// +public interface IUpdateJobTimeoutResponse; \ No newline at end of file diff --git a/Client/Api/Responses/IUpdateRetriesResponse.cs b/Client/Api/Responses/IUpdateRetriesResponse.cs index 25ec13bc..2beaabde 100644 --- a/Client/Api/Responses/IUpdateRetriesResponse.cs +++ b/Client/Api/Responses/IUpdateRetriesResponse.cs @@ -1,9 +1,6 @@ -namespace Zeebe.Client.Api.Responses -{ - /// - /// Response for an update retries request. - /// - public interface IUpdateRetriesResponse - { - } -} \ No newline at end of file +namespace Zeebe.Client.Api.Responses; + +/// +/// Response for an update retries request. +/// +public interface IUpdateRetriesResponse; \ No newline at end of file diff --git a/Client/Api/Responses/PartitionBrokerRole.cs b/Client/Api/Responses/PartitionBrokerRole.cs index a66373c9..7584cfa4 100644 --- a/Client/Api/Responses/PartitionBrokerRole.cs +++ b/Client/Api/Responses/PartitionBrokerRole.cs @@ -12,14 +12,13 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. -namespace Zeebe.Client.Api.Responses +namespace Zeebe.Client.Api.Responses; + +/// +/// The RAFT role of the broker either LEADER or FOLLOWER. +/// +public enum PartitionBrokerRole { - /// - /// The RAFT role of the broker either LEADER or FOLLOWER. - /// - public enum PartitionBrokerRole - { - LEADER, - FOLLOWER - } -} + LEADER, + FOLLOWER +} \ No newline at end of file