-
Notifications
You must be signed in to change notification settings - Fork 248
Add abstraction layer to create EXDATE and RDATE properties
#684
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
753e478
Fix `Period` and `PeriodList` to work with `EXDATE` and `RDATE`
axunonb 0d68f17
Add unit tests to `RecurrenceWithRDateTests`
axunonb 49798e4
Insert values about failure to Exception.Messages
axunonb fe2f2a8
Correct handling of iCalendar PERIOD
axunonb eaea8d5
Add abstraction layer to create EXDATE and RDATE
axunonb 6c1edad
`Period` StartTime, EndTime and Duration properties are immutable
axunonb 2d85dab
Remove source and test files related to RDATE/EXDATEcollections
axunonb 3800f1c
Add wrapper classes for `ExceptionDates` and `RecurrenceDates`
axunonb 3817d85
Migrate usage of `IList<PeriodList>` to `ExceptionDates` and `Recurre…
axunonb f2e9c19
Add `PeriodListWrapperBase.GetAllPeriodsByKind`
axunonb dc4f248
Replace method `PeriodList.GetGroupedPeriods`
axunonb bdd7f33
Add EXDATE and RDATE unit tests mentioned in issues
axunonb 0e78037
Updates after revview 2025-01-16
axunonb File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
commit fe2f2a8894ab61a35e528f64c06ac6ba5b413152
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'd have seen a NPE if start was null, at least if end was not nulll.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed