Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SessionAndUserDetails" /> class.
 /// </summary>
 /// <param name="User">Details of the user associated with the session (required).</param>
 /// <param name="SessionId">The id for this session (required).</param>
 public SessionAndUserDetails(UserDisplayDetails User = default(UserDisplayDetails), string SessionId = default(string))
 {
     // to ensure "User" is required (not null)
     if (User == null)
     {
         throw new InvalidDataException("User is a required property for SessionAndUserDetails and cannot be null");
     }
     else
     {
         this.User = User;
     }
     // to ensure "SessionId" is required (not null)
     if (SessionId == null)
     {
         throw new InvalidDataException("SessionId is a required property for SessionAndUserDetails and cannot be null");
     }
     else
     {
         this.SessionId = SessionId;
     }
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SessionDetails" /> class.
 /// </summary>
 /// <param name="AccessToken">The access token that needs to be included when making requests that require authentication (required).</param>
 /// <param name="User">Details of the user associated with this current session (required).</param>
 /// <param name="SessionId">The id for this current session (required).</param>
 /// <param name="Licence">Licence details for the user associated with this current session (required).</param>
 public SessionDetails(string AccessToken = default(string), UserDisplayDetails User = default(UserDisplayDetails), string SessionId = default(string), Licence Licence = default(Licence))
 {
     // to ensure "AccessToken" is required (not null)
     if (AccessToken == null)
     {
         throw new InvalidDataException("AccessToken is a required property for SessionDetails and cannot be null");
     }
     else
     {
         this.AccessToken = AccessToken;
     }
     // to ensure "User" is required (not null)
     if (User == null)
     {
         throw new InvalidDataException("User is a required property for SessionDetails and cannot be null");
     }
     else
     {
         this.User = User;
     }
     // to ensure "SessionId" is required (not null)
     if (SessionId == null)
     {
         throw new InvalidDataException("SessionId is a required property for SessionDetails and cannot be null");
     }
     else
     {
         this.SessionId = SessionId;
     }
     // to ensure "Licence" is required (not null)
     if (Licence == null)
     {
         throw new InvalidDataException("Licence is a required property for SessionDetails and cannot be null");
     }
     else
     {
         this.Licence = Licence;
     }
 }
Example #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ListResultSummary" /> class.
 /// </summary>
 /// <param name="Id">The id for this result (required).</param>
 /// <param name="ListUpdateId">The id of the update (list version) that this result was calculated with (required).</param>
 /// <param name="Timestamp">The date and time that this result was calculated (required).</param>
 /// <param name="FastStatsBuildDate">The date and time that the FastStats system used to calculate this result was built (required).</param>
 /// <param name="User">The user that triggered the calculation of this result (required).</param>
 /// <param name="NettCounts">The set of overall counts for this result (required).</param>
 /// <param name="UrnFilePath">If a URN file was generated as part of this result then this will be its path within the FastStats system (required).</param>
 public ListResultSummary(int?Id = default(int?), int?ListUpdateId = default(int?), DateTime?Timestamp = default(DateTime?), DateTime?FastStatsBuildDate = default(DateTime?), UserDisplayDetails User = default(UserDisplayDetails), List <Count> NettCounts = default(List <Count>), string UrnFilePath = default(string))
 {
     // to ensure "Id" is required (not null)
     if (Id == null)
     {
         throw new InvalidDataException("Id is a required property for ListResultSummary and cannot be null");
     }
     else
     {
         this.Id = Id;
     }
     // to ensure "ListUpdateId" is required (not null)
     if (ListUpdateId == null)
     {
         throw new InvalidDataException("ListUpdateId is a required property for ListResultSummary and cannot be null");
     }
     else
     {
         this.ListUpdateId = ListUpdateId;
     }
     // to ensure "Timestamp" is required (not null)
     if (Timestamp == null)
     {
         throw new InvalidDataException("Timestamp is a required property for ListResultSummary and cannot be null");
     }
     else
     {
         this.Timestamp = Timestamp;
     }
     // to ensure "FastStatsBuildDate" is required (not null)
     if (FastStatsBuildDate == null)
     {
         throw new InvalidDataException("FastStatsBuildDate is a required property for ListResultSummary and cannot be null");
     }
     else
     {
         this.FastStatsBuildDate = FastStatsBuildDate;
     }
     // to ensure "User" is required (not null)
     if (User == null)
     {
         throw new InvalidDataException("User is a required property for ListResultSummary and cannot be null");
     }
     else
     {
         this.User = User;
     }
     // to ensure "NettCounts" is required (not null)
     if (NettCounts == null)
     {
         throw new InvalidDataException("NettCounts is a required property for ListResultSummary and cannot be null");
     }
     else
     {
         this.NettCounts = NettCounts;
     }
     // to ensure "UrnFilePath" is required (not null)
     if (UrnFilePath == null)
     {
         throw new InvalidDataException("UrnFilePath is a required property for ListResultSummary and cannot be null");
     }
     else
     {
         this.UrnFilePath = UrnFilePath;
     }
 }
Example #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CollectionHitDetail" /> class.
 /// </summary>
 /// <param name="UserAgentDetails">Details of the client application that made the view.</param>
 /// <param name="Id">The id of the hit itself (required).</param>
 /// <param name="CollectionId">The id of the collection viewed (required).</param>
 /// <param name="Timestamp">The timestamp of when the hit was recorded (required).</param>
 /// <param name="User">Details of the user that viewed the collection (required).</param>
 public CollectionHitDetail(string UserAgentDetails = default(string), int?Id = default(int?), int?CollectionId = default(int?), DateTime?Timestamp = default(DateTime?), UserDisplayDetails User = default(UserDisplayDetails))
 {
     // to ensure "Id" is required (not null)
     if (Id == null)
     {
         throw new InvalidDataException("Id is a required property for CollectionHitDetail and cannot be null");
     }
     else
     {
         this.Id = Id;
     }
     // to ensure "CollectionId" is required (not null)
     if (CollectionId == null)
     {
         throw new InvalidDataException("CollectionId is a required property for CollectionHitDetail and cannot be null");
     }
     else
     {
         this.CollectionId = CollectionId;
     }
     // to ensure "Timestamp" is required (not null)
     if (Timestamp == null)
     {
         throw new InvalidDataException("Timestamp is a required property for CollectionHitDetail and cannot be null");
     }
     else
     {
         this.Timestamp = Timestamp;
     }
     // to ensure "User" is required (not null)
     if (User == null)
     {
         throw new InvalidDataException("User is a required property for CollectionHitDetail and cannot be null");
     }
     else
     {
         this.User = User;
     }
     this.UserAgentDetails = UserAgentDetails;
 }
Example #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ListUpdateSummary" /> class.
 /// </summary>
 /// <param name="Id">The list update&#39;s id (required).</param>
 /// <param name="Timestamp">The timestamp of when the update happened (required).</param>
 /// <param name="User">The user that created this update (required).</param>
 /// <param name="Title">The title of the list at the time of this update (required).</param>
 /// <param name="Description">The description of the list at the time of this update (required).</param>
 /// <param name="Owner">The details of the user that owns this list at the time of this update (required).</param>
 /// <param name="IsDeleted">Whether this update set the list to be deleted or not (required).</param>
 /// <param name="ResolveTableName">The FastStats table that the list is defined against at the time of this update (required).</param>
 public ListUpdateSummary(int?Id = default(int?), DateTime?Timestamp = default(DateTime?), UserDisplayDetails User = default(UserDisplayDetails), string Title = default(string), string Description = default(string), UserDisplayDetails Owner = default(UserDisplayDetails), bool?IsDeleted = default(bool?), string ResolveTableName = default(string))
 {
     // to ensure "Id" is required (not null)
     if (Id == null)
     {
         throw new InvalidDataException("Id is a required property for ListUpdateSummary and cannot be null");
     }
     else
     {
         this.Id = Id;
     }
     // to ensure "Timestamp" is required (not null)
     if (Timestamp == null)
     {
         throw new InvalidDataException("Timestamp is a required property for ListUpdateSummary and cannot be null");
     }
     else
     {
         this.Timestamp = Timestamp;
     }
     // to ensure "User" is required (not null)
     if (User == null)
     {
         throw new InvalidDataException("User is a required property for ListUpdateSummary and cannot be null");
     }
     else
     {
         this.User = User;
     }
     // to ensure "Title" is required (not null)
     if (Title == null)
     {
         throw new InvalidDataException("Title is a required property for ListUpdateSummary 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 ListUpdateSummary and cannot be null");
     }
     else
     {
         this.Description = Description;
     }
     // to ensure "Owner" is required (not null)
     if (Owner == null)
     {
         throw new InvalidDataException("Owner is a required property for ListUpdateSummary and cannot be null");
     }
     else
     {
         this.Owner = Owner;
     }
     // to ensure "IsDeleted" is required (not null)
     if (IsDeleted == null)
     {
         throw new InvalidDataException("IsDeleted is a required property for ListUpdateSummary and cannot be null");
     }
     else
     {
         this.IsDeleted = IsDeleted;
     }
     // to ensure "ResolveTableName" is required (not null)
     if (ResolveTableName == null)
     {
         throw new InvalidDataException("ResolveTableName is a required property for ListUpdateSummary and cannot be null");
     }
     else
     {
         this.ResolveTableName = ResolveTableName;
     }
 }
Example #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CollectionDetail" /> class.
 /// </summary>
 /// <param name="Id">The collection&#39;s id (required).</param>
 /// <param name="Owner">The details of the user that created this collection (required).</param>
 /// <param name="NumberOfParts">The number of parts within this collection.</param>
 /// <param name="NumberOfUsersSharedWith">The number of people this collection has been shared with (required).</param>
 /// <param name="ShareId">The id of the share associated with this collection, or null if the  collection has not yet been shared (required).</param>
 /// <param name="NumberOfHits">The number of hits associated with this collection (required).</param>
 /// <param name="SystemName">The FastStats system that this collection has been created against (required).</param>
 /// <param name="Title">The title of the collection (required).</param>
 /// <param name="Description">The description of the collection (required).</param>
 /// <param name="CreationDate">The date the collection was created (required).</param>
 /// <param name="FilePath">The path to the file that contains the parts of this collection (required).</param>
 /// <param name="DeletionDate">The date the collection was deleted, or null if it has not been deleted.</param>
 public CollectionDetail(int?Id = default(int?), UserDisplayDetails Owner = default(UserDisplayDetails), int?NumberOfParts = default(int?), int?NumberOfUsersSharedWith = default(int?), int?ShareId = default(int?), int?NumberOfHits = default(int?), string SystemName = default(string), string Title = default(string), string Description = default(string), DateTime?CreationDate = default(DateTime?), string FilePath = default(string), DateTime?DeletionDate = default(DateTime?))
 {
     // to ensure "Id" is required (not null)
     if (Id == null)
     {
         throw new InvalidDataException("Id is a required property for CollectionDetail and cannot be null");
     }
     else
     {
         this.Id = Id;
     }
     // to ensure "Owner" is required (not null)
     if (Owner == null)
     {
         throw new InvalidDataException("Owner is a required property for CollectionDetail and cannot be null");
     }
     else
     {
         this.Owner = Owner;
     }
     // to ensure "NumberOfUsersSharedWith" is required (not null)
     if (NumberOfUsersSharedWith == null)
     {
         throw new InvalidDataException("NumberOfUsersSharedWith is a required property for CollectionDetail 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 CollectionDetail 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 CollectionDetail 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 CollectionDetail and cannot be null");
     }
     else
     {
         this.SystemName = SystemName;
     }
     // to ensure "Title" is required (not null)
     if (Title == null)
     {
         throw new InvalidDataException("Title is a required property for CollectionDetail 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 CollectionDetail 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 CollectionDetail and cannot be null");
     }
     else
     {
         this.CreationDate = CreationDate;
     }
     // to ensure "FilePath" is required (not null)
     if (FilePath == null)
     {
         throw new InvalidDataException("FilePath is a required property for CollectionDetail and cannot be null");
     }
     else
     {
         this.FilePath = FilePath;
     }
     this.NumberOfParts = NumberOfParts;
     this.DeletionDate  = DeletionDate;
 }
Example #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ListExportDetail" /> class.
 /// </summary>
 /// <param name="ListUpdateId">The id of the update (list version) that the export was created from (required).</param>
 /// <param name="Timestamp">The date and time that the export was produced (required).</param>
 /// <param name="FastStatsBuildDate">The date and time that the FastStats system used to create this export was built (required).</param>
 /// <param name="User">The user that triggered the export (required).</param>
 /// <param name="NettCounts">The set of overall counts for the list behind this export (required).</param>
 /// <param name="UrnFilePath">If a URN file was generated as part of this export then this will be its path within the FastStats system (required).</param>
 /// <param name="MaximumNumberOfRowsToBrowse">The requested maximum number of rows to return when browsing the data (required).</param>
 /// <param name="ReturnBrowseRows">Whether data rows were requested to be returned or whether the data was exported directly to the specified file (required).</param>
 /// <param name="FilePath">If specified, the path of a file that the data was exported to.</param>
 /// <param name="Format">If specified, the format of a file that the data was exported to.</param>
 /// <param name="Columns">The list of columns that have been included in this export (required).</param>
 /// <param name="Rows">If data rows were requested to be returned then the set of rows containing data for the given columns selected by the list queries.</param>
 public ListExportDetail(int?ListUpdateId = default(int?), DateTime?Timestamp = default(DateTime?), DateTime?FastStatsBuildDate = default(DateTime?), UserDisplayDetails User = default(UserDisplayDetails), List <Count> NettCounts = default(List <Count>), string UrnFilePath = default(string), long?MaximumNumberOfRowsToBrowse = default(long?), bool?ReturnBrowseRows = default(bool?), string FilePath = default(string), FormatEnum?Format = default(FormatEnum?), List <Column> Columns = default(List <Column>), List <Row> Rows = default(List <Row>))
 {
     // to ensure "ListUpdateId" is required (not null)
     if (ListUpdateId == null)
     {
         throw new InvalidDataException("ListUpdateId is a required property for ListExportDetail and cannot be null");
     }
     else
     {
         this.ListUpdateId = ListUpdateId;
     }
     // to ensure "Timestamp" is required (not null)
     if (Timestamp == null)
     {
         throw new InvalidDataException("Timestamp is a required property for ListExportDetail and cannot be null");
     }
     else
     {
         this.Timestamp = Timestamp;
     }
     // to ensure "FastStatsBuildDate" is required (not null)
     if (FastStatsBuildDate == null)
     {
         throw new InvalidDataException("FastStatsBuildDate is a required property for ListExportDetail and cannot be null");
     }
     else
     {
         this.FastStatsBuildDate = FastStatsBuildDate;
     }
     // to ensure "User" is required (not null)
     if (User == null)
     {
         throw new InvalidDataException("User is a required property for ListExportDetail and cannot be null");
     }
     else
     {
         this.User = User;
     }
     // to ensure "NettCounts" is required (not null)
     if (NettCounts == null)
     {
         throw new InvalidDataException("NettCounts is a required property for ListExportDetail and cannot be null");
     }
     else
     {
         this.NettCounts = NettCounts;
     }
     // to ensure "UrnFilePath" is required (not null)
     if (UrnFilePath == null)
     {
         throw new InvalidDataException("UrnFilePath is a required property for ListExportDetail and cannot be null");
     }
     else
     {
         this.UrnFilePath = UrnFilePath;
     }
     // to ensure "MaximumNumberOfRowsToBrowse" is required (not null)
     if (MaximumNumberOfRowsToBrowse == null)
     {
         throw new InvalidDataException("MaximumNumberOfRowsToBrowse is a required property for ListExportDetail and cannot be null");
     }
     else
     {
         this.MaximumNumberOfRowsToBrowse = MaximumNumberOfRowsToBrowse;
     }
     // to ensure "ReturnBrowseRows" is required (not null)
     if (ReturnBrowseRows == null)
     {
         throw new InvalidDataException("ReturnBrowseRows is a required property for ListExportDetail and cannot be null");
     }
     else
     {
         this.ReturnBrowseRows = ReturnBrowseRows;
     }
     // to ensure "Columns" is required (not null)
     if (Columns == null)
     {
         throw new InvalidDataException("Columns is a required property for ListExportDetail and cannot be null");
     }
     else
     {
         this.Columns = Columns;
     }
     this.FilePath = FilePath;
     this.Format   = Format;
     this.Rows     = Rows;
 }
Example #8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ListCheckDetail" /> class.
 /// </summary>
 /// <param name="ListUpdateId">The id of the update (list version) that the export was created from (required).</param>
 /// <param name="Timestamp">The date and time that the export was produced (required).</param>
 /// <param name="FastStatsBuildDate">The date and time that the FastStats system used to create this export was built (required).</param>
 /// <param name="User">The user that triggered the export (required).</param>
 /// <param name="NettCounts">The set of overall counts for the list behind this export (required).</param>
 /// <param name="DimensionResults">The list of dimension results containing list and base counts (required).</param>
 public ListCheckDetail(int?ListUpdateId = default(int?), DateTime?Timestamp = default(DateTime?), DateTime?FastStatsBuildDate = default(DateTime?), UserDisplayDetails User = default(UserDisplayDetails), List <Count> NettCounts = default(List <Count>), List <CheckDimensionResult> DimensionResults = default(List <CheckDimensionResult>))
 {
     // to ensure "ListUpdateId" is required (not null)
     if (ListUpdateId == null)
     {
         throw new InvalidDataException("ListUpdateId is a required property for ListCheckDetail and cannot be null");
     }
     else
     {
         this.ListUpdateId = ListUpdateId;
     }
     // to ensure "Timestamp" is required (not null)
     if (Timestamp == null)
     {
         throw new InvalidDataException("Timestamp is a required property for ListCheckDetail and cannot be null");
     }
     else
     {
         this.Timestamp = Timestamp;
     }
     // to ensure "FastStatsBuildDate" is required (not null)
     if (FastStatsBuildDate == null)
     {
         throw new InvalidDataException("FastStatsBuildDate is a required property for ListCheckDetail and cannot be null");
     }
     else
     {
         this.FastStatsBuildDate = FastStatsBuildDate;
     }
     // to ensure "User" is required (not null)
     if (User == null)
     {
         throw new InvalidDataException("User is a required property for ListCheckDetail and cannot be null");
     }
     else
     {
         this.User = User;
     }
     // to ensure "NettCounts" is required (not null)
     if (NettCounts == null)
     {
         throw new InvalidDataException("NettCounts is a required property for ListCheckDetail and cannot be null");
     }
     else
     {
         this.NettCounts = NettCounts;
     }
     // to ensure "DimensionResults" is required (not null)
     if (DimensionResults == null)
     {
         throw new InvalidDataException("DimensionResults is a required property for ListCheckDetail and cannot be null");
     }
     else
     {
         this.DimensionResults = DimensionResults;
     }
 }
Example #9
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;
 }
