cloudscribe.Core.Models.UserLocation.FromIUserLocation C# (CSharp) Méthode

FromIUserLocation() public static méthode

public static FromIUserLocation ( IUserLocation i ) : UserLocation
i IUserLocation
Résultat UserLocation
        public static UserLocation FromIUserLocation(IUserLocation i)
        {
            UserLocation l = new UserLocation();

            l.CaptureCount = i.CaptureCount;
            l.City = i.City;
            l.Continent = i.Continent;
            l.Country = i.Country;
            l.FirstCaptureUtc = i.FirstCaptureUtc;
            l.HostName = i.HostName;
            l.IpAddress = i.IpAddress;
            l.IpAddressLong = i.IpAddressLong;
            l.LastCaptureUtc = i.LastCaptureUtc;
            l.Latitude = i.Latitude;
            l.Longitude = i.Longitude;
            l.Region = i.Region;
            l.Id = i.Id;
            l.SiteId = i.SiteId;
            l.TimeZone = i.TimeZone;
            l.UserId = i.UserId;

            return l;
        }