PortDto Class

Port dto represents a connection point of a node

Definition

Namespace: MobileTrack.Common.Models.ActionFlows
Assembly: MobileTrack.Common (in MobileTrack.Common.dll) Version: 0.7+ce90b2cf6b782b8d7b7fd47b3c546987c652c00f
public sealed class PortDto : IIdLabel, 
	IHasDefaultValue
Inheritance
Object    PortDto
Implements
IHasDefaultValue, IIdLabel

Remarks

The following rules must be adhered to:
  • Output to input – Ports can be connected if, and only if, one is an output port and the other is an input port.
  • Multiple connections: – An input port is not allowed to have multiple connections. They can only derive their value from their DefaultValue
    or a single connection to an output port from another node. However, output ports are allowed to have multiple connections to other input ports.
  • be from a different node – A port can only be connected to another port if they're both from different nodes.
  • Proper default valueDefaultValue must have a proper value, based on the assignment of PropertyType.
    This can be a Boolean, DateTime, Double, Guid (object identifier), GeoLocation or String. is not allowed.
    If we store a Guid and no value has been set, we use 0 as value (similar to NULL in the C Programming language), not Empty.

Constructors

PortDto Internal constructor for serialization. Do not use; to generate a new instance use ModelFactory methods instead.

Properties

DefaultValue The default value assigned to this object.
DependentOn If set, this port takes the assigned type of the port with this ID.
Id The unique ID representing the object. Empty is not valid! This ID is used when other objects are referring to this object, and as the main ID in the Azure Cosmos database.
IsInput if the port is an input port
Label The label representing the object to the user. Empty or are not valid values for this property!
PortColor Color for the icon on the port.
PortIcon Icon for the port to display.
PortType The type of port we are working with.
PropertyType The Type of the property

Extension Methods

AssignDefaultIfNotProper Assigns the default value to the object if it's not a valid value.
(Defined by DiagramsFactory)
GenerateFourEyesRequestedMessage Generates a toast message for a four-eyes request, letting the user know it had been submitted properly.
(Defined by FourEyesExtensions)
GenerateToastMessageForAction Generates a toast message for the specified action.
(Defined by WebExtensions)
GenerateToastMessageForFourEyesCancelled Generates Toast message for when a four-eyes request has been denied
(Defined by WebExtensions)
GenerateToastMessageForItemCreation Generates Toast message for when an item has been successfully created.
(Defined by WebExtensions)
GenerateToastMessageForItemDeletion Generates Toast message for when an item has been successfully deleted.
(Defined by WebExtensions)
GenerateToastMessageForItemLicenseActivated Generates Toast message for when an item has been successfully activated.
(Defined by WebExtensions)
GenerateToastMessageForItemLicenseExpired Generates Toast message for when an item's license has been successfully expired.
(Defined by WebExtensions)
GenerateToastMessageForItemLock Generates Toast message for when an item has been successfully locked.
(Defined by WebExtensions)
GenerateToastMessageForItemRequestConfirmed Generates Toast message for when an item request has been successfully confirmed.
(Defined by WebExtensions)
GenerateToastMessageForItemRevertDelete Generates Toast message for when an item has been successfully reverted deletion.
(Defined by WebExtensions)
GenerateToastMessageForItemUnlock Generates Toast message for when an item has been successfully unlocked.
(Defined by WebExtensions)
GenerateToastMessageForItemUpdated Generates Toast message for when an item has been successfully updated.
(Defined by WebExtensions)
IdString renders ID as a string for frontend brevity.
(Defined by ModelGenericExtensions)
IsIdAndLabelValid Checks whether the Id and Label have been properly entered.
(Defined by ModelValidatorsExtensions)
IsLabelValid Checks whether the Label field has a valid value; not , not whitespace (or beginning or ending with whitespace) and not only comprised of special characters.
(Defined by ModelValidatorsExtensions)
IsPortValid Checks whether the PortDto object is properly filled in.
(Defined by ModelValidatorsExtensions)
TrimLabel Trim the label of IIdLabel object.
(Defined by ModelGenericModifiers)

See Also