Aggiunta classe prenotazione
This commit is contained in:
parent
ea93404bdc
commit
fcb76025ad
@ -1,5 +1,76 @@
|
|||||||
namespace agenzia_viaggi;
|
namespace agenzia_viaggi;
|
||||||
|
|
||||||
class Prenotazione {
|
class Prenotazione {
|
||||||
|
string UUID; //codice univoco prenotazione
|
||||||
|
string periodo;
|
||||||
|
string giorniPrenotati;
|
||||||
|
string costo;
|
||||||
|
string numeroPersone;
|
||||||
|
string codiceFiscalePrenotante;
|
||||||
|
|
||||||
|
public Prenotazione(string p_UUID, string p_periodo, string p_giorniPrenotati, string p_costo, string p_numeroPersone, string p_codiceFiscalePrenotante) {
|
||||||
|
this.UUID = p_UUID;
|
||||||
|
this.periodo = p_periodo;
|
||||||
|
this.giorniPrenotati = p_giorniPrenotati;
|
||||||
|
this.costo = p_costo;
|
||||||
|
this.numeroPersone = p_numeroPersone;
|
||||||
|
this.codiceFiscalePrenotante = p_codiceFiscalePrenotante;
|
||||||
|
}
|
||||||
|
|
||||||
|
public string GetUUID() {
|
||||||
|
return this.UUID;
|
||||||
|
}
|
||||||
|
|
||||||
|
public string GetPeriodo() {
|
||||||
|
return this.periodo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public string GetGiorniPrenotati() {
|
||||||
|
return this.giorniPrenotati;
|
||||||
|
}
|
||||||
|
|
||||||
|
public string GetCosto() {
|
||||||
|
return this.costo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public string GetNumeroPersone() {
|
||||||
|
return this.numeroPersone;
|
||||||
|
}
|
||||||
|
|
||||||
|
public string GetCodiceFiscalePrenotante() {
|
||||||
|
return this.codiceFiscalePrenotante;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void SetUUID(string p_UUID) {
|
||||||
|
this.UUID = p_UUID;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void SetPeriodo(string p_periodo) {
|
||||||
|
this.periodo = p_periodo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void SetGiorniPrenotati(string p_giorniPrenotati) {
|
||||||
|
this.giorniPrenotati = p_giorniPrenotati;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void SetCosto(string p_costo) {
|
||||||
|
this.costo = p_costo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void SetNumeroPersone(string p_numeroPersone) {
|
||||||
|
this.numeroPersone = p_numeroPersone;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void SetCodiceFiscalePrenotante(string p_codiceFiscalePrenotante) {
|
||||||
|
this.codiceFiscalePrenotante = p_codiceFiscalePrenotante;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void StampaDatiPrenotazione() {
|
||||||
|
Console.WriteLine($"Codice univoco: {this.GetUUID()}");
|
||||||
|
Console.WriteLine($"Periodo dell'anno: {this.GetPeriodo()}");
|
||||||
|
Console.WriteLine($"Giorni prenotati: {this.GetGiorniPrenotati()}");
|
||||||
|
Console.WriteLine($"Costo: {this.GetCosto()}");
|
||||||
|
Console.WriteLine($"Numero persone: {this.GetNumeroPersone()}");
|
||||||
|
Console.WriteLine($"COdice fiscale a cui è intestata la prenotazione: {this.GetCodiceFiscalePrenotante()}");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@ -0,0 +1,4 @@
|
|||||||
|
// <autogenerated />
|
||||||
|
using System;
|
||||||
|
using System.Reflection;
|
||||||
|
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v9.0", FrameworkDisplayName = ".NET 9.0")]
|
||||||
22
obj/Debug/net9.0/agenzia_viaggi.AssemblyInfo.cs
Normal file
22
obj/Debug/net9.0/agenzia_viaggi.AssemblyInfo.cs
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// This code was generated by a tool.
|
||||||
|
//
|
||||||
|
// Changes to this file may cause incorrect behavior and will be lost if
|
||||||
|
// the code is regenerated.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Reflection;
|
||||||
|
|
||||||
|
[assembly: System.Reflection.AssemblyCompanyAttribute("agenzia_viaggi")]
|
||||||
|
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||||
|
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||||
|
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+ea93404bdc7d270cc0a9459ea771a863f6ab1930")]
|
||||||
|
[assembly: System.Reflection.AssemblyProductAttribute("agenzia_viaggi")]
|
||||||
|
[assembly: System.Reflection.AssemblyTitleAttribute("agenzia_viaggi")]
|
||||||
|
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||||
|
|
||||||
|
// Generated by the MSBuild WriteCodeFragment class.
|
||||||
|
|
||||||
1
obj/Debug/net9.0/agenzia_viaggi.AssemblyInfoInputs.cache
Normal file
1
obj/Debug/net9.0/agenzia_viaggi.AssemblyInfoInputs.cache
Normal file
@ -0,0 +1 @@
|
|||||||
|
990d92297fa546ed4818085ae57abd019d21acfaccc0fa93ed345e73090af2db
|
||||||
@ -0,0 +1,15 @@
|
|||||||
|
is_global = true
|
||||||
|
build_property.TargetFramework = net9.0
|
||||||
|
build_property.TargetPlatformMinVersion =
|
||||||
|
build_property.UsingMicrosoftNETSdkWeb =
|
||||||
|
build_property.ProjectTypeGuids =
|
||||||
|
build_property.InvariantGlobalization =
|
||||||
|
build_property.PlatformNeutralAssembly =
|
||||||
|
build_property.EnforceExtendedAnalyzerRules =
|
||||||
|
build_property._SupportedPlatformList = Linux,macOS,Windows
|
||||||
|
build_property.RootNamespace = agenzia_viaggi
|
||||||
|
build_property.ProjectDir = /home/Verde/git/agenzia_viaggi/
|
||||||
|
build_property.EnableComHosting =
|
||||||
|
build_property.EnableGeneratedComInterfaceComImportInterop =
|
||||||
|
build_property.EffectiveAnalysisLevelStyle = 9.0
|
||||||
|
build_property.EnableCodeStyleSeverity =
|
||||||
8
obj/Debug/net9.0/agenzia_viaggi.GlobalUsings.g.cs
Normal file
8
obj/Debug/net9.0/agenzia_viaggi.GlobalUsings.g.cs
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
// <auto-generated/>
|
||||||
|
global using global::System;
|
||||||
|
global using global::System.Collections.Generic;
|
||||||
|
global using global::System.IO;
|
||||||
|
global using global::System.Linq;
|
||||||
|
global using global::System.Net.Http;
|
||||||
|
global using global::System.Threading;
|
||||||
|
global using global::System.Threading.Tasks;
|
||||||
BIN
obj/Debug/net9.0/agenzia_viaggi.assets.cache
Normal file
BIN
obj/Debug/net9.0/agenzia_viaggi.assets.cache
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user