-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from jamesmontemagno/master
Ability to set location, add reminder, and set android calendar to sync. Also fixes #10 by creating iCloud calendars instead of local calendars if iCloud is enabled.
- Loading branch information
Showing
12 changed files
with
300 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,8 @@ build/ | |
[Tt]est[Rr]esult*/ | ||
[Bb]uild[Ll]og.* | ||
|
||
*.lock.json | ||
|
||
*_i.c | ||
*_p.c | ||
*.ilk | ||
|
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
49 changes: 49 additions & 0 deletions
49
Calendars/Calendars.Plugin.Abstractions/CalendarEventReminder.cs
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,49 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Calendars.Plugin.Abstractions | ||
{ | ||
/// <summary> | ||
/// Calendar reminder that happens before the event such as an alert | ||
/// </summary> | ||
public class CalendarEventReminder | ||
{ | ||
|
||
/// <summary> | ||
/// Amount of time to set the reminder before the start of an event. | ||
/// Default is 15 minutes | ||
/// </summary> | ||
public TimeSpan TimeBefore { get; set; } = TimeSpan.FromMinutes(15); | ||
/// <summary> | ||
/// Type of reminder to display | ||
/// </summary> | ||
public CalendarReminderMethod Method { get; set; } = CalendarReminderMethod.Default; | ||
|
||
} | ||
|
||
/// <summary> | ||
/// Types of methods of the reminder | ||
/// </summary> | ||
public enum CalendarReminderMethod | ||
{ | ||
/// <summary> | ||
/// Use system default | ||
/// </summary> | ||
Default, | ||
/// <summary> | ||
/// Pop up alert | ||
/// </summary> | ||
Alert, | ||
/// <summary> | ||
/// Send an email | ||
/// </summary> | ||
Email, | ||
/// <summary> | ||
/// Send an sms | ||
/// </summary> | ||
Sms | ||
} | ||
} |
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
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
Oops, something went wrong.