Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace Ubar4.Modelo
- {
- public class Viaje
- {
- //atributos de la clase
- private int idViaje;
- private double origenLat;
- private double origenLon;
- private double destinoLat;
- private double destinoLon;
- private string fecha;//fecha del viaje
- private string tiempo;//hora inicial
- private double distancia;
- private string tiempoEstimado;
- private string horaLlegada;
- private double costo;
- private string direccion;
- private int idUser;
- //método constructor
- public Viaje()
- {
- this.idViaje = 0;
- this.origenLat = 0;
- this.origenLat= 0;
- this.destinoLat = 0;
- this.destinoLon= 0;
- this.fecha = "";
- this.tiempo = "";
- this.distancia = 0;
- this.tiempoEstimado = "";
- this.horaLlegada = "";
- this.costo = 0;
- this.direccion = "";
- this.idUser = 0;
- }
- //métodos de acceso (getters y setters)
- public int IdViaje { get => idViaje; set => idViaje = value; }
- public double OrigenLat { get => origenLat; set => origenLat = value; }
- public double OrigenLon { get => origenLon; set => origenLon = value; }
- public double DestinoLat { get => destinoLat; set => destinoLat = value; }
- public double DestinoLon { get => destinoLon; set => destinoLon = value; }
- public string Fecha { get => fecha; set => fecha = value; }
- public string Tiempo { get => tiempo; set => tiempo = value; }
- public double Distancia { get => distancia; set => distancia = value; }
- public string TiempoEstimado { get => tiempoEstimado; set => tiempoEstimado = value; }
- public string HoraLlegada { get => horaLlegada; set => horaLlegada = value; }
- public double Costo { get => costo; set => costo = value; }
- public string Direccion { get => direccion; set => direccion = value; }
- public int IdUser { get => idUser; set => idUser = value; }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment