Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UpdatePostInput" /> class.
 /// </summary>
 /// <param name="Post">Post (required).</param>
 public UpdatePostInput(PostV2Record Post = null)
 {
     // to ensure "Post" is required (not null)
     if (Post == null)
     {
         throw new InvalidDataException("Post is a required property for UpdatePostInput and cannot be null");
     }
     else
     {
         this.Post = Post;
     }
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CreatePostInput" /> class.
 /// </summary>
 /// <param name="Post">Post (required).</param>
 /// <param name="Destinations">.</param>
 public CreatePostInput(PostV2Record Post = null, List <string> Destinations = null)
 {
     // to ensure "Post" is required (not null)
     if (Post == null)
     {
         throw new InvalidDataException("Post is a required property for CreatePostInput and cannot be null");
     }
     else
     {
         this.Post = Post;
     }
     this.Destinations = Destinations;
 }
Пример #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UpdatePostResult" /> class.
 /// </summary>
 /// <param name="Post">Post (required).</param>
 /// <param name="Hdr">Hdr (required).</param>
 public UpdatePostResult(PostV2Record Post = null, ResponseHeaderRecord Hdr = null)
 {
     // to ensure "Post" is required (not null)
     if (Post == null)
     {
         throw new InvalidDataException("Post is a required property for UpdatePostResult and cannot be null");
     }
     else
     {
         this.Post = Post;
     }
     // to ensure "Hdr" is required (not null)
     if (Hdr == null)
     {
         throw new InvalidDataException("Hdr is a required property for UpdatePostResult and cannot be null");
     }
     else
     {
         this.Hdr = Hdr;
     }
 }