Свойство | Type | Description | |
---|---|---|---|
PossibleImageOptions | string>.ImmutableDictionary | ||
ValidAudioOption | string>.KeyValuePair | ||
ValidImageOption | string>.KeyValuePair |
Méthode | Description | |
---|---|---|
Captcha ( int numberOfImageOptions ) : System |
Instantiate a Captcha session with an assortment of possible image selections and an audio option for accessibility
|
|
GetAudio ( string type ) : byte[] |
Get file content for audio Captcha option
|
|
GetFrontEndData ( ) : |
Retrieve object containing information needed by client-side library
|
|
GetImage ( int index, bool isRetina ) : byte[] |
Get file content for image Captcha option
|
|
ValidateAnswer ( string answerValue ) : bool |
Answer value is valid for either image or audio option
|
Méthode | Description | |
---|---|---|
GetRandomImageOptions ( int numberOfOptions ) : string>.ImmutableDictionary |
||
GetRandomOption ( string>.ICollection |
||
IsValidAudio ( string value ) : bool | ||
IsValidImage ( string hashedPath ) : bool | ||
ReadResource ( string optionPath ) : byte[] |
public Captcha ( int numberOfImageOptions ) : System | ||
numberOfImageOptions | int | |
Résultat | System |
public GetAudio ( string type ) : byte[] | ||
type | string | Either mp3 or ogg |
Résultat | byte[] |
public GetImage ( int index, bool isRetina ) : byte[] | ||
index | int | Image index |
isRetina | bool | Uses Retina display |
Résultat | byte[] |
public ValidateAnswer ( string answerValue ) : bool | ||
answerValue | string | This could be the hashed value of the image path or the answer to an audio question |
Résultat | bool |
public ImmutableDictionary |
||
Résultat | string>.ImmutableDictionary |
public KeyValuePair |
||
Résultat | string>.KeyValuePair |