Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ListCalculateJobDetail" /> class.
 /// </summary>
 /// <param name="ListResult">If present, the end results of this job.</param>
 /// <param name="Id">The job&#39;s id (required).</param>
 /// <param name="IsComplete">Whether the job is complete or not (required).</param>
 /// <param name="QueuePosition">If present, the position that the job is in the job queue.  Jobs only start being actively processed once they reach the head of the queue.</param>
 /// <param name="Progress">If present, an estimate of how far through its processing this job is.</param>
 public ListCalculateJobDetail(ListResultDetail ListResult = default(ListResultDetail), int?Id = default(int?), bool?IsComplete = default(bool?), int?QueuePosition = default(int?), int?Progress = default(int?))
 {
     // to ensure "Id" is required (not null)
     if (Id == null)
     {
         throw new InvalidDataException("Id is a required property for ListCalculateJobDetail and cannot be null");
     }
     else
     {
         this.Id = Id;
     }
     // to ensure "IsComplete" is required (not null)
     if (IsComplete == null)
     {
         throw new InvalidDataException("IsComplete is a required property for ListCalculateJobDetail and cannot be null");
     }
     else
     {
         this.IsComplete = IsComplete;
     }
     this.ListResult    = ListResult;
     this.QueuePosition = QueuePosition;
     this.Progress      = Progress;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ListDetail" /> class.
 /// </summary>
 /// <param name="BriefText">Notes associated with the list.</param>
 /// <param name="ExcludeQuery">The query rule that defines the records to exclude from this list.</param>
 /// <param name="IncludeQuery">The query rule that defines the records to start with when defining this list.</param>
 /// <param name="BodyQuery">The query rule that defines the records that will make up this list, after starting with the records defined by the include query (if specified) and then removing the records defined by the exclude query (if specified).</param>
 /// <param name="SelectionModifiers">A definition of how to limit the number of records selected in the nett query built from the exclude, include and body queries.</param>
 /// <param name="QueriesLookup">A set of description lookups for variables used in the exclude, include and body queries.</param>
 /// <param name="LastResult">If this list has been calculated, the last calculation result.</param>
 /// <param name="Id">The list&#39;s id (required).</param>
 /// <param name="Title">The title of the list (required).</param>
 /// <param name="Description">The description of the list (required).</param>
 /// <param name="CreationDate">The date the list was created (required).</param>
 /// <param name="Owner">The details of the user that owns this list (required).</param>
 /// <param name="DeletionDate">The date the list was deleted, or null if it has not been deleted (required).</param>
 /// <param name="ResolveTableName">The FastStats table that the list is defined against (required).</param>
 /// <param name="ResolveTableNettCount">If the list has been counted, the latest overall count for the resolve table.</param>
 /// <param name="NumberOfUsersSharedWith">The number of people this list has been shared with (required).</param>
 /// <param name="ShareId">The id of the share associated with this list, or null if the  list has not yet been shared (required).</param>
 /// <param name="NumberOfHits">The number of hits associated with this list (required).</param>
 /// <param name="SystemName">The FastStats system that this list has been created against (required).</param>
 /// <param name="LastUpdatedUser">The details of the user that last updated this list (required).</param>
 /// <param name="LastUpdatedDate">The date the list was last updated (required).</param>
 /// <param name="LastUpdateId">The id of the last update for this list (required).</param>
 public ListDetail(string BriefText = default(string), Query ExcludeQuery = default(Query), Query IncludeQuery = default(Query), Query BodyQuery = default(Query), SelectionModifiers SelectionModifiers = default(SelectionModifiers), SystemLookup QueriesLookup = default(SystemLookup), ListResultDetail LastResult = default(ListResultDetail), int?Id = default(int?), string Title = default(string), string Description = default(string), DateTime?CreationDate = default(DateTime?), UserDisplayDetails Owner = default(UserDisplayDetails), DateTime?DeletionDate = default(DateTime?), string ResolveTableName = default(string), long?ResolveTableNettCount = default(long?), int?NumberOfUsersSharedWith = default(int?), int?ShareId = default(int?), int?NumberOfHits = default(int?), string SystemName = default(string), UserDisplayDetails LastUpdatedUser = default(UserDisplayDetails), DateTime?LastUpdatedDate = default(DateTime?), int?LastUpdateId = default(int?))
 {
     // to ensure "Id" is required (not null)
     if (Id == null)
     {
         throw new InvalidDataException("Id is a required property for ListDetail and cannot be null");
     }
     else
     {
         this.Id = Id;
     }
     // to ensure "Title" is required (not null)
     if (Title == null)
     {
         throw new InvalidDataException("Title is a required property for ListDetail and cannot be null");
     }
     else
     {
         this.Title = Title;
     }
     // to ensure "Description" is required (not null)
     if (Description == null)
     {
         throw new InvalidDataException("Description is a required property for ListDetail and cannot be null");
     }
     else
     {
         this.Description = Description;
     }
     // to ensure "CreationDate" is required (not null)
     if (CreationDate == null)
     {
         throw new InvalidDataException("CreationDate is a required property for ListDetail and cannot be null");
     }
     else
     {
         this.CreationDate = CreationDate;
     }
     // to ensure "Owner" is required (not null)
     if (Owner == null)
     {
         throw new InvalidDataException("Owner is a required property for ListDetail and cannot be null");
     }
     else
     {
         this.Owner = Owner;
     }
     // to ensure "DeletionDate" is required (not null)
     if (DeletionDate == null)
     {
         throw new InvalidDataException("DeletionDate is a required property for ListDetail and cannot be null");
     }
     else
     {
         this.DeletionDate = DeletionDate;
     }
     // to ensure "ResolveTableName" is required (not null)
     if (ResolveTableName == null)
     {
         throw new InvalidDataException("ResolveTableName is a required property for ListDetail and cannot be null");
     }
     else
     {
         this.ResolveTableName = ResolveTableName;
     }
     // to ensure "NumberOfUsersSharedWith" is required (not null)
     if (NumberOfUsersSharedWith == null)
     {
         throw new InvalidDataException("NumberOfUsersSharedWith is a required property for ListDetail and cannot be null");
     }
     else
     {
         this.NumberOfUsersSharedWith = NumberOfUsersSharedWith;
     }
     // to ensure "ShareId" is required (not null)
     if (ShareId == null)
     {
         throw new InvalidDataException("ShareId is a required property for ListDetail and cannot be null");
     }
     else
     {
         this.ShareId = ShareId;
     }
     // to ensure "NumberOfHits" is required (not null)
     if (NumberOfHits == null)
     {
         throw new InvalidDataException("NumberOfHits is a required property for ListDetail and cannot be null");
     }
     else
     {
         this.NumberOfHits = NumberOfHits;
     }
     // to ensure "SystemName" is required (not null)
     if (SystemName == null)
     {
         throw new InvalidDataException("SystemName is a required property for ListDetail and cannot be null");
     }
     else
     {
         this.SystemName = SystemName;
     }
     // to ensure "LastUpdatedUser" is required (not null)
     if (LastUpdatedUser == null)
     {
         throw new InvalidDataException("LastUpdatedUser is a required property for ListDetail and cannot be null");
     }
     else
     {
         this.LastUpdatedUser = LastUpdatedUser;
     }
     // to ensure "LastUpdatedDate" is required (not null)
     if (LastUpdatedDate == null)
     {
         throw new InvalidDataException("LastUpdatedDate is a required property for ListDetail and cannot be null");
     }
     else
     {
         this.LastUpdatedDate = LastUpdatedDate;
     }
     // to ensure "LastUpdateId" is required (not null)
     if (LastUpdateId == null)
     {
         throw new InvalidDataException("LastUpdateId is a required property for ListDetail and cannot be null");
     }
     else
     {
         this.LastUpdateId = LastUpdateId;
     }
     this.BriefText             = BriefText;
     this.ExcludeQuery          = ExcludeQuery;
     this.IncludeQuery          = IncludeQuery;
     this.BodyQuery             = BodyQuery;
     this.SelectionModifiers    = SelectionModifiers;
     this.QueriesLookup         = QueriesLookup;
     this.LastResult            = LastResult;
     this.ResolveTableNettCount = ResolveTableNettCount;
 }