cn.jpush.api/push/mode/Notification.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using cn.jpush.api.push.notification;
using cn.jpush.api.util;
using Newtonsoft.Json;
// ------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
// Mono Runtime Version: 4.0.30319.1
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerated>
// ------------------------------------------------------------------------------
using System;
namespace cn.jpush.api.push.mode
{
public class Notification
{
public String alert{get;set;}
[JsonProperty(PropertyName = "ios")]
public IosNotification IosNotification { get; set; }
[JsonProperty(PropertyName = "android")]
public AndroidNotification AndroidNotification { get; set; }
[JsonProperty(PropertyName = "winphone")]
public WinphoneNotification WinphoneNotification { get; set; }
public Notification()
{
this.alert = null;
this.IosNotification = null;
this.AndroidNotification = null;
this.WinphoneNotification = null;
}
public Notification setAlert(string alert)
{
this.alert = alert;
return this;
}
public Notification setAndroid(AndroidNotification android)
{
this.AndroidNotification = android;
return this;
}
public Notification setIos(IosNotification ios)
{
this.IosNotification = ios;
return this;
}
public Notification setWinphone(WinphoneNotification winphone)
{
this.WinphoneNotification = winphone;
return this;
}
public static Notification android(String alert, String title)
{
var platformNotification = new AndroidNotification().setAlert(alert).setTitle(title);
var notificaiton = new Notification().setAlert(alert);
notificaiton.AndroidNotification = platformNotification;
后面还有 69 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
