Ambition.Helper.TextCaptcha – ambition Reference Manual
Packages
ambition
Ambition
Helper
TextCaptcha
answers
question
check_existing_answer
get_new_question
TextCaptcha
TextCaptcha.from_serialized
TextCaptcha.test
check_answer
serialize
TextCaptcha
Object Hierarchy:
Description:
public
class
TextCaptcha
:
Object
Helper to provide an interface to TextCaptcha
http://textcaptcha.com
Namespace:
Ambition.Helper
Package:
ambition
Content:
Properties:
public
string
?
question
{
get
; }
Question to be posed to the user.
public
ArrayList
<
string
>
answers
{
get
; }
List of MD5 hashes representing valid answers.
Static methods:
public
static
string
get_new_question
(
State
state)
throws
TextCaptchaError
Static method to retrieve a question for TextCaptcha, and store the instance in the session for later answer-checking.
public
static
bool
check_existing_answer
(
State
state,
string
user_answer)
throws
TextCaptchaError
Static method to check an answer against a question in the session. Throws an error if a question doesn't exist.
Creation methods:
public
TextCaptcha
(
State
state)
throws
TextCaptchaError
Initalize TextCaptcha object with the API key found in the configuration.
public
TextCaptcha.test
(
string
content)
throws
TextCaptchaError
public
TextCaptcha.from_serialized
(
string
serialized)
throws
TextCaptchaError
Initalize TextCaptcha object from serialized data generated from the serialize() method.
Methods:
public
string
serialize
()
Serialize the current TextCaptcha instance as a string.
public
bool
check_answer
(
string
user_answer)
throws
TextCaptchaError
Check a user-provided answer against the correct answers.
Inherited Members:
All known members inherited from class GLib.Object
@new
newv
new_valist
get_type
get_class
@ref
unref
ref_sink
weak_ref
weak_unref
add_weak_pointer
remove_weak_pointer
@get
@set
get_property
set_property
get_data
set_data
set_data_full
steal_data
get_qdata
set_qdata
set_qdata_full
steal_qdata
freeze_notify
thaw_notify
dispose
constructed
notify_property
connect
disconnect
add_toggle_ref
remove_toggle_ref
bind_property
notify
ref_count