public void UpdateFromResponse(LinkInterventionTaskResponse response)
 {
     FkTaskServerId         = response.FkTaskServerId;
     FkInterventionServerId = response.FkInterventionServerId;
     IsPlanningToDo         = response.IsPlanningToDo;
     IsDone         = response.IsDone;
     IsActif        = response.IsActif;
     EditDate       = response.EditDate;
     PlanningMinute = response.PlanningMinute;
     DoneMinute     = response.DoneMinute;
     Nonce          = response.Nonce;
 }
 public LinkInterventionTask(LinkInterventionTaskResponse response)
 {
     if (!string.IsNullOrWhiteSpace(response.K) && Guid.TryParse(response.K, out Guid id))
     {
         Id = id;
     }
     else
     {
         Id = Guid.NewGuid();
     }
     AddDate                = response.AddDate;
     ServerId               = response.ServerId;
     FkTaskServerId         = response.FkTaskServerId;
     FkInterventionServerId = response.FkInterventionServerId;
     IsPlanningToDo         = response.IsPlanningToDo;
     IsDone         = response.IsDone;
     IsActif        = response.IsActif;
     EditDate       = response.EditDate;
     PlanningMinute = response.PlanningMinute;
     DoneMinute     = response.DoneMinute;
     Nonce          = response.Nonce;
 }