Files
lserp_cs_6.0/插件库/Lskj.Push/Push/Notification/WinphoneNotification.cs
T
cyf ab56a9bcf7 基线 SVN r240
SVN-Revision: r240
2025-02-06 06:46:06 +00:00

71 lines
1.8 KiB
C#

using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Lskj.Push.Push.Notification
{
public class WinphoneNotification : PlatformNotification
{
[JsonProperty]
private String title;
[JsonProperty(PropertyName = "_open_page")]
public String openPage;
public WinphoneNotification():base()
{
this.title = null;
this.openPage = null;
}
public WinphoneNotification setAlert(String alert)
{
this.alert = alert;
return this;
}
public WinphoneNotification setOpenPage(String openPage)
{
this.openPage = openPage;
return this;
}
public WinphoneNotification setTitle(String title)
{
this.title = title;
return this;
}
public WinphoneNotification AddExtra(string key, string value)
{
if (extras == null)
{
extras = new Dictionary<string, object>();
}
if (value!=null)
{
extras.Add(key, value);
}
return this;
}
public WinphoneNotification AddExtra(string key, int value)
{
if (extras == null)
{
extras = new Dictionary<string, object>();
}
extras.Add(key, value);
return this;
}
public WinphoneNotification AddExtra(string key, bool value)
{
if (extras == null)
{
extras = new Dictionary<string, object>();
}
extras.Add(key, value);
return this;
}
}
}