Beispiel #1
0
 public void UpdateFromResponse(CheminResponse response)
 {
     Code                = response.Code;
     Nom                 = response.Nom;
     Comment             = response.Comment;
     IsActif             = response.IsActif;
     SynchronizationDate = response.SynchronizationDate ?? DateTime.Now;
 }
Beispiel #2
0
 public Chemin(CheminResponse 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;
     Code                = response.Code;
     Nom                 = response.Nom;
     Comment             = response.Comment;
     IsActif             = response.IsActif;
     SynchronizationDate = response.SynchronizationDate ?? DateTime.Now;
 }