public void ReadBeaconBase(BeaconBase beacon) { if (beacon.BeaconId > -1) { BeaconId = beacon.BeaconId; } if (beacon.PortalId > -1) { PortalId = beacon.PortalId; } if (!String.IsNullOrEmpty(beacon.Code)) { Code = beacon.Code; } if (!String.IsNullOrEmpty(beacon.Name)) { Name = beacon.Name; } if (!String.IsNullOrEmpty(beacon.Description)) { Description = beacon.Description; } if (!String.IsNullOrEmpty(beacon.Coords)) { Coords = beacon.Coords; } Latitude = beacon.Latitude; Longitude = beacon.Longitude; if (beacon.Altitude > -1) { Altitude = beacon.Altitude; } if (beacon.Region > -1) { Region = beacon.Region; } if (beacon.Points > -1) { Points = beacon.Points; } }
public BeaconBase GetBeaconBase() { BeaconBase res = new BeaconBase(); res.BeaconId = BeaconId; res.PortalId = PortalId; res.Code = Code; res.Name = Name; res.Description = Description; res.Coords = Coords; res.Latitude = Latitude; res.Longitude = Longitude; res.Altitude = Altitude; res.Region = Region; res.Points = Points; res.CreatedByUserID = CreatedByUserID; res.CreatedOnDate = CreatedOnDate; res.LastModifiedByUserID = LastModifiedByUserID; res.LastModifiedOnDate = LastModifiedOnDate; return res; }
public BeaconBase GetBeaconBase() { BeaconBase res = new BeaconBase(); res.BeaconId = BeaconId; res.PortalId = PortalId; res.Code = Code; res.Name = Name; res.Description = Description; res.Coords = Coords; res.Latitude = Latitude; res.Longitude = Longitude; res.Altitude = Altitude; res.Region = Region; res.Points = Points; res.CreatedByUserID = CreatedByUserID; res.CreatedOnDate = CreatedOnDate; res.LastModifiedByUserID = LastModifiedByUserID; res.LastModifiedOnDate = LastModifiedOnDate; return(res); }