Skip to content

Commit 067afad

Browse files
authored
Merge pull request #131 from Yellow-Dog-Man/frooxius/tweak/change-sh-names
Change spherical harmonics classes names to be more consistent
2 parents 1135728 + f76c564 commit 067afad

2 files changed

Lines changed: 16 additions & 16 deletions

File tree

ResoniteLink/Models/DataModel/Fields/Field_SphericalHarmonics.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
namespace ResoniteLink
77
{
8-
public class Field_SH_L1 : Field
8+
public class Field_SphericalHarmonicsL1 : Field
99
{
1010
[JsonPropertyName("value")]
1111
public SphericalHarmonicsL1 Value { get; set; }
@@ -16,7 +16,7 @@ public class Field_SH_L1 : Field
1616
public override Type ValueType => typeof(SphericalHarmonicsL1);
1717
}
1818

19-
public class Field_SH_L2 : Field
19+
public class Field_SphericalHarmonicsL2 : Field
2020
{
2121
[JsonPropertyName("value")]
2222
public SphericalHarmonicsL2 Value { get; set; }
@@ -27,7 +27,7 @@ public class Field_SH_L2 : Field
2727
public override Type ValueType => typeof(SphericalHarmonicsL2);
2828
}
2929

30-
public class Field_SH_L3 : Field
30+
public class Field_SphericalHarmonicsL3 : Field
3131
{
3232
[JsonPropertyName("value")]
3333
public SphericalHarmonicsL3 Value { get; set; }
@@ -38,7 +38,7 @@ public class Field_SH_L3 : Field
3838
public override Type ValueType => typeof(SphericalHarmonicsL3);
3939
}
4040

41-
public class Field_SH_L4 : Field
41+
public class Field_SphericalHarmonicsL4 : Field
4242
{
4343
[JsonPropertyName("value")]
4444
public SphericalHarmonicsL4 Value { get; set; }
@@ -49,9 +49,9 @@ public class Field_SH_L4 : Field
4949
public override Type ValueType => typeof(SphericalHarmonicsL4);
5050
}
5151

52-
[JsonDerivedType(typeof(Field_SH_L1), "sh_l1")]
53-
[JsonDerivedType(typeof(Field_SH_L2), "sh_l2")]
54-
[JsonDerivedType(typeof(Field_SH_L3), "sh_l3")]
55-
[JsonDerivedType(typeof(Field_SH_L4), "sh_l4")]
52+
[JsonDerivedType(typeof(Field_SphericalHarmonicsL1), "sh_l1")]
53+
[JsonDerivedType(typeof(Field_SphericalHarmonicsL2), "sh_l2")]
54+
[JsonDerivedType(typeof(Field_SphericalHarmonicsL3), "sh_l3")]
55+
[JsonDerivedType(typeof(Field_SphericalHarmonicsL4), "sh_l4")]
5656
public partial class Member { }
5757
}

ResoniteLink/Models/Messages/DataModel/Methods/Data_SphericalHarmonics.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
namespace ResoniteLink
77
{
8-
public class Data_SH_L1 : DataValue
8+
public class Data_SphericalHarmonicsL1 : DataValue
99
{
1010
[JsonPropertyName("value")]
1111
public SphericalHarmonicsL1 Value { get; set; }
@@ -16,7 +16,7 @@ public class Data_SH_L1 : DataValue
1616
public override Type ValueType => typeof(SphericalHarmonicsL1);
1717
}
1818

19-
public class Data_SH_L2 : DataValue
19+
public class Data_SphericalHarmonicsL2 : DataValue
2020
{
2121
[JsonPropertyName("value")]
2222
public SphericalHarmonicsL2 Value { get; set; }
@@ -27,7 +27,7 @@ public class Data_SH_L2 : DataValue
2727
public override Type ValueType => typeof(SphericalHarmonicsL2);
2828
}
2929

30-
public class Data_SH_L3 : DataValue
30+
public class Data_SphericalHarmonicsL3 : DataValue
3131
{
3232
[JsonPropertyName("value")]
3333
public SphericalHarmonicsL3 Value { get; set; }
@@ -38,7 +38,7 @@ public class Data_SH_L3 : DataValue
3838
public override Type ValueType => typeof(SphericalHarmonicsL3);
3939
}
4040

41-
public class Data_SH_L4 : DataValue
41+
public class Data_SphericalHarmonicsL4 : DataValue
4242
{
4343
[JsonPropertyName("value")]
4444
public SphericalHarmonicsL4 Value { get; set; }
@@ -49,9 +49,9 @@ public class Data_SH_L4 : DataValue
4949
public override Type ValueType => typeof(SphericalHarmonicsL4);
5050
}
5151

52-
[JsonDerivedType(typeof(Data_SH_L1), "sh_l1")]
53-
[JsonDerivedType(typeof(Data_SH_L2), "sh_l2")]
54-
[JsonDerivedType(typeof(Data_SH_L3), "sh_l3")]
55-
[JsonDerivedType(typeof(Data_SH_L4), "sh_l4")]
52+
[JsonDerivedType(typeof(Data_SphericalHarmonicsL1), "sh_l1")]
53+
[JsonDerivedType(typeof(Data_SphericalHarmonicsL2), "sh_l2")]
54+
[JsonDerivedType(typeof(Data_SphericalHarmonicsL3), "sh_l3")]
55+
[JsonDerivedType(typeof(Data_SphericalHarmonicsL4), "sh_l4")]
5656
public partial class Data { }
5757
}

0 commit comments

Comments
 (0)