Class PageEmailProjection
Paginated email projection results. EmailProjections and EmailPreviews are essentially the same but have legacy naming issues. Page index starts at zero. Projection results may omit larger entity fields. For fetching a full email entity use the projection ID with individual method calls. For emails there are several methods for fetching message bodies and attachments.
Implements
Inherited Members
Namespace: mailslurp.Model
Assembly: mailslurp.dll
Syntax
[DataContract(Name = "PageEmailProjection")]
public class PageEmailProjection : IValidatableObject
Constructors
View SourcePageEmailProjection()
Initializes a new instance of the PageEmailProjection class.
Declaration
[JsonConstructor]
protected PageEmailProjection()
PageEmailProjection(List<EmailProjection>, PageableObject, long, int, bool, int, bool, int, int, SortObject, bool)
Initializes a new instance of the PageEmailProjection class.
Declaration
public PageEmailProjection(List<EmailProjection> content = null, PageableObject pageable = null, long totalElements = 0, int totalPages = 0, bool last = false, int numberOfElements = 0, bool first = false, int size = 0, int number = 0, SortObject sort = null, bool empty = false)
Parameters
| Type | Name | Description |
|---|---|---|
| List<EmailProjection> | content | content. |
| PageableObject | pageable | pageable. |
| long | totalElements | totalElements (required). |
| int | totalPages | totalPages (required). |
| bool | last | last. |
| int | numberOfElements | numberOfElements. |
| bool | first | first. |
| int | size | size. |
| int | number | number. |
| SortObject | sort | sort. |
| bool | empty | empty. |
Properties
View SourceContent
Gets or Sets Content
Declaration
[DataMember(Name = "content", EmitDefaultValue = false)]
public List<EmailProjection> Content { get; set; }
Property Value
| Type | Description |
|---|---|
| List<EmailProjection> |
Empty
Gets or Sets Empty
Declaration
[DataMember(Name = "empty", EmitDefaultValue = true)]
public bool Empty { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
First
Gets or Sets First
Declaration
[DataMember(Name = "first", EmitDefaultValue = true)]
public bool First { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Last
Gets or Sets Last
Declaration
[DataMember(Name = "last", EmitDefaultValue = true)]
public bool Last { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Number
Gets or Sets Number
Declaration
[DataMember(Name = "number", EmitDefaultValue = false)]
public int Number { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
NumberOfElements
Gets or Sets NumberOfElements
Declaration
[DataMember(Name = "numberOfElements", EmitDefaultValue = false)]
public int NumberOfElements { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Pageable
Gets or Sets Pageable
Declaration
[DataMember(Name = "pageable", EmitDefaultValue = false)]
public PageableObject Pageable { get; set; }
Property Value
| Type | Description |
|---|---|
| PageableObject |
Size
Gets or Sets Size
Declaration
[DataMember(Name = "size", EmitDefaultValue = false)]
public int Size { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Sort
Gets or Sets Sort
Declaration
[DataMember(Name = "sort", EmitDefaultValue = false)]
public SortObject Sort { get; set; }
Property Value
| Type | Description |
|---|---|
| SortObject |
TotalElements
Gets or Sets TotalElements
Declaration
[DataMember(Name = "totalElements", IsRequired = true, EmitDefaultValue = true)]
public long TotalElements { get; set; }
Property Value
| Type | Description |
|---|---|
| long |
TotalPages
Gets or Sets TotalPages
Declaration
[DataMember(Name = "totalPages", IsRequired = true, EmitDefaultValue = true)]
public int TotalPages { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Methods
View SourceToJson()
Returns the JSON string presentation of the object
Declaration
public virtual string ToJson()
Returns
| Type | Description |
|---|---|
| string | JSON string presentation of the object |
ToString()
Returns the string presentation of the object
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | String presentation of the object |