public override bool Equals(object obj) { if (this == obj) { return(true); } if (obj == null) { return(false); } if (this.GetType() != obj.GetType()) { return(false); } JsonSerializable other = (JsonSerializable)obj; if (dateProperty == null) { if (other.dateProperty != null) { return(false); } } else if (!dateProperty.Equals(other.dateProperty)) { return(false); } return(true); }
public static void addADay(JsonSerializable jsonSerializable) { DateTime newDate = new DateTime(jsonSerializable.DateProperty.Ticks + ONE_DAY_IN_MILLIS); jsonSerializable.DateProperty = newDate; }
public virtual void notify(DelegateTask delegateTask) { JsonSerializable variable = (JsonSerializable)delegateTask.getVariable(VARIABLE_NAME); addADay(variable); // implicit update, i.e. no setVariable call }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET: //ORIGINAL LINE: public void execute(org.camunda.bpm.engine.delegate.DelegateExecution execution) throws Exception public virtual void execute(DelegateExecution execution) { JsonSerializable variable = (JsonSerializable)execution.getVariable(VARIABLE_NAME); addADay(variable); // implicit update, i.e. no setVariable call }