Example #10
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UserCollectionSummary" /> class.
 /// </summary>
 /// <param name="ViewingUsername">The username of the user that has access to this collection (required).</param>
 /// <param name="Status">The status of the collection (required).</param>
 /// <param name="SharedToMe">Whether this collection has been shared to the given user by someone else (required).</param>
 /// <param name="SharedByMe">Whether this collection has been shared to others by the given user (required).</param>
 /// <param name="Id">The collection&#39;s id (required).</param>
 /// <param name="Title">The title of the collection (required).</param>
 /// <param name="Description">The description of the collection (required).</param>
 /// <param name="CreationDate">The date the collection was created (required).</param>
 /// <param name="Owner">The details of the user that created this collection (required).</param>
 /// <param name="DeletionDate">The date the collection was deleted, or null if it has not been deleted (required).</param>
 /// <param name="NumberOfParts">The number of parts within this collection.</param>
 /// <param name="NumberOfUsersSharedWith">The number of people this collection has been shared with (required).</param>
 /// <param name="ShareId">The id of the share associated with this collection, or null if the  collection has not yet been shared (required).</param>
 /// <param name="NumberOfHits">The number of hits associated with this collection (required).</param>
 /// <param name="SystemName">The FastStats system that this collection has been created against (required).</param>
 public UserCollectionSummary(string ViewingUsername = default(string), StatusEnum Status = default(StatusEnum), bool?SharedToMe = default(bool?), bool?SharedByMe = default(bool?), int?Id = default(int?), string Title = default(string), string Description = default(string), DateTime?CreationDate = default(DateTime?), UserDisplayDetails Owner = default(UserDisplayDetails), DateTime?DeletionDate = default(DateTime?), int?NumberOfParts = default(int?), int?NumberOfUsersSharedWith = default(int?), int?ShareId = default(int?), int?NumberOfHits = default(int?), string SystemName = default(string))
 {
     // to ensure "ViewingUsername" is required (not null)
     if (ViewingUsername == null)
     {
         throw new InvalidDataException("ViewingUsername is a required property for UserCollectionSummary and cannot be null");
     }
     else
     {
         this.ViewingUsername = ViewingUsername;
     }
     // to ensure "Status" is required (not null)
     if (Status == null)
     {
         throw new InvalidDataException("Status is a required property for UserCollectionSummary and cannot be null");
     }
     else
     {
         this.Status = Status;
     }
     // to ensure "SharedToMe" is required (not null)
     if (SharedToMe == null)
     {
         throw new InvalidDataException("SharedToMe is a required property for UserCollectionSummary and cannot be null");
     }
     else
     {
         this.SharedToMe = SharedToMe;
     }
     // to ensure "SharedByMe" is required (not null)
     if (SharedByMe == null)
     {
         throw new InvalidDataException("SharedByMe is a required property for UserCollectionSummary and cannot be null");
     }
     else
     {
         this.SharedByMe = SharedByMe;
     }
     // to ensure "Id" is required (not null)
     if (Id == null)
     {
         throw new InvalidDataException("Id is a required property for UserCollectionSummary 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 UserCollectionSummary 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 UserCollectionSummary 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 UserCollectionSummary 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 UserCollectionSummary 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 UserCollectionSummary and cannot be null");
     }
     else
     {
         this.DeletionDate = DeletionDate;
     }
     // to ensure "NumberOfUsersSharedWith" is required (not null)
     if (NumberOfUsersSharedWith == null)
     {
         throw new InvalidDataException("NumberOfUsersSharedWith is a required property for UserCollectionSummary 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 UserCollectionSummary 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 UserCollectionSummary 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 UserCollectionSummary and cannot be null");
     }
     else
     {
         this.SystemName = SystemName;
     }
     this.NumberOfParts = NumberOfParts;
 }
