Nullverweise warnings bereinigt

This commit is contained in:
2023-08-08 11:58:09 +02:00
parent 4af2bae8cd
commit ee6eb210b7
22 changed files with 125 additions and 102 deletions

View File

@@ -19,7 +19,7 @@ namespace ConsoleApp3.DataContracts
/// <value>the contact address</value>
[DataMember(Name = "address", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "address")]
public ModelContactAddress Address { get; set; }
public ModelContactAddress? Address { get; set; }
/// <summary>
/// the creation date of the contact
@@ -43,7 +43,7 @@ namespace ConsoleApp3.DataContracts
/// <value>name of the contact</value>
[DataMember(Name = "name", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "name")]
public string Name { get; set; }
public string Name { get; set; } = "";
/// <summary>
/// status of the contact
@@ -67,7 +67,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value>
[DataMember(Name = "parent", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "parent")]
public ModelContact Parent { get; set; }
public ModelContact? Parent { get; set; }
/// <summary>
/// surname of the contact
@@ -75,7 +75,7 @@ namespace ConsoleApp3.DataContracts
/// <value>surname of the contact</value>
[DataMember(Name = "surename", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "surename")]
public string Surename { get; set; }
public string Surename { get; set; } = "";
/// <summary>
/// family name of the contact
@@ -83,7 +83,7 @@ namespace ConsoleApp3.DataContracts
/// <value>family name of the contact</value>
[DataMember(Name = "familyname", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "familyname")]
public string Familyname { get; set; }
public string Familyname { get; set; } = "";
/// <summary>
/// title of the contact
@@ -91,7 +91,7 @@ namespace ConsoleApp3.DataContracts
/// <value>title of the contact</value>
[DataMember(Name = "titel", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "titel")]
public string Titel { get; set; }
public string Titel { get; set; } = "";
/// <summary>
/// category of the contact
@@ -99,7 +99,7 @@ namespace ConsoleApp3.DataContracts
/// <value>category of the contact</value>
[DataMember(Name = "category", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "category")]
public ModelCategory Category { get; set; }
public ModelCategory? Category { get; set; }
/// <summary>
/// description of the contact
@@ -107,7 +107,7 @@ namespace ConsoleApp3.DataContracts
/// <value>description of the contact</value>
[DataMember(Name = "description", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "description")]
public string Description { get; set; }
public string Description { get; set; } = "";
/// <summary>
/// any academic title of the contact
@@ -115,7 +115,7 @@ namespace ConsoleApp3.DataContracts
/// <value>any academic title of the contact</value>
[DataMember(Name = "academicTitle", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "academicTitle")]
public string AcademicTitle { get; set; }
public string AcademicTitle { get; set; } = "";
/// <summary>
/// gender of the contact
@@ -123,7 +123,7 @@ namespace ConsoleApp3.DataContracts
/// <value>gender of the contact</value>
[DataMember(Name = "gender", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "gender")]
public string Gender { get; set; }
public string Gender { get; set; } = "";
/// <summary>
/// sevClient is the unique id every customer has and is used in nearly all operations
@@ -131,7 +131,7 @@ namespace ConsoleApp3.DataContracts
/// <value>sevClient is the unique id every customer has and is used in nearly all operations</value>
[DataMember(Name = "sevClient", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "sevClient")]
public Object SevClient { get; set; }
public Object? SevClient { get; set; }
/// <summary>
/// second name of the contact
@@ -139,7 +139,7 @@ namespace ConsoleApp3.DataContracts
/// <value>second name of the contact</value>
[DataMember(Name = "name2", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "name2")]
public string Name2 { get; set; }
public string Name2 { get; set; } = "";
/// <summary>
/// birthday of the contact
@@ -155,7 +155,7 @@ namespace ConsoleApp3.DataContracts
/// <value>vat number of the contact</value>
[DataMember(Name = "vatNumber", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "vatNumber")]
public string VatNumber { get; set; }
public string VatNumber { get; set; } = "";
/// <summary>
/// bank account of the contact
@@ -163,7 +163,7 @@ namespace ConsoleApp3.DataContracts
/// <value>bank account of the contact</value>
[DataMember(Name = "bankAccount", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "bankAccount")]
public string BankAccount { get; set; }
public string BankAccount { get; set; } = "";
/// <summary>
/// bank number of the contact
@@ -171,7 +171,7 @@ namespace ConsoleApp3.DataContracts
/// <value>bank number of the contact</value>
[DataMember(Name = "bankNumber", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "bankNumber")]
public string BankNumber { get; set; }
public string BankNumber { get; set; } = "";
/// <summary>
/// desired payment method of the customer
@@ -179,7 +179,7 @@ namespace ConsoleApp3.DataContracts
/// <value>desired payment method of the customer</value>
[DataMember(Name = "paymentMethod", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "paymentMethod")]
public ModelPaymentMethod PaymentMethod { get; set; }
public ModelPaymentMethod? PaymentMethod { get; set; }
/// <summary>
///
@@ -187,7 +187,7 @@ namespace ConsoleApp3.DataContracts
/// <value></value>
[DataMember(Name = "entryType", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "entryType")]
public ModelEntryType EntryType { get; set; }
public ModelEntryType? EntryType { get; set; }
/// <summary>
/// default cashback time of the contact
@@ -219,7 +219,7 @@ namespace ConsoleApp3.DataContracts
/// <value>tax number of the contact</value>
[DataMember(Name = "taxNumber", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "taxNumber")]
public string TaxNumber { get; set; }
public string TaxNumber { get; set; } = "";
/// <summary>
/// tax office of the contact
@@ -227,6 +227,6 @@ namespace ConsoleApp3.DataContracts
/// <value>tax office of the contact</value>
[DataMember(Name = "taxOffice", EmitDefaultValue = false)]
[JsonProperty(PropertyName = "taxOffice")]
public string TaxOffice { get; set; }
public string TaxOffice { get; set; } = "";
}
}