Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TargetsrecentsaddData" /> class.
 /// </summary>
 /// <param name="Target">Target (required).</param>
 /// <param name="RecentInformation">RecentInformation (required).</param>
 public TargetsrecentsaddData(TargetInformation Target = default(TargetInformation), RecentData RecentInformation = default(RecentData))
 {
     // to ensure "Target" is required (not null)
     if (Target == null)
     {
         throw new InvalidDataException("Target is a required property for TargetsrecentsaddData and cannot be null");
     }
     else
     {
         this.Target = Target;
     }
     // to ensure "RecentInformation" is required (not null)
     if (RecentInformation == null)
     {
         throw new InvalidDataException("RecentInformation is a required property for TargetsrecentsaddData and cannot be null");
     }
     else
     {
         this.RecentInformation = RecentInformation;
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TargetspersonalfavoritessaveData" /> class.
 /// </summary>
 /// <param name="Target">Target (required).</param>
 /// <param name="Category">The personal favorites category where the target is saved. (required).</param>
 /// <param name="IgnoreDuplication">Whether a favorite will be save ignoring duplication of phone/emails..</param>
 public TargetspersonalfavoritessaveData(TargetInformation Target = default(TargetInformation), string Category = default(string), bool?IgnoreDuplication = default(bool?))
 {
     // to ensure "Target" is required (not null)
     if (Target == null)
     {
         throw new InvalidDataException("Target is a required property for TargetspersonalfavoritessaveData and cannot be null");
     }
     else
     {
         this.Target = Target;
     }
     // to ensure "Category" is required (not null)
     if (Category == null)
     {
         throw new InvalidDataException("Category is a required property for TargetspersonalfavoritessaveData and cannot be null");
     }
     else
     {
         this.Category = Category;
     }
     this.IgnoreDuplication = IgnoreDuplication;
 }