Skip to content

Commit c5e214e

Browse files
goran-wPsypher9
authored andcommitted
Fix JSON-serialization failure, correct naming of Automatic Lock
* Added missing underscore in enum value Older_Than, which failed in serialization of JSON string "OLDER_THAN". * Corrected the naming of the associated enum-type and its containing Dto-class, from AutomaticClock to AutomaticLock (it's a lock, not a clock).
1 parent 7e90a9b commit c5e214e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Clockify.Net/Models/Workspaces/AutomaticClockDto.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@
22

33
namespace Clockify.Net.Models.Workspaces
44
{
5-
public class AutomaticClockDto
5+
public class AutomaticLockDto
66
{
77
public Week? ChangeDay { get; set; }
88
public int? DayOfMonth { get; set; }
99
public Week? FirstDay { get; set; }
1010
public OlderThanPeriod? OlderThanPeriod { get; set; }
1111
public int? OlderThanValue { get; set; }
12-
public AutomaticClockType Type { get; set; }
12+
public AutomaticLockType Type { get; set; }
1313
}
1414

15-
public enum AutomaticClockType
15+
public enum AutomaticLockType
1616
{
1717
Weekly,
1818
Monthly,
19-
OlderThan
19+
Older_Than
2020
}
2121

2222
public enum OlderThanPeriod

Clockify.Net/Models/Workspaces/WorkspaceSettingsDto.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ namespace Clockify.Net.Models.Workspaces
55
public class WorkspaceSettingsDto
66
{
77
public List<AdminOnlyPages>? AdminOnlyPages { get; set; }
8-
public AutomaticClockDto? AutomaticLock { get; set; }
8+
public AutomaticLockDto? AutomaticLock { get; set; }
99
public bool? CanSeeTimeSheet { get; set; }
1010
public bool? DefaultBillableProjects { get; set; }
1111
public bool? ForceDescription { get; set; }

0 commit comments

Comments
 (0)