-
Notifications
You must be signed in to change notification settings - Fork 232
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Correct handling of iCalendar PERIOD
PeriodKind - Add new enum Period: - Add internal `property string TzId` - Add internal method `PeriodKind GetPeriodKind()` - Ensure timeone consistence for setters of StartTime / EndTime PeriodList: - Add internal `property string TzId` - Add internal property ``PeriodKind PeriodListKind`m - Ensure added `Period`s have the same `TzId`and `PeriodKind` as the first one added PeriodListSerialilzer - Serializes TZID - Serializes value type PERIOD
- Loading branch information
Showing
5 changed files
with
211 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// Copyright ical.net project maintainers and contributors. | ||
// Licensed under the MIT license. | ||
|
||
#nullable enable | ||
namespace Ical.Net.DataTypes; | ||
|
||
/// <summary> | ||
/// The kind of <see cref="DataTypes.Period"/>s that can be added to a <see cref="PeriodList"/>. | ||
/// </summary> | ||
internal enum PeriodKind | ||
{ | ||
/// <summary> | ||
/// The period kind is undefined. | ||
/// </summary> | ||
Undefined, | ||
/// <summary> | ||
/// A date-time kind. | ||
/// </summary> | ||
DateTime, | ||
/// <summary> | ||
/// A date-only kind. | ||
/// </summary> | ||
DateOnly, | ||
/// <summary> | ||
/// A period that has a <see cref="Duration"/>. | ||
/// </summary> | ||
Period | ||
} |
Oops, something went wrong.