using System;
namespace Asterisk.NET.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
{
private string family;
private string key;
private string val;
override public string Action
{
get { return "DBPut"; }
}
///
/// Get/Set the family of the key to set.
///
public string Family
{
get { return this.family; }
set { this.family = value; }
}
///
/// Get/Set the the key to set.
///
public string Key
{
get { return this.key; }
set { this.key = value; }
}
///
/// Get/Set the value to set.
///
public string Val
{
get { return val; }
set { this.val = value; }
}
///
/// 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)
{
this.family = family;
this.key = key;
this.val = val;
}
}
}