Class NextAvailableTimeHelper
NextAvailableTimeHelper for identifying non-conflicting times for all associates in an appointment
Inherited Members
Namespace: SuperOffice.CRM.Data.Util
Assembly: SoDataBase.BusinessLogic.dll
Syntax
public class NextAvailableTimeHelper
Constructors
NextAvailableTimeHelper(int[], DateTime, DateTime, int, bool)
NextAvailableTimeHelper for identifying non-conflicting times for all associates in an appointment
Declaration
public NextAvailableTimeHelper(int[] associates, DateTime startTime, DateTime endTime, int count, bool isAllDayEvent)
Parameters
| Type | Name | Description |
|---|---|---|
| int[] | associates | |
| DateTime | startTime | |
| DateTime | endTime | |
| int | count | |
| bool | isAllDayEvent |
Methods
GetAppointmentTimeTypeAsync(CancellationToken)
Obtain type (i.e. NextAvailableTimeHelper.AppointmentTimeType) of appointment.
Declaration
public Task<NextAvailableTimeHelper.AppointmentTimeType> GetAppointmentTimeTypeAsync(CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<NextAvailableTimeHelper.AppointmentTimeType> | Type of appointment. |
GetItemsAsync(CancellationToken)
NextAvailableTimeHelper for identifying non-conflicting times for all associates in an appointment
Declaration
public Task<NextAvailableTimeInfo[]> GetItemsAsync(CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<NextAvailableTimeInfo[]> |