Class TrackingPixelDto
Tracking pixel
Inherited Members
Namespace: mailslurp.Model
Assembly: mailslurp.dll
Syntax
[DataContract(Name = "TrackingPixelDto")]
public class TrackingPixelDto : IEquatable<TrackingPixelDto>, IValidatableObject
Constructors
View SourceTrackingPixelDto()
Initializes a new instance of the TrackingPixelDto class.
Declaration
[JsonConstructor]
protected TrackingPixelDto()
TrackingPixelDto(Guid, bool, string, string, string, Guid?, Guid?, DateTime?, DateTime)
Initializes a new instance of the TrackingPixelDto class.
Declaration
public TrackingPixelDto(Guid id = default, bool seen = false, string recipient = null, string html = null, string url = null, Guid? inboxId = null, Guid? sentEmailId = null, DateTime? seenAt = null, DateTime createdAt = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | id (required). |
bool | seen | seen (required). |
string | recipient | recipient. |
string | html | html (required). |
string | url | url (required). |
System.Guid? | inboxId | inboxId. |
System.Guid? | sentEmailId | sentEmailId. |
DateTime? | seenAt | seenAt. |
DateTime | createdAt | createdAt (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 |
Html
Gets or Sets Html
Declaration
[DataMember(Name = "html", IsRequired = true, EmitDefaultValue = true)]
public string Html { get; set; }
Property Value
Type | Description |
---|---|
string |
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 = true)]
public Guid? InboxId { get; set; }
Property Value
Type | Description |
---|---|
System.Guid? |
Recipient
Gets or Sets Recipient
Declaration
[DataMember(Name = "recipient", EmitDefaultValue = true)]
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 = true)]
public DateTime? SeenAt { get; set; }
Property Value
Type | Description |
---|---|
DateTime? |
SentEmailId
Gets or Sets SentEmailId
Declaration
[DataMember(Name = "sentEmailId", EmitDefaultValue = true)]
public Guid? SentEmailId { get; set; }
Property Value
Type | Description |
---|---|
System.Guid? |
Url
Gets or Sets Url
Declaration
[DataMember(Name = "url", IsRequired = true, EmitDefaultValue = true)]
public string Url { get; set; }
Property Value
Type | Description |
---|---|
string |
Methods
View SourceEquals(TrackingPixelDto)
Returns true if TrackingPixelDto instances are equal
Declaration
public bool Equals(TrackingPixelDto input)
Parameters
Type | Name | Description |
---|---|---|
TrackingPixelDto | input | Instance of TrackingPixelDto 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 |