Example #11
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ShareUpdate" /> class.
 /// </summary>
 /// <param name="Id">The id of the update (required).</param>
 /// <param name="Timestamp">The timestamp of when the update happened (required).</param>
 /// <param name="User">The user that initiated this share update (required).</param>
 /// <param name="Notes">The notes associated with this share update (required).</param>
 /// <param name="NumberOfAddedUsers">The number of users that were added to this share as part of this update (required).</param>
 /// <param name="FirstAddedUser">The first of the users that were added to this share as part of this update (required).</param>
 /// <param name="NumberOfRemovedUsers">The number of users that were removed from this share as part of this update (required).</param>
 /// <param name="FirstRemovedUser">The first of the users that were removed from this share as part of this update (required).</param>
 public ShareUpdate(int?Id = default(int?), DateTime?Timestamp = default(DateTime?), UserDisplayDetails User = default(UserDisplayDetails), string Notes = default(string), int?NumberOfAddedUsers = default(int?), UserDisplayDetails FirstAddedUser = default(UserDisplayDetails), int?NumberOfRemovedUsers = default(int?), UserDisplayDetails FirstRemovedUser = default(UserDisplayDetails))
 {
     // to ensure "Id" is required (not null)
     if (Id == null)
     {
         throw new InvalidDataException("Id is a required property for ShareUpdate and cannot be null");
     }
     else
     {
         this.Id = Id;
     }
     // to ensure "Timestamp" is required (not null)
     if (Timestamp == null)
     {
         throw new InvalidDataException("Timestamp is a required property for ShareUpdate and cannot be null");
     }
     else
     {
         this.Timestamp = Timestamp;
     }
     // to ensure "User" is required (not null)
     if (User == null)
     {
         throw new InvalidDataException("User is a required property for ShareUpdate and cannot be null");
     }
     else
     {
         this.User = User;
     }
     // to ensure "Notes" is required (not null)
     if (Notes == null)
     {
         throw new InvalidDataException("Notes is a required property for ShareUpdate and cannot be null");
     }
     else
     {
         this.Notes = Notes;
     }
     // to ensure "NumberOfAddedUsers" is required (not null)
     if (NumberOfAddedUsers == null)
     {
         throw new InvalidDataException("NumberOfAddedUsers is a required property for ShareUpdate and cannot be null");
     }
     else
     {
         this.NumberOfAddedUsers = NumberOfAddedUsers;
     }
     // to ensure "FirstAddedUser" is required (not null)
     if (FirstAddedUser == null)
     {
         throw new InvalidDataException("FirstAddedUser is a required property for ShareUpdate and cannot be null");
     }
     else
     {
         this.FirstAddedUser = FirstAddedUser;
     }
     // to ensure "NumberOfRemovedUsers" is required (not null)
     if (NumberOfRemovedUsers == null)
     {
         throw new InvalidDataException("NumberOfRemovedUsers is a required property for ShareUpdate and cannot be null");
     }
     else
     {
         this.NumberOfRemovedUsers = NumberOfRemovedUsers;
     }
     // to ensure "FirstRemovedUser" is required (not null)
     if (FirstRemovedUser == null)
     {
         throw new InvalidDataException("FirstRemovedUser is a required property for ShareUpdate and cannot be null");
     }
     else
     {
         this.FirstRemovedUser = FirstRemovedUser;
     }
 }
