Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PageContactProjection" /> class.
 /// </summary>
 /// <param name="content">content.</param>
 /// <param name="pageable">pageable.</param>
 /// <param name="total">total.</param>
 /// <param name="totalElements">totalElements.</param>
 /// <param name="totalPages">totalPages.</param>
 /// <param name="last">last.</param>
 /// <param name="size">size.</param>
 /// <param name="number">number.</param>
 /// <param name="sort">sort.</param>
 /// <param name="numberOfElements">numberOfElements.</param>
 /// <param name="first">first.</param>
 /// <param name="empty">empty.</param>
 public PageContactProjection(List <ContactProjection> content = default(List <ContactProjection>), PageableObject pageable = default(PageableObject), long total = default(long), long totalElements = default(long), int totalPages = default(int), bool last = default(bool), int size = default(int), int number = default(int), Sort sort = default(Sort), int numberOfElements = default(int), bool first = default(bool), bool empty = default(bool))
 {
     this.Content          = content;
     this.Pageable         = pageable;
     this.Total            = total;
     this.TotalElements    = totalElements;
     this.TotalPages       = totalPages;
     this.Last             = last;
     this.Size             = size;
     this.Number           = number;
     this.Sort             = sort;
     this.NumberOfElements = numberOfElements;
     this.First            = first;
     this.Empty            = empty;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="PageSentEmailProjection" /> class.
 /// </summary>
 /// <param name="content">Collection of items (required).</param>
 /// <param name="pageable">pageable.</param>
 /// <param name="total">total.</param>
 /// <param name="size">Size of page requested (required).</param>
 /// <param name="number">Page number starting at 0 (required).</param>
 /// <param name="numberOfElements">Number of items returned (required).</param>
 /// <param name="totalElements">Total number of items available for querying (required).</param>
 /// <param name="totalPages">Total number of pages available (required).</param>
 /// <param name="last">last.</param>
 /// <param name="sort">sort.</param>
 /// <param name="first">first.</param>
 /// <param name="empty">empty.</param>
 public PageSentEmailProjection(List <SentEmailProjection> content = default(List <SentEmailProjection>), PageableObject pageable = default(PageableObject), long total = default(long), int size = default(int), int number = default(int), int numberOfElements = default(int), long totalElements = default(long), int totalPages = default(int), bool last = default(bool), Sort sort = default(Sort), bool first = default(bool), bool empty = default(bool))
 {
     // to ensure "content" is required (not null)
     this.Content          = content ?? throw new ArgumentNullException("content is a required property for PageSentEmailProjection and cannot be null");
     this.Size             = size;
     this.Number           = number;
     this.NumberOfElements = numberOfElements;
     this.TotalElements    = totalElements;
     this.TotalPages       = totalPages;
     this.Pageable         = pageable;
     this.Total            = total;
     this.Last             = last;
     this.Sort             = sort;
     this.First            = first;
     this.Empty            = empty;
 }