Beispiel #1
0
 public void UpdateFromResponse(UniteItemResponse response)
 {
     UniteServerId = response.UniteServerId;
     Value         = response.Value;
     IsActif       = response.IsActif;
     EditDate      = response.EditDate;
 }
Beispiel #2
0
 public UniteItem(UniteItemResponse 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;
     UniteServerId = response.UniteServerId;
     Value         = response.Value;
     IsActif       = response.IsActif;
     EditDate      = response.EditDate;
 }