Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Webhooks" /> class.
 /// </summary>
 /// <param name="links">links.</param>
 /// <param name="items">items.</param>
 public Webhooks(Links links = default(Links), List <Webhook> items = default(List <Webhook>))
 {
     this.Links = links;
     this.Items = items;
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UserSegment" /> class.
 /// </summary>
 /// <param name="key">Unique identifier for the user segment. (required).</param>
 /// <param name="name">Name of the user segment. (required).</param>
 /// <param name="description">Description of the user segment..</param>
 /// <param name="tags">An array of tags for this user segment..</param>
 /// <param name="creationDate">A unix epoch time in milliseconds specifying the creation time of this flag. (required).</param>
 /// <param name="included">An array of user keys that are included in this segment..</param>
 /// <param name="excluded">An array of user keys that should not be included in this segment, unless they are also listed in \&quot;included\&quot;..</param>
 /// <param name="rules">An array of rules that can cause a user to be included in this segment..</param>
 /// <param name="version">version.</param>
 /// <param name="links">links.</param>
 public UserSegment(string key = default(string), string name = default(string), string description = default(string), List <string> tags = default(List <string>), decimal?creationDate = default(decimal?), List <string> included = default(List <string>), List <string> excluded = default(List <string>), List <UserSegmentRule> rules = default(List <UserSegmentRule>), int?version = default(int?), Links links = default(Links))
 {
     // to ensure "key" is required (not null)
     if (key == null)
     {
         throw new InvalidDataException("key is a required property for UserSegment and cannot be null");
     }
     else
     {
         this.Key = key;
     }
     // to ensure "name" is required (not null)
     if (name == null)
     {
         throw new InvalidDataException("name is a required property for UserSegment and cannot be null");
     }
     else
     {
         this.Name = name;
     }
     // to ensure "creationDate" is required (not null)
     if (creationDate == null)
     {
         throw new InvalidDataException("creationDate is a required property for UserSegment and cannot be null");
     }
     else
     {
         this.CreationDate = creationDate;
     }
     this.Description = description;
     this.Tags        = tags;
     this.Included    = included;
     this.Excluded    = excluded;
     this.Rules       = rules;
     this.Version     = version;
     this.Links       = links;
 }
Beispiel #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UserFlagSettings" /> class.
 /// </summary>
 /// <param name="links">links.</param>
 /// <param name="items">items.</param>
 public UserFlagSettings(Links links = default(Links), Object items = default(Object))
 {
     this.Links = links;
     this.Items = items;
 }
Beispiel #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Projects" /> class.
 /// </summary>
 /// <param name="links">links.</param>
 /// <param name="items">items.</param>
 public Projects(Links links = default(Links), List <Project> items = default(List <Project>))
 {
     this.Links = links;
     this.Items = items;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="AuditLogEntryTarget" /> class.
 /// </summary>
 /// <param name="links">links.</param>
 /// <param name="name">name.</param>
 /// <param name="resources">resources.</param>
 public AuditLogEntryTarget(Links links = default(Links), string name = default(string), List <string> resources = default(List <string>))
 {
     this.Links     = links;
     this.Name      = name;
     this.Resources = resources;
 }