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