Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class BloqueAtencion
- {
- string _hora;
- string _rut;
- public BloqueAtencion(string hora, string rut)
- {
- this._hora = hora;
- this._rut = rut;
- }
- public string Hora { get { return _hora; } }
- public string Rut { get { return _rut; } }
- }
- class HorarioAtencion
- {
- string _rut;
- string _fecha;
- List<BloqueAtencion> bloques;
- public HorarioAtencion(string rut, string fecha, BloqueAtencion bloque)
- {
- this._rut = rut;
- this._fecha = fecha;
- this.bloques = new List<BloqueAtencion>();
- this.bloques.Add(bloque);
- }
- public string Rut { get { return _rut; } }
- public string Fecha { get { return _fecha; } }
- public List<BloqueAtencion> Bloques { get { return bloques; } }
- public void AgregarBloque(BloqueAtencion bloque)
- {
- this.bloques.Add(bloque);
- }
- }
Add Comment
Please, Sign In to add comment