-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2366 from abarz722/develop
further modelling fixes + improvements
- Loading branch information
Showing
19 changed files
with
335 additions
and
137 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
using Newtonsoft.Json; | ||
using System.Text.Json.Serialization; | ||
using FWO.Api.Data; | ||
|
||
namespace FWO.Config.Api.Data | ||
{ | ||
public class CommonAreaConfig | ||
{ | ||
[JsonProperty("area_id"), JsonPropertyName("area_id")] | ||
public long AreaId { get; set; } = 0; | ||
|
||
[JsonProperty("use_in_src"), JsonPropertyName("use_in_src")] | ||
public bool UseInSrc { get; set; } = true; | ||
|
||
[JsonProperty("use_in_dst"), JsonPropertyName("use_in_dst")] | ||
public bool UseInDst { get; set; } = true; | ||
} | ||
|
||
public class CommonArea | ||
{ | ||
public ModellingNwGroupWrapper Area { get; set; } = new(); | ||
|
||
public bool UseInSrc { get; set; } = true; | ||
|
||
public bool UseInDst { get; set; } = true; | ||
|
||
public CommonAreaConfig ToConfigItem() | ||
{ | ||
return new(){ AreaId = Area.Content.Id, UseInSrc = UseInSrc, UseInDst = UseInDst}; | ||
} | ||
} | ||
} |
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
Oops, something went wrong.