Example #1
0
 /// <summary>
 /// Find Matching Clock On Roster Shift
 /// </summary>
 /// <remarks>
 /// If a roster shift exists that could match for this employee to clock on at this time
 /// given kiosk settings for shift matching, returns that shift.
 /// Otherwise, the Shift result will be null.
 /// Note that if the time matches a shift exactly, the Shift result will also be null.
 /// </remarks>
 public Task <MyRosterShiftMatchingResultModel> FindMatchingClockOnRosterShiftAsync(int businessId, int employeeId, FindMatchingClockOnRosterShiftQueryModel request, CancellationToken cancellationToken = default)
 {
     return(ApiRequestAsync <MyRosterShiftMatchingResultModel>($"/business/{businessId}/rostershift/{employeeId}/matchingclockon?kioskId={request.KioskId}&dateUtc={request.DateUtc.ToString("yyyy-MM-ddTHH:mm:ss")}", Method.GET, cancellationToken));
 }
Example #2
0
 /// <summary>
 /// Find Matching Clock On Roster Shift
 /// </summary>
 /// <remarks>
 /// If a roster shift exists that could match for this employee to clock on at this time
 /// given kiosk settings for shift matching, returns that shift.
 /// Otherwise, the Shift result will be null.
 /// Note that if the time matches a shift exactly, the Shift result will also be null.
 /// </remarks>
 public MyRosterShiftMatchingResultModel FindMatchingClockOnRosterShift(int businessId, int employeeId, FindMatchingClockOnRosterShiftQueryModel request)
 {
     return(ApiRequest <MyRosterShiftMatchingResultModel>($"/business/{businessId}/rostershift/{employeeId}/matchingclockon?kioskId={request.KioskId}&dateUtc={request.DateUtc.ToString("yyyy-MM-ddTHH:mm:ss")}", Method.GET));
 }