Class TrackingPixelProjection
Tracking pixel data
Implements
Inherited Members
Namespace: mailslurp.Model
Assembly: mailslurp.dll
Syntax
[DataContract(Name = "TrackingPixelProjection")]
public class TrackingPixelProjection : IEquatable<TrackingPixelProjection>, IValidatableObject
Constructors
View SourceTrackingPixelProjection()
Initializes a new instance of the TrackingPixelProjection class.
Declaration
[JsonConstructor]
protected TrackingPixelProjection()
TrackingPixelProjection(DateTime, Guid, Guid, Guid, string, bool, DateTime, string, Guid)
Initializes a new instance of the TrackingPixelProjection class.
Declaration
public TrackingPixelProjection(DateTime createdAt = default, Guid inboxId = default, Guid userId = default, Guid sentEmailId = default, string recipient = null, bool seen = false, DateTime seenAt = default, string name = null, Guid id = default)
Parameters
Type | Name | Description |
---|---|---|
DateTime | createdAt | createdAt (required). |
System.Guid | inboxId | inboxId. |
System.Guid | userId | userId (required). |
System.Guid | sentEmailId | sentEmailId. |
string | recipient | recipient. |
bool | seen | seen (required). |
DateTime | seenAt | seenAt. |
string | name | name. |
System.Guid | id | id (required). |
Properties
View SourceCreatedAt
Gets or Sets CreatedAt
Declaration
[DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)]
public DateTime CreatedAt { get; set; }
Property Value
Type | Description |
---|---|
DateTime |
Id
Gets or Sets Id
Declaration
[DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)]
public Guid Id { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
InboxId
Gets or Sets InboxId
Declaration
[DataMember(Name = "inboxId", EmitDefaultValue = false)]
public Guid InboxId { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
Name
Gets or Sets Name
Declaration
[DataMember(Name = "name", EmitDefaultValue = false)]
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
Recipient
Gets or Sets Recipient
Declaration
[DataMember(Name = "recipient", EmitDefaultValue = false)]
public string Recipient { get; set; }
Property Value
Type | Description |
---|---|
string |
Seen
Gets or Sets Seen
Declaration
[DataMember(Name = "seen", IsRequired = true, EmitDefaultValue = true)]
public bool Seen { get; set; }
Property Value
Type | Description |
---|---|
bool |
SeenAt
Gets or Sets SeenAt
Declaration
[DataMember(Name = "seenAt", EmitDefaultValue = false)]
public DateTime SeenAt { get; set; }
Property Value
Type | Description |
---|---|
DateTime |
SentEmailId
Gets or Sets SentEmailId
Declaration
[DataMember(Name = "sentEmailId", EmitDefaultValue = false)]
public Guid SentEmailId { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
UserId
Gets or Sets UserId
Declaration
[DataMember(Name = "userId", IsRequired = true, EmitDefaultValue = true)]
public Guid UserId { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
Methods
View SourceEquals(TrackingPixelProjection)
Returns true if TrackingPixelProjection instances are equal
Declaration
public bool Equals(TrackingPixelProjection input)
Parameters
Type | Name | Description |
---|---|---|
TrackingPixelProjection | input | Instance of TrackingPixelProjection to be compared |
Returns
Type | Description |
---|---|
bool | Boolean |
Equals(object)
Returns true if objects are equal
Declaration
public override bool Equals(object input)
Parameters
Type | Name | Description |
---|---|---|
object | input | Object to be compared |
Returns
Type | Description |
---|---|
bool | Boolean |
Overrides
View SourceGetHashCode()
Gets the hash code
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | Hash code |
Overrides
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 |
Overrides
Validate(ValidationContext)
To validate all properties of the instance
Declaration
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
Parameters
Type | Name | Description |
---|---|---|
ValidationContext | validationContext | Validation context |
Returns
Type | Description |
---|---|
IEnumerable<ValidationResult> | Validation Result |