Exemplo n.º 1
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }
            RecipeEN t = obj as RecipeEN;

            if (t == null)
            {
                return(false);
            }
            if (Id.Equals(t.Id))
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Exemplo n.º 2
0
 public RecipeEN(RecipeEN recipe)
 {
     this.init(Id, recipe.Name, recipe.IsEnabled, recipe.Triggers, recipe.RecipeAction, recipe.IoTScenario, recipe.IntervalTime, recipe.Description);
 }