Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ContrattoInfo" /> class.
 /// </summary>
 /// <param name="identificativo">identificativo (required).</param>
 /// <param name="tipo">tipo (required).</param>
 /// <param name="descrizione">descrizione (required).</param>
 /// <param name="externalId">externalId.</param>
 /// <param name="dataCreazione">dataCreazione (required).</param>
 /// <param name="dataUltimaModifica">dataUltimaModifica (required).</param>
 /// <param name="stato">stato (required).</param>
 /// <param name="rivenditore">rivenditore (required).</param>
 /// <param name="distributore">distributore (required).</param>
 public ContrattoInfo(string identificativo = default(string), string tipo = default(string), string descrizione = default(string), string externalId = default(string), DateTime?dataCreazione = default(DateTime?), DateTime?dataUltimaModifica = default(DateTime?), StatoEnum stato = default(StatoEnum), RivenditoreResponse rivenditore = default(RivenditoreResponse), DistributoreResponse distributore = default(DistributoreResponse))
 {
     // to ensure "identificativo" is required (not null)
     if (identificativo == null)
     {
         throw new InvalidDataException("identificativo is a required property for ContrattoInfo and cannot be null");
     }
     else
     {
         this.Identificativo = identificativo;
     }
     // to ensure "tipo" is required (not null)
     if (tipo == null)
     {
         throw new InvalidDataException("tipo is a required property for ContrattoInfo and cannot be null");
     }
     else
     {
         this.Tipo = tipo;
     }
     // to ensure "descrizione" is required (not null)
     if (descrizione == null)
     {
         throw new InvalidDataException("descrizione is a required property for ContrattoInfo and cannot be null");
     }
     else
     {
         this.Descrizione = descrizione;
     }
     // to ensure "dataCreazione" is required (not null)
     if (dataCreazione == null)
     {
         throw new InvalidDataException("dataCreazione is a required property for ContrattoInfo and cannot be null");
     }
     else
     {
         this.DataCreazione = dataCreazione;
     }
     // to ensure "dataUltimaModifica" is required (not null)
     if (dataUltimaModifica == null)
     {
         throw new InvalidDataException("dataUltimaModifica is a required property for ContrattoInfo and cannot be null");
     }
     else
     {
         this.DataUltimaModifica = dataUltimaModifica;
     }
     // to ensure "stato" is required (not null)
     if (stato == null)
     {
         throw new InvalidDataException("stato is a required property for ContrattoInfo and cannot be null");
     }
     else
     {
         this.Stato = stato;
     }
     // to ensure "rivenditore" is required (not null)
     if (rivenditore == null)
     {
         throw new InvalidDataException("rivenditore is a required property for ContrattoInfo and cannot be null");
     }
     else
     {
         this.Rivenditore = rivenditore;
     }
     // to ensure "distributore" is required (not null)
     if (distributore == null)
     {
         throw new InvalidDataException("distributore is a required property for ContrattoInfo and cannot be null");
     }
     else
     {
         this.Distributore = distributore;
     }
     this.ExternalId = externalId;
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ContrattoResponse" /> class.
 /// </summary>
 /// <param name="identificativo">identificativo (required).</param>
 /// <param name="tipo">tipo (required).</param>
 /// <param name="moduli">moduli.</param>
 /// <param name="fasciaIx">fasciaIx.</param>
 /// <param name="fasciaIxCe">fasciaIxCe.</param>
 /// <param name="fasciaIxPec">fasciaIxPec.</param>
 /// <param name="responsabileConservazione">responsabileConservazione.</param>
 /// <param name="descrizione">descrizione (required).</param>
 /// <param name="externalId">externalId.</param>
 /// <param name="rivenditore">rivenditore (required).</param>
 /// <param name="distributore">distributore (required).</param>
 /// <param name="passo">passo.</param>
 public ContrattoResponse(string identificativo = default(string), string tipo = default(string), List <ContrattoModulo> moduli = default(List <ContrattoModulo>), FasciaIxResponse fasciaIx = default(FasciaIxResponse), FasciaIxCeInfo fasciaIxCe = default(FasciaIxCeInfo), FasciaIxPecInfo fasciaIxPec = default(FasciaIxPecInfo), ResponsabileConservazioneInfo responsabileConservazione = default(ResponsabileConservazioneInfo), string descrizione = default(string), string externalId = default(string), RivenditoreResponse rivenditore = default(RivenditoreResponse), DistributoreResponse distributore = default(DistributoreResponse), string passo = default(string))
 {
     // to ensure "identificativo" is required (not null)
     if (identificativo == null)
     {
         throw new InvalidDataException("identificativo is a required property for ContrattoResponse and cannot be null");
     }
     else
     {
         this.Identificativo = identificativo;
     }
     // to ensure "tipo" is required (not null)
     if (tipo == null)
     {
         throw new InvalidDataException("tipo is a required property for ContrattoResponse and cannot be null");
     }
     else
     {
         this.Tipo = tipo;
     }
     // to ensure "descrizione" is required (not null)
     if (descrizione == null)
     {
         throw new InvalidDataException("descrizione is a required property for ContrattoResponse and cannot be null");
     }
     else
     {
         this.Descrizione = descrizione;
     }
     // to ensure "rivenditore" is required (not null)
     if (rivenditore == null)
     {
         throw new InvalidDataException("rivenditore is a required property for ContrattoResponse and cannot be null");
     }
     else
     {
         this.Rivenditore = rivenditore;
     }
     // to ensure "distributore" is required (not null)
     if (distributore == null)
     {
         throw new InvalidDataException("distributore is a required property for ContrattoResponse and cannot be null");
     }
     else
     {
         this.Distributore = distributore;
     }
     this.Moduli      = moduli;
     this.FasciaIx    = fasciaIx;
     this.FasciaIxCe  = fasciaIxCe;
     this.FasciaIxPec = fasciaIxPec;
     this.ResponsabileConservazione = responsabileConservazione;
     this.ExternalId = externalId;
     this.Passo      = passo;
 }