DocSpace-client/web/ASC.Web.Core/Calendars/IEvent.cs

71 lines
1.7 KiB
C#
Raw Normal View History

2019-06-07 08:59:07 +00:00
namespace ASC.Web.Core.Calendars
{
[System.AttributeUsage(System.AttributeTargets.Class,
AllowMultiple = false,
Inherited = true)]
public class AllDayLongUTCAttribute : Attribute
{ }
public enum EventRepeatType
{
Never = 0,
EveryDay = 3,
EveryWeek = 4,
EveryMonth = 5,
EveryYear = 6
}
public enum EventAlertType
{
Default = -1,
Never = 0,
FiveMinutes = 1,
FifteenMinutes = 2,
HalfHour = 3,
Hour = 4,
TwoHours = 5,
Day = 6
}
public enum EventStatus
{
Tentative = 0,
Confirmed = 1,
Cancelled = 2
}
public class EventContext : ICloneable
{
//public EventRepeatType RepeatType { get; set; }
#region ICloneable Members
public object Clone()
{
return this.MemberwiseClone();
}
#endregion
}
2020-09-29 12:27:28 +00:00
public interface IEvent : IICalFormatView
2019-06-07 08:59:07 +00:00
{
string Id { get; }
string Uid { get; }
string CalendarId { get; }
string Name { get; }
string Description { get; }
Guid OwnerId { get; }
DateTime UtcStartDate { get; }
DateTime UtcEndDate { get; }
DateTime UtcUpdateDate { get; }
EventAlertType AlertType { get; }
bool AllDayLong { get; }
RecurrenceRule RecurrenceRule { get; }
EventContext Context { get; }
2019-08-15 12:04:42 +00:00
SharingOptions SharingOptions { get; }
2019-06-07 08:59:07 +00:00
EventStatus Status { get; }
TimeZoneInfo TimeZone { get; }
2019-06-07 08:59:07 +00:00
}
}