8 #include <system/date_time.h>
9 #include <system/array.h>
12 #include "aspose.tasks.cpp/aspose_tasks_api_defs.h"
24 class HtmlCalendarTableReader;
28 class XerCalendarReader;
31 class WeekDayCollection;
33 class WorkingTimeCollection;
42 template <
typename>
class IEnumerable;
61 class ASPOSE_TASKS_SHARED_CLASS
WeekDay :
public System::Object
64 typedef System::Object BaseType;
66 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
67 ASPOSE_TASKS_SHARED_RTTI_INFO_DECL();
70 friend class Aspose::Tasks::IO::Xer::XerCalendarReader;
72 friend class Aspose::Tasks::IO::Html::HtmlCalendarTableReader;
79 ASPOSE_TASKS_SHARED_API Aspose::Tasks::DayType get_DayType()
const;
83 ASPOSE_TASKS_SHARED_API
bool get_DayWorking()
const;
87 ASPOSE_TASKS_SHARED_API
void set_DayWorking(
bool value);
91 ASPOSE_TASKS_SHARED_API System::DateTime get_FromDate()
const;
95 ASPOSE_TASKS_SHARED_API
void set_FromDate(System::DateTime value);
99 ASPOSE_TASKS_SHARED_API System::DateTime get_ToDate()
const;
103 ASPOSE_TASKS_SHARED_API
void set_ToDate(System::DateTime value);
108 ASPOSE_TASKS_SHARED_API System::SharedPtr<WorkingTimeCollection> get_WorkingTimes()
const;
114 ASPOSE_TASKS_SHARED_API
WeekDay(Aspose::Tasks::DayType dayType);
120 ASPOSE_TASKS_SHARED_API WeekDay(Aspose::Tasks::DayType dayType,
const System::SharedPtr<System::Collections::Generic::IEnumerable<System::SharedPtr<WorkingTime>>>& workingTimes);
126 ASPOSE_TASKS_SHARED_API WeekDay(Aspose::Tasks::DayType dayType,
const System::ArrayPtr<System::SharedPtr<WorkingTime>>& workingTimes);
130 ASPOSE_TASKS_SHARED_API WeekDay();
137 static ASPOSE_TASKS_SHARED_API System::SharedPtr<WeekDay> CreateDefaultWorkingDay(Aspose::Tasks::DayType dayType);
143 static ASPOSE_TASKS_SHARED_API Aspose::Tasks::DayType CastToDayType(System::DayOfWeek dw);
148 static ASPOSE_TASKS_SHARED_API
void SetDefaultWorkingTime(
const System::SharedPtr<WeekDay>& day);
153 ASPOSE_TASKS_SHARED_API System::TimeSpan GetWorkingTime();
158 ASPOSE_TASKS_SHARED_API System::SharedPtr<WeekDay> Clone();
164 ASPOSE_TASKS_SHARED_API
bool Equals(System::SharedPtr<System::Object> obj)
override;
169 ASPOSE_TASKS_SHARED_API int32_t GetHashCode()
const override;
173 ASPOSE_TASKS_SHARED_API
double get_WorkingMinsCount();
175 ASPOSE_TASKS_SHARED_API WeekDay(int32_t dayType);
177 ASPOSE_TASKS_SHARED_API MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(WeekDay, CODEPORTING_ARGS(int32_t dayType));
178 ASPOSE_TASKS_SHARED_API System::SharedPtr<System::Text::StringBuilder> Dump(
const System::SharedPtr<System::Text::StringBuilder>& sb);
179 #ifdef ASPOSE_GET_SHARED_MEMBERS
180 ASPOSE_TASKS_SHARED_API
void GetSharedMembers(System::Object::shared_members_type& result)
const override;
186 System::SharedPtr<WorkingTimeCollection> workingTimes;
188 Aspose::Tasks::DayType pr_DayType;
193 ASPOSE_TASKS_SHARED_API
void set_DayType(Aspose::Tasks::DayType value);
195 System::DateTime pr_FromDate;
196 System::DateTime pr_ToDate;
198 System::String get_DebuggerDisplay();
200 void WorkingTimesOnCollectionChanged(
const System::SharedPtr<System::Object>& sender,
const System::SharedPtr<System::EventArgs>& e);
Represents a collection of WeekDay objects.
Definition: WeekDayCollection.h:75
Represents a weekday which either defines regular days of a week or exception days in a calendar...
Definition: WeekDay.h:61
Represents a calendar used in a project.
Definition: Calendar.h:297