/// <summary> /// Initializes a new instance of the <see cref="SnippetComment" /> class. /// </summary> /// <param name="Type">Type (required).</param> /// <param name="Links">Links.</param> /// <param name="Snippet">Snippet.</param> public SnippetComment(string Type = default(string), GroupLinks Links = default(GroupLinks), Snippet Snippet = default(Snippet)) { // to ensure "Type" is required (not null) if (Type == null) { throw new InvalidDataException("Type is a required property for SnippetComment and cannot be null"); } else { this.Type = Type; } this.Links = Links; this.Snippet = Snippet; }
/// <summary> /// Initializes a new instance of the <see cref="Group" /> class. /// </summary> /// <param name="Type">Type (required).</param> /// <param name="Links">Links.</param> /// <param name="Owner">Owner.</param> /// <param name="Name">Name.</param> /// <param name="Slug">The \"sluggified\" version of the group's name. This contains only ASCII characters and can therefore be slightly different than the name.</param> /// <param name="FullSlug">The concatenation of the owner's username and the group's slug, separated with a colon (e.g. `acme:developers`) .</param> /// <param name="Members">The number of members in this group.</param> public Group(string Type = default(string), GroupLinks Links = default(GroupLinks), Account Owner = default(Account), string Name = default(string), string Slug = default(string), string FullSlug = default(string), int?Members = default(int?)) { // to ensure "Type" is required (not null) if (Type == null) { throw new InvalidDataException("Type is a required property for Group and cannot be null"); } else { this.Type = Type; } this.Links = Links; this.Owner = Owner; this.Name = Name; this.Slug = Slug; this.FullSlug = FullSlug; this.Members = Members; }