Class ConnectorDto
ConnectorDto
Inherited Members
Namespace: mailslurp.Model
Assembly: mailslurp.dll
Syntax
[DataContract(Name = "ConnectorDto")]
public class ConnectorDto : IEquatable<ConnectorDto>, IValidatableObject
Constructors
View SourceConnectorDto()
Initializes a new instance of the ConnectorDto class.
Declaration
[JsonConstructor]
protected ConnectorDto()
ConnectorDto(Guid, string, bool, Guid, Guid, bool, SyncScheduleTypeEnum?, int?, bool, bool, DateTime)
Initializes a new instance of the ConnectorDto class.
Declaration
public ConnectorDto(Guid id = default, string name = null, bool enabled = false, Guid userId = default, Guid inboxId = default, bool syncEnabled = false, ConnectorDto.SyncScheduleTypeEnum? syncScheduleType = null, int? syncInterval = null, bool hasImapConnection = false, bool hasSmtpConnection = false, DateTime createdAt = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | id (required). |
string | name | name. |
bool | enabled | enabled (required). |
System.Guid | userId | userId (required). |
System.Guid | inboxId | inboxId (required). |
bool | syncEnabled | syncEnabled (required). |
ConnectorDto.SyncScheduleTypeEnum? | syncScheduleType | syncScheduleType. |
int? | syncInterval | syncInterval. |
bool | hasImapConnection | hasImapConnection (required). |
bool | hasSmtpConnection | hasSmtpConnection (required). |
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 |
Enabled
Gets or Sets Enabled
Declaration
[DataMember(Name = "enabled", IsRequired = true, EmitDefaultValue = true)]
public bool Enabled { get; set; }
Property Value
Type | Description |
---|---|
bool |
HasImapConnection
Gets or Sets HasImapConnection
Declaration
[DataMember(Name = "hasImapConnection", IsRequired = true, EmitDefaultValue = true)]
public bool HasImapConnection { get; set; }
Property Value
Type | Description |
---|---|
bool |
HasSmtpConnection
Gets or Sets HasSmtpConnection
Declaration
[DataMember(Name = "hasSmtpConnection", IsRequired = true, EmitDefaultValue = true)]
public bool HasSmtpConnection { get; set; }
Property Value
Type | Description |
---|---|
bool |
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", IsRequired = true, EmitDefaultValue = true)]
public Guid InboxId { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
Name
Gets or Sets Name
Declaration
[DataMember(Name = "name", EmitDefaultValue = true)]
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
SyncEnabled
Gets or Sets SyncEnabled
Declaration
[DataMember(Name = "syncEnabled", IsRequired = true, EmitDefaultValue = true)]
public bool SyncEnabled { get; set; }
Property Value
Type | Description |
---|---|
bool |
SyncInterval
Gets or Sets SyncInterval
Declaration
[DataMember(Name = "syncInterval", EmitDefaultValue = true)]
public int? SyncInterval { get; set; }
Property Value
Type | Description |
---|---|
int? |
SyncScheduleType
Gets or Sets SyncScheduleType
Declaration
[DataMember(Name = "syncScheduleType", EmitDefaultValue = true)]
public ConnectorDto.SyncScheduleTypeEnum? SyncScheduleType { get; set; }
Property Value
Type | Description |
---|---|
ConnectorDto.SyncScheduleTypeEnum? |
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(ConnectorDto)
Returns true if ConnectorDto instances are equal
Declaration
public bool Equals(ConnectorDto input)
Parameters
Type | Name | Description |
---|---|---|
ConnectorDto | input | Instance of ConnectorDto 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 |