24 lines
597 B
C#
24 lines
597 B
C#
using System;
|
|
using Microsoft.AspNetCore.Authentication;
|
|
|
|
namespace _0_Framework.Domain.CustomizeCheckoutShared.ValueObjects;
|
|
|
|
public record CustomizeRotatingShift
|
|
{
|
|
public CustomizeRotatingShift(TimeOnly startTime,TimeOnly endTime)
|
|
{
|
|
StartTime = startTime;
|
|
EndTime = endTime;
|
|
}
|
|
public TimeOnly StartTime { get; set; }
|
|
public TimeOnly EndTime { get; set; }
|
|
|
|
public virtual bool Equals(CustomizeRotatingShift other)
|
|
{
|
|
if (StartTime==other.StartTime && EndTime == other.EndTime)
|
|
{
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
} |