Show / Hide Table of Contents

Class WeekSchedule

Inheritance
object
WeekSchedule
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: SuperOffice.CRM.Ticket
Assembly: SoDataBase.dll
Syntax
public class WeekSchedule

Constructors

WeekSchedule(TicketPriorityRecordData)

Constructor with optional currentDate resolver parameter

Declaration
public WeekSchedule(TicketPriorityRecordData ticketPriorityRecordData)
Parameters
Type Name Description
TicketPriorityRecordData ticketPriorityRecordData

Ticket priority data

Methods

AddTimeSpan(DateTime, TimeSpan)

Add timespan to given datetime based on weekly schedule

Declaration
public DateTime AddTimeSpan(DateTime from, TimeSpan timespan)
Parameters
Type Name Description
DateTime from

DateTime to add timestamp to

TimeSpan timespan

Timespan to add

Returns
Type Description
DateTime

Calculated DateTime with added timespan

GetDifference(DateTime, DateTime)

Get difference in seconds between two dates based on priority schedule

Declaration
public double GetDifference(DateTime from, DateTime to)
Parameters
Type Name Description
DateTime from

From date

DateTime to

To date

Returns
Type Description
double

Difference in seconds

Extension Methods

EnumUtil.MapEnums<From, To>(From)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top