Esempio n. 1
0
 public SchedulePayload()
 {
     this.name    = null;
     this.enabled = true;
     this.trigger = new TriggerPayload();
     this.push    = new PushPayload();
     schedule_id  = null;
     jSetting     = new JsonSerializerSettings();
     jSetting.NullValueHandling    = NullValueHandling.Ignore;
     jSetting.DefaultValueHandling = DefaultValueHandling.Ignore;
 }
Esempio n. 2
0
 public SchedulePayload(Name name, Enabled enabled, TriggerPayload trigger, PushPayload push)
 {
     schedule_id = null;
     Debug.Assert(name != null);
     Debug.Assert(enabled.getEnable());
     Debug.Assert(trigger != null);
     Debug.Assert(push != null);
     this.name    = name.getName();
     this.enabled = true;
     this.trigger = trigger;
     this.push    = push;
     jSetting     = new JsonSerializerSettings();
     jSetting.NullValueHandling    = NullValueHandling.Ignore;
     jSetting.DefaultValueHandling = DefaultValueHandling.Ignore;
 }
Esempio n. 3
0
 public SchedulePayload(String name, Boolean enabled, TriggerPayload trigger, PushPayload push)
 {
     schedule_id = null;
     Debug.Assert(name != null);
     Debug.Assert(enabled);
     Debug.Assert(trigger != null);
     Debug.Assert(push != null);
     this.name    = name;
     this.enabled = enabled;
     this.trigger = trigger;
     this.push    = push;
     jSetting     = new JsonSerializerSettings();
     jSetting.NullValueHandling    = NullValueHandling.Ignore;
     jSetting.DefaultValueHandling = DefaultValueHandling.Ignore;
 }
Esempio n. 4
0
 public SchedulePayload setTrigger(TriggerPayload trigger)
 {
     this.trigger = trigger;
     return(this);
 }