Skip to content

Commit fa3403b

Browse files
Updated entities based on latest GraphQL schema (2024-02-03)
1 parent 4e5d524 commit fa3403b

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Scr/Sdk4me.GraphQL/Entities/CalendarHour.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public class CalendarHour : Node
1414
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
1515
internal override string? DebuggerValue
1616
{
17-
get => ToString();
17+
get => (Weekday is not null && TimeFrom is not null && TimeUntil is not null) ? $"{Weekday?.ToString()}, {Math.Floor(TimeFrom?.TotalHours ?? 0):00}:{TimeFrom?.Minutes:00} - {Math.Floor(TimeUntil?.TotalHours ?? 0):00}:{TimeUntil?.Minutes:00}" : ToString();
1818
}
1919

2020
/// <summary>

Scr/Sdk4me.GraphQL/Entities/Period.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public class Period : Node
1414
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
1515
internal override string? DebuggerValue
1616
{
17-
get => ToString();
17+
get => (From is not null && To is not null) ? $"{From:yyyy=MM-dd HH:mm:ss} - {To:yyyy=MM-dd HH:mm:ss}" : ToString();
1818
}
1919

2020
/// <summary>

Scr/Sdk4me.GraphQL/Entities/RateLimit.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public class RateLimit : Node
1414
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
1515
internal override string? DebuggerValue
1616
{
17-
get => ToString();
17+
get => (Remaining is not null && Limit is not null) ? $"{Remaining}/{Limit}" : ToString();
1818
}
1919

2020
/// <summary>

Scr/Sdk4me.GraphQL/Entities/Snapshot.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public class Snapshot : Node
1414
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
1515
internal override string? DebuggerValue
1616
{
17-
get => ToString();
17+
get => DownloadUrl ?? ToString();
1818
}
1919

2020
/// <summary>

0 commit comments

Comments
 (0)