基线 SVN r240

SVN-Revision: r240
This commit is contained in:
cyf
2025-02-06 06:46:06 +00:00
commit ab56a9bcf7
5317 changed files with 902274 additions and 0 deletions
@@ -0,0 +1,71 @@
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;
}
}
}