From 814c3ae018d5d89e1d4f25519596e8e6cbac1079 Mon Sep 17 00:00:00 2001 From: Mingbo Peng Date: Mon, 3 Feb 2025 20:38:06 +0800 Subject: [PATCH] fix(enums): update enums with new generator --- .generator | 2 +- src/HoneybeeSchema/Model/View.cs | 4 ++-- src/HoneybeeSchema/Model/ViewType.cs | 12 ++++++------ src/TypescriptSDK/models/View.ts | 2 +- src/TypescriptSDK/models/ViewType.ts | 12 ++++++------ 5 files changed, 16 insertions(+), 16 deletions(-) diff --git a/.generator b/.generator index c7dec68c..3f13a5e6 160000 --- a/.generator +++ b/.generator @@ -1 +1 @@ -Subproject commit c7dec68cd138dd36e65d4d49430194770d016b94 +Subproject commit 3f13a5e6c574380696256dee3ff6a4e6830e5cd6 diff --git a/src/HoneybeeSchema/Model/View.cs b/src/HoneybeeSchema/Model/View.cs index 2226a537..ebe1131a 100644 --- a/src/HoneybeeSchema/Model/View.cs +++ b/src/HoneybeeSchema/Model/View.cs @@ -57,7 +57,7 @@ protected View() /// An optional string to note the view group ' 'to which the sensor is a part of. Views sharing the same ' 'group_identifier will be written to the same subfolder in Radiance ' 'folder (default: None). public View ( - string identifier, List position, List direction, List upVector, string displayName = default, string roomIdentifier = default, List> lightPath = default, ViewType viewType = ViewType.v, double hSize = 60D, double vSize = 60D, double shift = default, double lift = default, double foreClip = default, double aftClip = default, string groupIdentifier = default + string identifier, List position, List direction, List upVector, string displayName = default, string roomIdentifier = default, List> lightPath = default, ViewType viewType = ViewType.V, double hSize = 60D, double vSize = 60D, double shift = default, double lift = default, double foreClip = default, double aftClip = default, string groupIdentifier = default ) : base(identifier: identifier, displayName: displayName, roomIdentifier: roomIdentifier, lightPath: lightPath) { this.Position = position ?? throw new System.ArgumentNullException("position is a required property for View and cannot be null"); @@ -111,7 +111,7 @@ public View /// [Summary(@"ViewType")] [DataMember(Name = "view_type")] - public ViewType ViewType { get; set; } = ViewType.v; + public ViewType ViewType { get; set; } = ViewType.V; /// /// A number for the horizontal field of view in degrees (for all perspective projections including fisheye). For a parallel projection, this is the view width in world coordinates. diff --git a/src/HoneybeeSchema/Model/ViewType.cs b/src/HoneybeeSchema/Model/ViewType.cs index 17352265..a223eec8 100644 --- a/src/HoneybeeSchema/Model/ViewType.cs +++ b/src/HoneybeeSchema/Model/ViewType.cs @@ -19,22 +19,22 @@ public enum ViewType { [EnumMember(Value = "v")] - v = 1, + V = 1, [EnumMember(Value = "h")] - h = 2, + H = 2, [EnumMember(Value = "l")] - l = 3, + L = 3, [EnumMember(Value = "c")] - c = 4, + C = 4, [EnumMember(Value = "a")] - a = 5, + A = 5, [EnumMember(Value = "s")] - s = 6, + S = 6, } diff --git a/src/TypescriptSDK/models/View.ts b/src/TypescriptSDK/models/View.ts index c8e0dbb8..17e89c51 100644 --- a/src/TypescriptSDK/models/View.ts +++ b/src/TypescriptSDK/models/View.ts @@ -72,7 +72,7 @@ export class View extends _RadianceAsset { constructor() { super(); this.type = "View"; - this.view_type = ViewType.v; + this.view_type = ViewType.V; this.h_size = 60; this.v_size = 60; } diff --git a/src/TypescriptSDK/models/ViewType.ts b/src/TypescriptSDK/models/ViewType.ts index ba768a9f..c65dd7d9 100644 --- a/src/TypescriptSDK/models/ViewType.ts +++ b/src/TypescriptSDK/models/ViewType.ts @@ -2,10 +2,10 @@ /** A single character for the view type (-vt). */ export enum ViewType { - v = "v", - h = "h", - l = "l", - c = "c", - a = "a", - s = "s", + V = "v", + H = "h", + L = "l", + C = "c", + A = "a", + S = "s", } \ No newline at end of file