Пример #1
0
 public PredictionResult(string id, string sessionId, PredictionSources source, LocationTypes type)
 {
     Id        = id;
     SessionId = sessionId;
     Source    = source;
     Type      = type;
 }
Пример #2
0
 public Prediction(string id, string countryCode, PredictionSources source, LocationTypes type, string value)
 {
     Id          = id;
     CountryCode = countryCode;
     Source      = source;
     Type        = type;
     Value       = value;
 }
Пример #3
0
 public Location(GeoPoint coordinates, string country, int distance, string locality, string name, PredictionSources source, LocationTypes type)
 {
     Coordinates = new Point(coordinates.Longitude, coordinates.Latitude);
     Country     = country;
     Distance    = distance;
     Locality    = locality;
     Name        = name;
     Source      = source;
     Type        = type;
 }
Пример #4
0
 public Location(Location location, int distance, PredictionSources predictionSources)
 {
     Id          = location.Id;
     Coordinates = location.Coordinates;
     Country     = location.Country;
     Locality    = location.Locality;
     Name        = location.Name;
     Type        = location.Type;
     Suppliers   = location.Suppliers;
     Distance    = distance;
     Source      = predictionSources;
 }
Пример #5
0
 public Location(string name, string locality, string country, GeoPoint coordinates, int distance, PredictionSources source, LocationTypes type,
                 List <Suppliers> suppliers)
 {
     Name        = name;
     Locality    = locality;
     Country     = country;
     Coordinates = coordinates;
     Distance    = distance;
     Source      = source;
     Type        = type;
     Suppliers   = suppliers ?? new List <Suppliers>();
 }