Esempio n. 1
0
 public Filiale(FilialeResponse 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;
     Adresse             = response.Adresse;
     CodePostal          = response.CodePostal;
     Ville               = response.Ville;
     Phone               = response.Phone;
     Fax                 = response.Fax;
     Nom                 = response.Nom;
     Longitude           = response.Longitude;
     Latitude            = response.Latitude;
     Comment             = response.Comment;
     IsFavorite          = response.IsFavorite;
     IsActif             = response.IsActif;
     SynchronizationDate = response.SynchronizationDate ?? DateTime.Now;
 }
Esempio n. 2
0
 public void UpdateFromResponse(FilialeResponse response)
 {
     Code                = response.Code;
     Adresse             = response.Adresse;
     CodePostal          = response.CodePostal;
     Ville               = response.Ville;
     Phone               = response.Phone;
     Fax                 = response.Fax;
     Nom                 = response.Nom;
     Longitude           = response.Longitude;
     Latitude            = response.Latitude;
     Comment             = response.Comment;
     IsFavorite          = response.IsFavorite;
     IsActif             = response.IsActif;
     SynchronizationDate = response.SynchronizationDate ?? DateTime.Now;
 }