namespace AsterNET.Manager.Action
{
///
/// Adds or updates an entry in the Asterisk database for a given family, key, and value.
/// Available since Asterisk 1.2
///
public class DBPutAction : ManagerAction
{
///
/// Creates a new empty DBPutAction.
///
public DBPutAction()
{
}
///
/// Creates a new DBPutAction that sets the value of the database entry with the given key in the given family.
///
/// the family of the key
/// the key of the entry to set
/// the value to set
public DBPutAction(string family, string key, string val)
{
Family = family;
Key = key;
Val = val;
}
public override string Action
{
get { return "DBPut"; }
}
///
/// Get/Set the family of the key to set.
///
public string Family { get; set; }
///
/// Get/Set the the key to set.
///
public string Key { get; set; }
///
/// Get/Set the value to set.
///
public string Val { get; set; }
}
}