asternet/Asterisk.2013/Asterisk.NET/Manager/Action/AOCMessageAction.cs

83 lines
2.9 KiB
C#
Raw Normal View History

2015-01-03 15:37:29 +00:00
namespace AsterNET.Manager.Action
{
public class AOCMessageAction : ManagerAction
{
/// <summary>
2015-01-03 15:37:29 +00:00
/// Generate an Advice of Charge message on a channel.
/// </summary>
public AOCMessageAction()
{
}
/// <summary>
2015-01-03 15:37:29 +00:00
/// Generate an Advice of Charge message on a channel.
/// </summary>
/// <param name="channel"></param>
/// <param name="channelPrefix"></param>
/// <param name="msgType"></param>
/// <param name="chargeType"></param>
/// <param name="unitAmount"></param>
/// <param name="unitType"></param>
/// <param name="currencyName"></param>
/// <param name="currencyAmount"></param>
/// <param name="currencyMultiplier"></param>
/// <param name="totalType"></param>
/// <param name="aocBillingId"></param>
/// <param name="chargingAssociationId"></param>
/// <param name="chargingAssociationNumber"></param>
/// <param name="chargingrAssociationPlan"></param>
2015-01-03 15:37:29 +00:00
public AOCMessageAction(string channel, string channelPrefix, string msgType, string chargeType, int unitAmount,
int unitType, string currencyName, string currencyAmount, string currencyMultiplier, string totalType,
string aocBillingId, string chargingAssociationId, string chargingAssociationNumber,
string chargingrAssociationPlan)
{
Channel = channel;
ChannelPrefix = channelPrefix;
MsgType = msgType;
ChargeType = chargeType;
UnitAmount = unitAmount;
UnitType = unitType;
CurrencyName = currencyName;
CurrencyAmount = currencyAmount;
CurrencyMultiplier = currencyMultiplier;
TotalType = totalType;
AocBillingId = aocBillingId;
ChargingAssociationId = chargingAssociationId;
ChargingAssociationNumber = chargingAssociationNumber;
ChargingrAssociationPlan = chargingrAssociationPlan;
}
public override string Action
{
get { return "AOCMessage"; }
}
2015-01-03 15:37:29 +00:00
public string Channel { get; set; }
2015-01-03 15:37:29 +00:00
public string ChannelPrefix { get; set; }
2015-01-03 15:37:29 +00:00
public string MsgType { get; set; }
2015-01-03 15:37:29 +00:00
public string ChargeType { get; set; }
2015-01-03 15:37:29 +00:00
public int UnitAmount { get; set; }
2015-01-03 15:37:29 +00:00
public int UnitType { get; set; }
2015-01-03 15:37:29 +00:00
public string CurrencyName { get; set; }
2015-01-03 15:37:29 +00:00
public string CurrencyAmount { get; set; }
2015-01-03 15:37:29 +00:00
public string CurrencyMultiplier { get; set; }
2015-01-03 15:37:29 +00:00
public string TotalType { get; set; }
2015-01-03 15:37:29 +00:00
public string AocBillingId { get; set; }
2015-01-03 15:37:29 +00:00
public string ChargingAssociationId { get; set; }
2015-01-03 15:37:29 +00:00
public string ChargingAssociationNumber { get; set; }
2015-01-03 15:37:29 +00:00
public string ChargingrAssociationPlan { get; set; }
}
2015-01-03 15:37:29 +00:00
}