| 1 | using System; |
| 2 | using System.Collections.Generic; |
| 3 | using System.Linq; |
| 4 | using System.Text; |
| 5 | using System.Threading.Tasks; |
| 6 | |
| 7 | namespace Core.Models.WebPage |
| 8 | { |
| 9 | public class NotifyWeb |
| 10 | { |
| 11 | public string Url { get; set; } |
| 12 | public string Title { get; set; } |
| 13 | public string Icon { get; set; } |
| 14 | public int ActiveTime { get; set; } |
| 15 | public int Duration { get; set; } |
| 16 | public DateTime ActiveDateTime |
| 17 | { |
| 18 | get |
| 19 | { |
| 20 | DateTime dateTime = new DateTime(1970, 1, 1, 0, 0, 0, 0, DateTimeKind.Utc); |
| 21 | return dateTime.AddSeconds(ActiveTime).ToLocalTime(); |
| 22 | } |
| 23 | } |
| 24 | } |
| 25 | } |