From fcb76025ad2b8fd8a6b898dda6f47b89ca9d30e8 Mon Sep 17 00:00:00 2001 From: La Programmatrice Verde Date: Wed, 7 May 2025 09:12:57 +0200 Subject: [PATCH] Aggiunta classe prenotazione --- Prenotazione.cs | 71 ++++++++++++++++++ ...CoreApp,Version=v9.0.AssemblyAttributes.cs | 4 + .../net9.0/agenzia_viaggi.AssemblyInfo.cs | 22 ++++++ .../agenzia_viaggi.AssemblyInfoInputs.cache | 1 + ....GeneratedMSBuildEditorConfig.editorconfig | 15 ++++ .../net9.0/agenzia_viaggi.GlobalUsings.g.cs | 8 ++ obj/Debug/net9.0/agenzia_viaggi.assets.cache | Bin 0 -> 149 bytes 7 files changed, 121 insertions(+) create mode 100644 obj/Debug/net9.0/.NETCoreApp,Version=v9.0.AssemblyAttributes.cs create mode 100644 obj/Debug/net9.0/agenzia_viaggi.AssemblyInfo.cs create mode 100644 obj/Debug/net9.0/agenzia_viaggi.AssemblyInfoInputs.cache create mode 100644 obj/Debug/net9.0/agenzia_viaggi.GeneratedMSBuildEditorConfig.editorconfig create mode 100644 obj/Debug/net9.0/agenzia_viaggi.GlobalUsings.g.cs create mode 100644 obj/Debug/net9.0/agenzia_viaggi.assets.cache diff --git a/Prenotazione.cs b/Prenotazione.cs index 7727949..ccf1202 100644 --- a/Prenotazione.cs +++ b/Prenotazione.cs @@ -1,5 +1,76 @@ namespace agenzia_viaggi; 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()}"); + } } \ No newline at end of file diff --git a/obj/Debug/net9.0/.NETCoreApp,Version=v9.0.AssemblyAttributes.cs b/obj/Debug/net9.0/.NETCoreApp,Version=v9.0.AssemblyAttributes.cs new file mode 100644 index 0000000..9e76325 --- /dev/null +++ b/obj/Debug/net9.0/.NETCoreApp,Version=v9.0.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v9.0", FrameworkDisplayName = ".NET 9.0")] diff --git a/obj/Debug/net9.0/agenzia_viaggi.AssemblyInfo.cs b/obj/Debug/net9.0/agenzia_viaggi.AssemblyInfo.cs new file mode 100644 index 0000000..20b538b --- /dev/null +++ b/obj/Debug/net9.0/agenzia_viaggi.AssemblyInfo.cs @@ -0,0 +1,22 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +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. + diff --git a/obj/Debug/net9.0/agenzia_viaggi.AssemblyInfoInputs.cache b/obj/Debug/net9.0/agenzia_viaggi.AssemblyInfoInputs.cache new file mode 100644 index 0000000..ce6632f --- /dev/null +++ b/obj/Debug/net9.0/agenzia_viaggi.AssemblyInfoInputs.cache @@ -0,0 +1 @@ +990d92297fa546ed4818085ae57abd019d21acfaccc0fa93ed345e73090af2db diff --git a/obj/Debug/net9.0/agenzia_viaggi.GeneratedMSBuildEditorConfig.editorconfig b/obj/Debug/net9.0/agenzia_viaggi.GeneratedMSBuildEditorConfig.editorconfig new file mode 100644 index 0000000..34f9d07 --- /dev/null +++ b/obj/Debug/net9.0/agenzia_viaggi.GeneratedMSBuildEditorConfig.editorconfig @@ -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 = diff --git a/obj/Debug/net9.0/agenzia_viaggi.GlobalUsings.g.cs b/obj/Debug/net9.0/agenzia_viaggi.GlobalUsings.g.cs new file mode 100644 index 0000000..8578f3d --- /dev/null +++ b/obj/Debug/net9.0/agenzia_viaggi.GlobalUsings.g.cs @@ -0,0 +1,8 @@ +// +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; diff --git a/obj/Debug/net9.0/agenzia_viaggi.assets.cache b/obj/Debug/net9.0/agenzia_viaggi.assets.cache new file mode 100644 index 0000000000000000000000000000000000000000..0f82d392362fea704bcb477a8aa7d1c89374866d GIT binary patch literal 149 zcmWIWc6a1qU|=Zr{H=H0;(x-oZJT@e9wa!L{ZO6LpnSM=x?7-Q#-mL}6M<@o1&lz2 kGWr?$xvBbLsYNNN`g(b#>8U091&PVoiRr1u`h*Mu0LF+MEC2ui literal 0 HcmV?d00001