/// <summary> /// Initializes a new instance of the <see cref="ConnectionEntity" /> class. /// </summary> /// <param name="revision">The revision for this request/response. The revision is required for any mutable flow requests and is included in all responses..</param> /// <param name="id">The id of the component..</param> /// <param name="uri">The URI for futures requests to the component..</param> /// <param name="position">The position of this component in the UI if applicable..</param> /// <param name="permissions">The permissions for this component..</param> /// <param name="bulletins">The bulletins for this component..</param> /// <param name="disconnectedNodeAcknowledged">Acknowledges that this node is disconnected to allow for mutable requests to proceed..</param> /// <param name="component">component.</param> /// <param name="status">The status of the connection..</param> /// <param name="bends">The bend points on the connection..</param> /// <param name="labelIndex">The index of the bend point where to place the connection label..</param> /// <param name="getzIndex">The z index of the connection..</param> /// <param name="sourceId">The identifier of the source of this connection..</param> /// <param name="sourceGroupId">The identifier of the group of the source of this connection..</param> /// <param name="sourceType">The type of component the source connectable is. (required).</param> /// <param name="destinationId">The identifier of the destination of this connection..</param> /// <param name="destinationGroupId">The identifier of the group of the destination of this connection..</param> /// <param name="destinationType">The type of component the destination connectable is. (required).</param> public ConnectionEntity(RevisionDTO revision = default(RevisionDTO), string id = default(string), string uri = default(string), PositionDTO position = default(PositionDTO), PermissionsDTO permissions = default(PermissionsDTO), List <BulletinEntity> bulletins = default(List <BulletinEntity>), bool?disconnectedNodeAcknowledged = default(bool?), ConnectionDTO component = default(ConnectionDTO), ConnectionStatusDTO status = default(ConnectionStatusDTO), List <PositionDTO> bends = default(List <PositionDTO>), int?labelIndex = default(int?), long?getzIndex = default(long?), string sourceId = default(string), string sourceGroupId = default(string), SourceTypeEnum sourceType = default(SourceTypeEnum), string destinationId = default(string), string destinationGroupId = default(string), DestinationTypeEnum destinationType = default(DestinationTypeEnum)) { // to ensure "sourceType" is required (not null) if (sourceType == null) { throw new InvalidDataException("sourceType is a required property for ConnectionEntity and cannot be null"); } else { this.SourceType = sourceType; } // to ensure "destinationType" is required (not null) if (destinationType == null) { throw new InvalidDataException("destinationType is a required property for ConnectionEntity and cannot be null"); } else { this.DestinationType = destinationType; } this.Revision = revision; this.Id = id; this.Uri = uri; this.Position = position; this.Permissions = permissions; this.Bulletins = bulletins; this.DisconnectedNodeAcknowledged = disconnectedNodeAcknowledged; this.Component = component; this.Status = status; this.Bends = bends; this.LabelIndex = labelIndex; this.GetzIndex = getzIndex; this.SourceId = sourceId; this.SourceGroupId = sourceGroupId; this.DestinationId = destinationId; this.DestinationGroupId = destinationGroupId; }
/// <summary> /// Initializes a new instance of the <see cref="ConnectionStatusEntity" /> class. /// </summary> /// <param name="connectionStatus">connectionStatus.</param> public ConnectionStatusEntity(ConnectionStatusDTO connectionStatus = default(ConnectionStatusDTO)) { this.ConnectionStatus = connectionStatus; }