/* * Copyright 2004-2006 Stefan Reuter * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ package org.asteriskjava.manager.event; /** * A NewAccountCodeEvent indicates that the account code used for CDR has * changed.<p> * Available since Asterisk 1.6.<p> * It is implemented in <code>main/cdr.c</code> * * @author srt * @version $Id: NewAccountCodeEvent.java 1061 2008-05-20 07:18:17Z srt $ * @since 1.0.0 */ public class NewAccountCodeEvent extends ManagerEvent { private String channel; private String uniqueId; private String accountCode; private String oldAccountCode; /** * @param source */ public NewAccountCodeEvent(Object source) { super(source); } /** * Returns the name of the channel. * * @return the name of the channel. */ public String getChannel() { return channel; } public void setChannel(String channel) { this.channel = channel; } /** * Returns the unique id of the channel. * * @return the unique id of the channel. */ public String getUniqueId() { return uniqueId; } public void setUniqueId(String uniqueId) { this.uniqueId = uniqueId; } /** * Returns the new account code. * * @return the new account code. */ public String getAccountCode() { return accountCode; } public void setAccountCode(String accountCode) { this.accountCode = accountCode; } /** * Returns the old account code. * * @return the old account code. */ public String getOldAccountCode() { return oldAccountCode; } public void setOldAccountCode(String oldAccountCode) { this.oldAccountCode = oldAccountCode; } }