Class ThreatListUpdateResponseBuilder
Threat List Update Response Builder.
Inheritance
Inherited Members
Namespace: Gee.External.Browsing.Clients
Assembly: Gee.External.Browsing.dll
Syntax
public sealed class ThreatListUpdateResponseBuilder
Methods
AddResult(Func<ThreatListUpdateResultBuilder, ThreatListUpdateResult>)
Add a Result.
Declaration
public ThreatListUpdateResponseBuilder AddResult(Func<ThreatListUpdateResultBuilder, ThreatListUpdateResult> valueAction)
Parameters
Type | Name | Description |
---|---|---|
System.Func<ThreatListUpdateResultBuilder, ThreatListUpdateResult> | valueAction | An action to create a ThreatListUpdateResult indicating a retrieved ThreatList and the threats associated with it that should be added to and removed from the locally stored copy of the threat list. |
Returns
Type | Description |
---|---|
ThreatListUpdateResponseBuilder | This threat list update response builder. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | Thrown if |
Build()
Build a Threat List Update Response.
Declaration
public ThreatListUpdateResponse Build()
Returns
Type | Description |
---|---|
ThreatListUpdateResponse |
SetRequest(ThreatListUpdateRequest)
Set Request.
Declaration
public ThreatListUpdateResponseBuilder SetRequest(ThreatListUpdateRequest value)
Parameters
Type | Name | Description |
---|---|---|
ThreatListUpdateRequest | value | The ThreatListUpdateRequest made to the Google Safe Browsing API for which the threat list update response has been returned. |
Returns
Type | Description |
---|---|
ThreatListUpdateResponseBuilder | This threat list update response builder. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | Thrown if |
SetRequest(Func<ThreatListUpdateRequestBuilder, ThreatListUpdateRequest>)
Set Request.
Declaration
public ThreatListUpdateResponseBuilder SetRequest(Func<ThreatListUpdateRequestBuilder, ThreatListUpdateRequest> valueAction)
Parameters
Type | Name | Description |
---|---|---|
System.Func<ThreatListUpdateRequestBuilder, ThreatListUpdateRequest> | valueAction | An action to create the ThreatListUpdateRequest made to the Google Safe Browsing API for which the threat list update response has been returned. |
Returns
Type | Description |
---|---|
ThreatListUpdateResponseBuilder | This threat list update response builder. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | Thrown if |
SetResults(IEnumerable<ThreatListUpdateResult>)
Set Results.
Declaration
public ThreatListUpdateResponseBuilder SetResults(IEnumerable<ThreatListUpdateResult> value)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<ThreatListUpdateResult> | value | A collection of ThreatListUpdateResult indicating the collection of retrieved ThreatList and the threats associated with them that should be added to and removed from the locally stored copies of the threat lists. A null reference or an empty collection indicates no threat lists were retrieved. |
Returns
Type | Description |
---|---|
ThreatListUpdateResponseBuilder | This threat list update response builder. |