Skip to content

Commit 529e8fa

Browse files
authored
Update API based on review feedback (Azure#47435)
1 parent 5b27811 commit 529e8fa

File tree

5 files changed

+9
-16
lines changed

5 files changed

+9
-16
lines changed

sdk/maps/Azure.Maps.TimeZones/api/Azure.Maps.TimeZones.net8.0.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,6 @@ public enum ServiceVersion
7777
V1_0 = 1,
7878
}
7979
}
80-
public static partial class MapsTimeZoneModelFactory
81-
{
82-
}
8380
public static partial class MapsTimeZonesModelFactory
8481
{
8582
public static Azure.Maps.TimeZones.CountryRecord CountryRecord(string name = null, string code = null) { throw null; }
@@ -91,7 +88,7 @@ public static partial class MapsTimeZonesModelFactory
9188
public partial class ReferenceTime
9289
{
9390
internal ReferenceTime() { }
94-
public System.TimeSpan DaylightSavingsTimeSpan { get { throw null; } }
91+
public System.TimeSpan DaylightSavingsOffset { get { throw null; } }
9592
public string PosixTimeZone { get { throw null; } }
9693
public int? PosixTimeZoneValidYear { get { throw null; } }
9794
public System.TimeSpan StandardOffsetTimeSpan { get { throw null; } }
@@ -103,7 +100,7 @@ internal ReferenceTime() { }
103100
public partial class TimeTransition
104101
{
105102
internal TimeTransition() { }
106-
public System.TimeSpan DaylightSavingsTimeSpan { get { throw null; } }
103+
public System.TimeSpan DaylightSavingsOffset { get { throw null; } }
107104
public System.TimeSpan StandardOffsetTimeSpan { get { throw null; } }
108105
public string Tag { get { throw null; } }
109106
public System.DateTimeOffset? UtcEnd { get { throw null; } }

sdk/maps/Azure.Maps.TimeZones/api/Azure.Maps.TimeZones.netstandard2.0.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,6 @@ public enum ServiceVersion
7777
V1_0 = 1,
7878
}
7979
}
80-
public static partial class MapsTimeZoneModelFactory
81-
{
82-
}
8380
public static partial class MapsTimeZonesModelFactory
8481
{
8582
public static Azure.Maps.TimeZones.CountryRecord CountryRecord(string name = null, string code = null) { throw null; }
@@ -91,7 +88,7 @@ public static partial class MapsTimeZonesModelFactory
9188
public partial class ReferenceTime
9289
{
9390
internal ReferenceTime() { }
94-
public System.TimeSpan DaylightSavingsTimeSpan { get { throw null; } }
91+
public System.TimeSpan DaylightSavingsOffset { get { throw null; } }
9592
public string PosixTimeZone { get { throw null; } }
9693
public int? PosixTimeZoneValidYear { get { throw null; } }
9794
public System.TimeSpan StandardOffsetTimeSpan { get { throw null; } }
@@ -103,7 +100,7 @@ internal ReferenceTime() { }
103100
public partial class TimeTransition
104101
{
105102
internal TimeTransition() { }
106-
public System.TimeSpan DaylightSavingsTimeSpan { get { throw null; } }
103+
public System.TimeSpan DaylightSavingsOffset { get { throw null; } }
107104
public System.TimeSpan StandardOffsetTimeSpan { get { throw null; } }
108105
public string Tag { get { throw null; } }
109106
public System.DateTimeOffset? UtcEnd { get { throw null; } }

sdk/maps/Azure.Maps.TimeZones/src/MapsTimeZoneModelFactory.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
namespace Azure.Maps.TimeZones
77
{
88
/// <summary> Model factory for models. </summary>
9-
[CodeGenModel("MapsTimeZoneModelFactory")]
10-
public static partial class MapsTimeZoneModelFactory
9+
internal static partial class MapsTimeZoneModelFactory
1110
{
1211
}
1312
}

sdk/maps/Azure.Maps.TimeZones/src/Models/ReferenceTime.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ internal ReferenceTime(string tag, string standardOffset, string daylightSavings
3232
_daylightSavings = daylightSavings;
3333
if (TimeSpan.TryParse(daylightSavings, out TimeSpan DaylightSavingsValue))
3434
{
35-
DaylightSavingsTimeSpan = DaylightSavingsValue;
35+
DaylightSavingsOffset = DaylightSavingsValue;
3636
}
3737

3838
_wallTime = wallTime;
@@ -55,7 +55,7 @@ internal ReferenceTime(string tag, string standardOffset, string daylightSavings
5555
[CodeGenMember("DaylightSavings")]
5656
internal string _daylightSavings { get; }
5757
/// <summary> Time saving in <see cref="TimeSpan"/> format in effect at the <c>ReferenceUTCTimestamp</c>. </summary>
58-
public TimeSpan DaylightSavingsTimeSpan { get; }
58+
public TimeSpan DaylightSavingsOffset { get; }
5959

6060
/// <summary> Current wall time at the given time zone as shown in the <c>Tag</c> property. </summary>
6161
[CodeGenMember("WallTime")]

sdk/maps/Azure.Maps.TimeZones/src/Models/TimeTransition.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ internal TimeTransition(string tag, string standardOffset, string daylightSaving
3030
_daylightSavings = daylightSavings;
3131
if (TimeSpan.TryParse(daylightSavings, out TimeSpan DaylightSavingsValue))
3232
{
33-
DaylightSavingsTimeSpan = DaylightSavingsValue;
33+
DaylightSavingsOffset = DaylightSavingsValue;
3434
}
3535

3636
UtcStart = utcStart;
@@ -45,6 +45,6 @@ internal TimeTransition(string tag, string standardOffset, string daylightSaving
4545
[CodeGenMember("DaylightSavings")]
4646
internal string _daylightSavings { get; }
4747
/// <summary> Time saving in <see cref="TimeSpan"/> format in effect at the <c>ReferenceUTCTimestamp</c>. </summary>
48-
public TimeSpan DaylightSavingsTimeSpan { get; }
48+
public TimeSpan DaylightSavingsOffset { get; }
4949
}
5050
}

0 commit comments

Comments
 (0)