Example #12
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ListHitSummary" /> class.
 /// </summary>
 /// <param name="Id">The id of the hit itself (required).</param>
 /// <param name="ListId">The id of the list viewed (required).</param>
 /// <param name="Timestamp">The timestamp of when the hit was recorded (required).</param>
 /// <param name="User">Details of the user that viewed the list (required).</param>
 public ListHitSummary(int?Id = default(int?), int?ListId = default(int?), DateTime?Timestamp = default(DateTime?), UserDisplayDetails User = default(UserDisplayDetails))
 {
     // to ensure "Id" is required (not null)
     if (Id == null)
     {
         throw new InvalidDataException("Id is a required property for ListHitSummary and cannot be null");
     }
     else
     {
         this.Id = Id;
     }
     // to ensure "ListId" is required (not null)
     if (ListId == null)
     {
         throw new InvalidDataException("ListId is a required property for ListHitSummary and cannot be null");
     }
     else
     {
         this.ListId = ListId;
     }
     // to ensure "Timestamp" is required (not null)
     if (Timestamp == null)
     {
         throw new InvalidDataException("Timestamp is a required property for ListHitSummary and cannot be null");
     }
     else
     {
         this.Timestamp = Timestamp;
     }
     // to ensure "User" is required (not null)
     if (User == null)
     {
         throw new InvalidDataException("User is a required property for ListHitSummary and cannot be null");
     }
     else
     {
         this.User = User;
     }
 }
