Skip to content

Commit

Permalink
fix(IB_HVACScenario): add private constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
MingboPeng committed Apr 27, 2023
1 parent d0cbf11 commit f4604e4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Ironbug.HVAC/IB_HVACScenario.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ public class IB_HVACScenario
[DataMember]
public string Identifier { get; private set; }

private IB_HVACScenario()
{
this.HVACSystems = new List<IB_HVACSystem>();
}

public IB_HVACScenario(string id, string name, List<IB_HVACSystem> systems )
{
this.Identifier = string.IsNullOrEmpty(id) ? System.Guid.NewGuid().ToString().Substring(0, 6) : id;
Expand Down

0 comments on commit f4604e4

Please sign in to comment.