Class UrlLookupResult
URL Lookup Result.
Inheritance
Inherited Members
Namespace: Gee.External.Browsing.Services
Assembly: Gee.External.Browsing.dll
Syntax
public sealed class UrlLookupResult
Properties
IsDatabaseStale
Determine if URL Lookup Result Indicates a Stale Database.
Declaration
public bool IsDatabaseStale { get; }
Property Value
Type |
---|
System.Boolean |
Remarks
Determines if the URL lookup result indicates a DatabaseStale.
IsMalware
Determine if URL is Malware.
Declaration
public bool IsMalware { get; }
Property Value
Type |
---|
System.Boolean |
Remarks
Determines if Url is Malware if, and only if, it is Unsafe. To determine if the the URL is unsafe, call IsUnsafe.
IsPotentiallyHarmfulApplication
Determine if URL is a Potentially Harmful Application (PHA).
Declaration
public bool IsPotentiallyHarmfulApplication { get; }
Property Value
Type |
---|
System.Boolean |
Remarks
Determines if Url is a PotentiallyHarmfulApplication if, and only if, it is Unsafe. To determine if the the URL is unsafe, call IsUnsafe.
IsSafe
Determine if URL is Safe.
Declaration
public bool IsSafe { get; }
Property Value
Type |
---|
System.Boolean |
Remarks
IsSocialEngineering
Determine if URL is Social Engineering.
Declaration
public bool IsSocialEngineering { get; }
Property Value
Type |
---|
System.Boolean |
Remarks
Determines if Url is SocialEngineering if, and only if, it is Unsafe. To determine if the the URL is unsafe, call IsUnsafe.
IsUnsafe
Determine if URL is Unsafe.
Declaration
public bool IsUnsafe { get; }
Property Value
Type |
---|
System.Boolean |
Remarks
IsUnwantedSoftware
Determine if URL is Unwanted Software.
Declaration
public bool IsUnwantedSoftware { get; }
Property Value
Type |
---|
System.Boolean |
Remarks
Determines if Url is UnwantedSoftware if, and only if, it is Unsafe. To determine if the the URL is unsafe, call IsUnsafe.
LookupDate
Get Lookup Date.
Declaration
public DateTime LookupDate { get; }
Property Value
Type |
---|
System.DateTime |
Remarks
Represents the date, in Coordinated Universal Time (UTC), Url was looked up to determine whether it is Safe or Unsafe.
ResultCode
Get Result Code.
Declaration
public UrlLookupResultCode ResultCode { get; }
Property Value
Type |
---|
UrlLookupResultCode |
Remarks
Represents the UrlLookupResultCode indicating the nature of the URL lookup result.
TargetPlatforms
Get Target Platforms.
Declaration
public IEnumerable<PlatformType> TargetPlatforms { get; }
Property Value
Type |
---|
System.Collections.Generic.IEnumerable<PlatformType> |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | Thrown if Url is not Unsafe. To determine if the URL is unsafe, call IsUnsafe. |
ThreatTypes
Get Threat Types.
Declaration
public IEnumerable<ThreatType> ThreatTypes { get; }
Property Value
Type |
---|
System.Collections.Generic.IEnumerable<ThreatType> |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | Thrown if Url is not Unsafe. To determine if the URL is unsafe, call IsUnsafe. |
UnsafeThreatListDescriptors
Get Unsafe Threat List Descriptors.
Declaration
public IEnumerable<ThreatListDescriptor> UnsafeThreatListDescriptors { get; }
Property Value
Type |
---|
System.Collections.Generic.IEnumerable<ThreatListDescriptor> |
Remarks
Represents the collection of unsafe ThreatListDescriptor identifying the collection of ThreatList Url is associated with if, and only if, the URL is Unsafe. To determine if the URL is unsafe, call IsUnsafe.
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | Thrown if Url is not Unsafe. To determine if the URL is unsafe, call IsUnsafe. |
UnsafeUrlExpression
Get Unsafe URL Expression.
Declaration
public UrlExpression UnsafeUrlExpression { get; }
Property Value
Type |
---|
UrlExpression |
Remarks
Represents the computed unsafe UrlExpression for Url if, and only if, the URL is Unsafe. To determine if the URL is unsafe, call IsUnsafe.
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | Thrown if Url is not Unsafe. To determine if the URL is unsafe, call IsUnsafe. |
Url
Get URL.
Declaration
public Url Url { get; }
Property Value
Type |
---|
Url |
Remarks
Methods
DatabaseStale(Url, DateTime)
Create a URL Lookup Result Indicating a Stale Database.
Declaration
public static UrlLookupResult DatabaseStale(Url url, DateTime lookupDate)
Parameters
Type | Name | Description |
---|---|---|
Url | url | A Url that was looked up to determine whether it is Safe or Unsafe. |
System.DateTime | lookupDate | The date, in Coordinated Universal Time (UTC), |
Returns
Type | Description |
---|---|
UrlLookupResult | A URL lookup result indicating a DatabaseStale. |
Safe(Url, DateTime)
Create a URL Lookup Result Indicating a Safe URL.
Declaration
public static UrlLookupResult Safe(Url url, DateTime lookupDate)
Parameters
Type | Name | Description |
---|---|---|
Url | url | A Url that was looked up to determine whether it is Safe or Unsafe. |
System.DateTime | lookupDate | The date, in Coordinated Universal Time (UTC), |
Returns
Type | Description |
---|---|
UrlLookupResult |
ToString()
Get Object's String Representation.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | The object's string representation. |
Overrides
Unsafe(Url, DateTime, UrlExpression, IEnumerable<ThreatListDescriptor>)
Create a URL Lookup Result Indicating an Unsafe URL.
Declaration
public static UrlLookupResult Unsafe(Url url, DateTime lookupDate, UrlExpression unsafeUrlExpression, IEnumerable<ThreatListDescriptor> unsafeThreatListDescriptors)
Parameters
Type | Name | Description |
---|---|---|
Url | url | A Url that was looked up to determine whether it is Safe or Unsafe. |
System.DateTime | lookupDate | The date, in Coordinated Universal Time (UTC), |
UrlExpression | unsafeUrlExpression | The computed unsafe UrlExpression for |
System.Collections.Generic.IEnumerable<ThreatListDescriptor> | unsafeThreatListDescriptors | A collection of unsafe ThreatListDescriptor identifying the collection of
ThreatList |
Returns
Type | Description |
---|---|
UrlLookupResult |