Class FullHashRequestBuilder
Full Hash Request Builder.
Inheritance
Inherited Members
Namespace: Gee.External.Browsing.Clients
Assembly: Gee.External.Browsing.dll
Syntax
public sealed class FullHashRequestBuilder
Methods
AddQuery(FullHashQuery)
Add a Query.
Declaration
public FullHashRequestBuilder AddQuery(FullHashQuery value)
Parameters
Type | Name | Description |
---|---|---|
FullHashQuery | value | A FullHashQuery indicating a ThreatList to query. |
Returns
Type | Description |
---|---|
FullHashRequestBuilder | This full hash request builder. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | Thrown if |
AddQuery(ThreatListDescriptor, String)
Add a Query.
Declaration
public FullHashRequestBuilder AddQuery(ThreatListDescriptor threatListDescriptor, string threatListState)
Parameters
Type | Name | Description |
---|---|---|
ThreatListDescriptor | threatListDescriptor | A ThreatListDescriptor identifying the ThreatList to query. |
System.String | threatListState | The state, formatted as a hexadecimal encoded string, of the ThreatList identified by
|
Returns
Type | Description |
---|---|
FullHashRequestBuilder | This full hash request builder. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | Thrown if |
System.FormatException | Thrown if |
AddQuery(ThreatType, PlatformType, ThreatEntryType, String)
Add Query.
Declaration
public FullHashRequestBuilder AddQuery(ThreatType threatType, PlatformType platformType, ThreatEntryType threatEntryType, string threatListState)
Parameters
Type | Name | Description |
---|---|---|
ThreatType | threatType | A ThreatType identifying the ThreatList to query. |
PlatformType | platformType | A PlatformType identifying the ThreatList to query. |
ThreatEntryType | threatEntryType | A ThreatEntryType identifying the ThreatList to query. |
System.String | threatListState | The state, formatted as a hexadecimal encoded string, of the ThreatList identified by
|
Returns
Type | Description |
---|---|
FullHashRequestBuilder | This full hash request builder. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | Thrown if |
System.FormatException | Thrown if |
AddSha256HashPrefix(String)
Add a SHA256 Hash Prefix.
Declaration
public FullHashRequestBuilder AddSha256HashPrefix(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | A SHA256 hash prefix, formatted as hexadecimal encoded string, identifying a threat to query. |
Returns
Type | Description |
---|---|
FullHashRequestBuilder | This full hash request builder. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | Thrown if |
System.FormatException | Thrown if |
Build()
Build a Full Hash Request.
Declaration
public FullHashRequest Build()
Returns
Type | Description |
---|---|
FullHashRequest |
SetClientMetadata(ClientMetadata)
Set Client Metadata.
Declaration
public FullHashRequestBuilder SetClientMetadata(ClientMetadata value)
Parameters
Type | Name | Description |
---|---|---|
ClientMetadata | value | The ClientMetadata of the client making the full hash request. A null reference indicates the metadata of the client is unknown. |
Returns
Type | Description |
---|---|
FullHashRequestBuilder | This full hash request builder. |
SetClientMetadata(String, Int32, Int32, Int32)
Set Client Metadata.
Declaration
public FullHashRequestBuilder SetClientMetadata(string id, int majorVersion, int minorVersion, int patchVersion)
Parameters
Type | Name | Description |
---|---|---|
System.String | id | A unique identifier identifying the client. |
System.Int32 | majorVersion | The client's major version. |
System.Int32 | minorVersion | The client's minor version. |
System.Int32 | patchVersion | The client's patch version. |
Returns
Type | Description |
---|---|
FullHashRequestBuilder | This full hash request builder. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Thrown if |
System.ArgumentNullException | Thrown if |
System.ArgumentOutOfRangeException | Thrown if |