Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cordova-plugin-local-notifications
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nabil Sadki
cordova-plugin-local-notifications
Commits
cbdcee1b
Commit
cbdcee1b
authored
Sep 28, 2017
by
Sebastián Katzer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support for new trigger option in: (Windows)
parent
15d3d3e1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
3 deletions
+16
-3
Notification.cs
.../LocalNotificationProxy/LocalNotification/Notification.cs
+10
-2
Trigger.cs
...Proxy/LocalNotificationProxy/LocalNotification/Trigger.cs
+6
-1
No files found.
src/windows/LocalNotificationProxy/LocalNotificationProxy/LocalNotification/Notification.cs
View file @
cbdcee1b
...
@@ -293,9 +293,17 @@
...
@@ -293,9 +293,17 @@
get
get
{
{
var
trigger
=
this
.
Options
.
Trigger
;
var
trigger
=
this
.
Options
.
Trigger
;
var
time
=
trigger
.
At
;
var
date
=
DateTimeOffset
.
FromUnixTimeMilliseconds
(
time
*
1000
).
LocalDateTime
;
var
minDate
=
DateTime
.
Now
.
AddSeconds
(
0.1
);
var
minDate
=
DateTime
.
Now
.
AddSeconds
(
0.1
);
DateTime
date
;
if
(
trigger
.
In
!=
0
)
{
date
=
DateTime
.
Now
.
AddSeconds
(
trigger
.
In
);
}
else
{
date
=
DateTimeOffset
.
FromUnixTimeMilliseconds
(
trigger
.
At
*
1000
).
LocalDateTime
;
}
date
=
date
.
AddTicks
(
this
.
Interval
.
Ticks
*
(
trigger
.
Occurrence
-
1
));
date
=
date
.
AddTicks
(
this
.
Interval
.
Ticks
*
(
trigger
.
Occurrence
-
1
));
...
...
src/windows/LocalNotificationProxy/LocalNotificationProxy/LocalNotification/Trigger.cs
View file @
cbdcee1b
...
@@ -31,7 +31,12 @@ namespace LocalNotificationProxy.LocalNotification
...
@@ -31,7 +31,12 @@ namespace LocalNotificationProxy.LocalNotification
/// <summary>
/// <summary>
/// Gets or sets trigger date.
/// Gets or sets trigger date.
/// </summary>
/// </summary>
public
long
At
{
get
;
set
;
}
public
long
At
{
get
;
set
;
}
=
0
;
/// <summary>
/// Gets or sets relative trigger date in seconds from now.
/// </summary>
public
long
In
{
get
;
set
;
}
=
0
;
/// <summary>
/// <summary>
/// Gets or sets trigger count.
/// Gets or sets trigger count.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment