Class ThreatListBuilder
Threat List Builder.
Inheritance
Inherited Members
Namespace: Gee.External.Browsing
Assembly: Gee.External.Browsing.dll
Syntax
public sealed class ThreatListBuilder
Methods
Build()
Build a Threat List.
Declaration
public ThreatList Build()
Returns
| Type | Description |
|---|---|
| ThreatList | A ThreatList. |
SetDescriptor(ThreatListDescriptor)
Set Threat List's Descriptor.
Declaration
public ThreatListBuilder SetDescriptor(ThreatListDescriptor value)
Parameters
| Type | Name | Description |
|---|---|---|
| ThreatListDescriptor | value | A ThreatListDescriptor identifying the ThreatList. |
Returns
| Type | Description |
|---|---|
| ThreatListBuilder | This threat list builder. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | Thrown if |
SetDescriptor(ThreatType, PlatformType, ThreatEntryType)
Set Threat List's Descriptor.
Declaration
public ThreatListBuilder SetDescriptor(ThreatType threatType, PlatformType platformType, ThreatEntryType threatEntryType)
Parameters
| Type | Name | Description |
|---|---|---|
| ThreatType | threatType | A ThreatType identifying the ThreatList. |
| PlatformType | platformType | A PlatformType identifying the ThreatList. |
| ThreatEntryType | threatEntryType | A ThreatEntryType identifying the ThreatList. |
Returns
| Type | Description |
|---|---|
| ThreatListBuilder | This threat list builder. |
SetRetrieveDate(DateTime)
Set Threat List's Retrieve Date.
Declaration
public ThreatListBuilder SetRetrieveDate(DateTime value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.DateTime | value | The date, in Coordinated Universal Time (UTC), the ThreatList was retrieved from the Google Safe Browsing API. If the date is not expressed in UTC, it is converted to it. |
Returns
| Type | Description |
|---|---|
| ThreatListBuilder | This threat list builder. |
SetState(String)
Set Threat List's State.
Declaration
public ThreatListBuilder SetState(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | value | The state, formatted as a hexadecimal encoded string, of the ThreatList when it was retrieved from the Google Safe Browsing API. |
Returns
| Type | Description |
|---|---|
| ThreatListBuilder | This threat list builder. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | Thrown if |
| System.FormatException | Thrown if |
SetWaitToDate(Nullable<DateTime>)
Set Threat List's Wait to Date.
Declaration
public ThreatListBuilder SetWaitToDate(DateTime? value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Nullable<System.DateTime> | value | The date, in Coordinated Universal Time (UTC), a client must wait to before retrieving the ThreatList from the Google Safe Browsing API again. If the date is not expressed in UTC, it is converted to it. A null reference indicates a client does not need to wait before retrieving the threat list from the Google Safe Browsing API again. |
Returns
| Type | Description |
|---|---|
| ThreatListBuilder | This threat list builder. |