ModelValidatorsExtensions Class

Validators for Action Flow type models.

Definition

Namespace: MobileTrack.Common.Extensions
Assembly: MobileTrack.Common (in MobileTrack.Common.dll) Version: 0.7+ce90b2cf6b782b8d7b7fd47b3c546987c652c00f
public static class ModelValidatorsExtensions
Inheritance
Object    ModelValidatorsExtensions

Methods

AreExtraFieldsValidT Checks if the free fields, if filled in, are properly filled in.
IsAccountValid Checks whether the Account object is properly filled in.
IsActionFlowAssignmentValid Checks whether the ActionFlowAssignmentDto object is properly filled in.
IsActionFlowDefinitionValid Checks whether the Action flow object is properly filled in.
IsAlertRuleProcessResultValid Checks whether the AlertRuleProcessResultDto object is properly filled in.
IsAlertRuleValid Checks whether the AlertRuleDto object is properly filled in.
IsAlertTypeConfigValid Checks whether the AlertTypeConfiguration object is properly filled in.
IsAlertTypeValid Checks whether the AlertTypeDto object is properly filled in.
IsApiResultModelValidT Checks whether the ApiResultModelT is in a valid state
IsApiTokenValid Checks whether the Api Key is filled in properly.
IsAssignedEnvironmentValidT Checks whether an environment is assigned to this object.
IsCompanyValid(CompanyDto, ValidationModel) Checks whether the CompanyDto object is properly filled in.
IsCompanyValidT(T, ValidationModel) Checks if the CompanyId is properly filled in.
IsConnectStateValid Checks whether the ConnectorStateDto object is properly filled in.
IsCountryValidT Checks whether the country value is properly filled in.
IsCreatedStatsValidT Checks whether the model is properly filled in.
IsCustomPageContentValid Checks whether the CustomContentDto object is properly filled in.
IsCustomPageSectionValid Checks whether the HtmlSectionDto object is properly filled in.
IsCustomPageSegmentValid Checks whether the HtmlSegmentDto object is properly filled in.
IsCustomPageValid Checks whether the CustomPageDto object is properly filled in.
IsDashboardValid Checks whether the Dashboard object is properly filled in.
IsDeviceMessageValid Checks if a parsed Gps Message has been properly composed
IsDevicePayloadValid Checks if a DevicePayLoadDto is properly filled in.
IsDeviceValid Checks whether the Environment object is properly filled in.
IsDomainReferenceValid Returns whether the DomainId reference is valid.
IsEmailValidT Returns whether an EmailAddress property is of a valid structure. This method does not check whether the email address actually exists.
IsEncryptedPasswordValid Returns whether the EncryptedPasswordDto model is properly filled in.
IsEnvironmentValid Checks whether the EnvironmentDto object is properly filled in.
IsFileValid Checks whether the FileDto model properties have been properly filled in.
IsGeofenceValid Checks whether the GeofenceDto object is properly filled in.
IsGeoLocationValid Checks whether the GeoLocation properties has been properly filled in.
IsGpsLocationWithHeadingValid Checks whether the GeoLocationWithHeading has been properly filled in.
IsHasAccountValid Checks if the account field is properly filled in.
IsHtmlContentValid Check whether the Html content for an email is valid.
IsIdAndLabelValid Checks whether the Id and Label have been properly entered.
IsImageValid(Int32, Int32, FileResourceTypeMap, ValidationModel) Checks whether an uploaded image is valid for the assigned Image Resource Type Map
IsImageValid(Int32, Int32, String, ValidationModel) Checks whether an uploaded image is valid for the assigned Image Resource Type Map
IsIpAddressStatusValid Checks whether the IpAddressStatusDto item has been properly filled in.
IsKmlValid Checks whether a loaded KML file was filled in properly.
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.
IsLinkInfoValid Checks whether the LinkInfoDto object is properly filled in.
IsLogValid Checks whether the log is valid
IsMapMarkerValid Whether the MapMarkerDto object is properly filled in.
IsMfaConnectionValid Checks if the mfa connection is properly filled in.
IsModifiedStatsValid Checks whether the model is properly filled in.
IsNameValid Check whether the name property has been properly filled in. A name should satisfy these requirements: No digits (0-9): Names should not contain any numerical characters. No forbidden special characters: Characters like @, !, ?, #, ,, $, _, &, (, ) are not allowed. Only valid punctuation is allowed: Apostrophes (') and hyphens (-) are permitted but must be used correctly (e.g., no double hyphens like Anne--Marie and no trailing hyphens like Carlos-Name-). No consecutive spaces: A name should not have multiple spaces in a row (e.g., Li Wei). No leading or trailing spaces: Names should not start or end with spaces (e.g., " Sarah" or "Jack "). Apostrophes should be used correctly: They should not have spaces before them (e.g., "O' Connor" is incorrect; "O'Connor" is correct). Hyphens should be used correctly: They should only be used to separate parts of a name, not appear at the start, end, or in double form.
IsNodeValid Checks whether the NodeDto object is properly filled in.
IsNotificationValid Checks if a request notification is properly filled in.
IsPasswordValid Checks if a user-input password (like when entering a login form or making a new password) can be correct in the first place.
IsPhoneNumberValid Checks whether the PhoneNumber property has been properly filled in.
IsPhysicalAddressValid Checks whether the physical address properties of the model are valid.
IsPortValid Checks whether the PortDto object is properly filled in.
IsRequestValid Checks if a request is properly filled in.
IsRoleAssignmentValid Checks whether a role assignment is properly filled in.
IsRoleValid Checks whether the model is properly filled in.
IsSettingsValid Checks if a settings model is properly filled in.
IsStringValid Checks Whether a string field is properly filled in. (texts with digits/without digits only, no special characters!)
IsTemplateValid Checks whether the Dashboard object is properly filled in.

See Also