//construct public PushPayload() { platform = null; audience = null; notification = null; message = null; options = new Options(); jSetting = new JsonSerializerSettings(); jSetting.NullValueHandling = NullValueHandling.Ignore; jSetting.DefaultValueHandling = DefaultValueHandling.Ignore; }
public PushPayload(Platform platform, Audience audience, Notification notification, Message message = null, Options options = null) { Debug.Assert(platform != null); Debug.Assert(audience != null); Debug.Assert(notification != null || message != null); this.platform = platform; this.audience = audience; this.notification = notification; this.message = message; this.options = options; jSetting = new JsonSerializerSettings(); jSetting.NullValueHandling = NullValueHandling.Ignore; jSetting.DefaultValueHandling = DefaultValueHandling.Ignore; }