Skip to content

Commit

Permalink
Add missing/update existing enums #8229
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Padmore authored and Dan Padmore committed Nov 8, 2019
1 parent 9f70d0c commit 184d784
Show file tree
Hide file tree
Showing 9 changed files with 37 additions and 12 deletions.
10 changes: 10 additions & 0 deletions src/Viren.Core/Enums/BlockType.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
namespace Viren.Core.Enums
{
public enum BlockType
{
Unknown = 0,
Simple = 1,
Composite = 2,
Switch = 3
}
}
9 changes: 9 additions & 0 deletions src/Viren.Core/Enums/BlockUsageType.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
namespace Viren.Core.Enums
{
public enum BlockUsageType
{
Default = 1,
Root = 2,
Library = 3
}
}
10 changes: 5 additions & 5 deletions src/Viren.Core/Enums/SystemType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
{
public enum SystemType
{
Unknown = 0,
String,
Decimal,
DateTime,
Boolean
Unknown = 17000,
String = 17001,
Decimal = 17002,
DateTime = 17003,
Boolean = 17004
}
}
8 changes: 4 additions & 4 deletions src/Viren.Core/Enums/TypeKind.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
{
public enum TypeKind
{
System = 0,
Simple = 1,
Complex = 2,
Table = 3
System = 7001,
Simple = 7002,
Complex = 7003,
Table = 7004
}
}
2 changes: 1 addition & 1 deletion src/Viren.Core/Viren.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<TargetFrameworks Condition="'$(LibraryFrameworks)'!=''">$(LibraryFrameworks)</TargetFrameworks>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<Version>1.0.0</Version>
<Version>1.0.1</Version>
<Authors>Teal Partners</Authors>
<Company>Teal Partners</Company>
<Product>Viren .NET client core library</Product>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<PropertyGroup>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<Version>1.0.0</Version>
<Version>1.0.1</Version>
<Authors>Teal Partners</Authors>
<Product>Viren execution .NET client</Product>
<RepositoryUrl>https://github.com/tealpartners/viren.net</RepositoryUrl>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Collections.Generic;
using Viren.Core.Enums;

namespace Viren.Execution.Dtos.Documentation
{
Expand All @@ -9,8 +10,10 @@ public class BlockDocumentationDetailDto
public string Label { get; set; }

public string UsageType { get; set; }
public BlockUsageType UsageTypeCode { get; set; }

public string BlockType { get; set; }
public BlockType BlockTypeCode { get; set; }

public BlockDocumentationOptionalInfoDto OptionalInfo { get; set; }

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
using Viren.Core.Enums;

namespace Viren.Execution.Dtos.Documentation
{
public class BlockDocumentationReferenceDto
Expand All @@ -7,5 +9,6 @@ public class BlockDocumentationReferenceDto
public string Label { get; set; }

public string UsageType { get; set; }
public BlockUsageType UsageTypeCode { get; set; }
}
}
2 changes: 1 addition & 1 deletion src/Viren.Execution/Viren.Execution.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<TargetFrameworks Condition="'$(LibraryFrameworks)'!=''">$(LibraryFrameworks)</TargetFrameworks>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<Version>1.0.0</Version>
<Version>1.0.1</Version>
<Authors>Teal Partners</Authors>
<Product>Viren execution .NET client</Product>
<RepositoryUrl>https://github.com/tealpartners/viren.net</RepositoryUrl>
Expand Down

0 comments on commit 184d784

Please sign in to comment.