Example #13
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ListSummary" /> class.
 /// </summary>
 /// <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 ListSummary(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 ListSummary 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 ListSummary 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 ListSummary 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 ListSummary 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 ListSummary 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 ListSummary 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 ListSummary 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 ListSummary 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 ListSummary 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 ListSummary 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 ListSummary 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 ListSummary 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 ListSummary 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 ListSummary and cannot be null");
     }
     else
     {
         this.LastUpdateId = LastUpdateId;
     }
     this.ResolveTableNettCount = ResolveTableNettCount;
 }
Example #14
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ListUpdateDetail" /> class.
 /// </summary>
 /// <param name="BriefText">Notes associated with the list at the time of this update.</param>
 /// <param name="ExcludeQuery">The query rule that defines the records to exclude from this list at the time of this update.</param>
 /// <param name="IncludeQuery">The query rule that defines the records to start with when defining this list at the time of this update.</param>
 /// <param name="BodyQuery">The query rule that defines the records that will make up this list at the time of this update..</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="Id">The list update&#39;s id (required).</param>
 /// <param name="Timestamp">The timestamp of when the update happened (required).</param>
 /// <param name="User">The user that created this update (required).</param>
 /// <param name="Title">The title of the list at the time of this update (required).</param>
 /// <param name="Description">The description of the list at the time of this update (required).</param>
 /// <param name="Owner">The details of the user that owns this list at the time of this update (required).</param>
 /// <param name="IsDeleted">Whether this update set the list to be deleted or not (required).</param>
 /// <param name="ResolveTableName">The FastStats table that the list is defined against at the time of this update (required).</param>
 public ListUpdateDetail(string BriefText = default(string), Query ExcludeQuery = default(Query), Query IncludeQuery = default(Query), Query BodyQuery = default(Query), SelectionModifiers SelectionModifiers = default(SelectionModifiers), int?Id = default(int?), DateTime?Timestamp = default(DateTime?), UserDisplayDetails User = default(UserDisplayDetails), string Title = default(string), string Description = default(string), UserDisplayDetails Owner = default(UserDisplayDetails), bool?IsDeleted = default(bool?), string ResolveTableName = default(string))
 {
     // to ensure "Id" is required (not null)
     if (Id == null)
     {
         throw new InvalidDataException("Id is a required property for ListUpdateDetail and cannot be null");
     }
     else
     {
         this.Id = Id;
     }
     // to ensure "Timestamp" is required (not null)
     if (Timestamp == null)
     {
         throw new InvalidDataException("Timestamp is a required property for ListUpdateDetail and cannot be null");
     }
     else
     {
         this.Timestamp = Timestamp;
     }
     // to ensure "User" is required (not null)
     if (User == null)
     {
         throw new InvalidDataException("User is a required property for ListUpdateDetail and cannot be null");
     }
     else
     {
         this.User = User;
     }
     // to ensure "Title" is required (not null)
     if (Title == null)
     {
         throw new InvalidDataException("Title is a required property for ListUpdateDetail 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 ListUpdateDetail and cannot be null");
     }
     else
     {
         this.Description = Description;
     }
     // to ensure "Owner" is required (not null)
     if (Owner == null)
     {
         throw new InvalidDataException("Owner is a required property for ListUpdateDetail and cannot be null");
     }
     else
     {
         this.Owner = Owner;
     }
     // to ensure "IsDeleted" is required (not null)
     if (IsDeleted == null)
     {
         throw new InvalidDataException("IsDeleted is a required property for ListUpdateDetail and cannot be null");
     }
     else
     {
         this.IsDeleted = IsDeleted;
     }
     // to ensure "ResolveTableName" is required (not null)
     if (ResolveTableName == null)
     {
         throw new InvalidDataException("ResolveTableName is a required property for ListUpdateDetail and cannot be null");
     }
     else
     {
         this.ResolveTableName = ResolveTableName;
     }
     this.BriefText          = BriefText;
     this.ExcludeQuery       = ExcludeQuery;
     this.IncludeQuery       = IncludeQuery;
     this.BodyQuery          = BodyQuery;
     this.SelectionModifiers = SelectionModifiers;
 }