org.asteriskjava.manager.action.SkypeRemoveBuddyAction Maven / Gradle / Ivy
Show all versions of asterisk-java Show documentation
/*
* 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.action;
/**
* The SkypeRemoveBuddyAction removes a buddy from the buddy list of a Skype for Asterisk user.
* Available with Skype for Asterisk.
*
* @since 1.0.0
*/
public class SkypeRemoveBuddyAction extends AbstractManagerAction
{
/**
* Serializable version identifier
*/
static final long serialVersionUID = 1L;
private String user;
private String buddy;
/**
* Creates a new SkypeRemoveBuddyAction.
*/
public SkypeRemoveBuddyAction()
{
}
/**
* Creates a new SkypeRemoveBuddyAction that removes the given buddy from the given Skype for
* Asterisk user's buddy list.
*
* @param user the Skype username of the user to add the buddy to.
* @param buddy the Skype username of the buddy.
*/
public SkypeRemoveBuddyAction(String user, String buddy)
{
this.user = user;
this.buddy = buddy;
}
/**
* Returns the Skype username of the Skype for Asterisk user.
* This property is mandatory.
*
* @return the Skype username of the Skype for Asterisk user.
*/
public String getUser()
{
return user;
}
/**
* Sets the Skype username of the Skype for Asterisk user.
*
* @param user the Skype username of the Skype for Asterisk user.
*/
public void setUser(String user)
{
this.user = user;
}
/**
* Returns the Skype username of the buddy.
*
* @return the Skype username of the buddy.
*/
public String getBuddy()
{
return buddy;
}
/**
* Sets the Skype username of the buddy.
* This property is mandatory.
*
* @param buddy the Skype username of the buddy.
*/
public void setBuddy(String buddy)
{
this.buddy = buddy;
}
/**
* Returns the name of this action, i.e. "SkypeRemoveBuddy".
*/
@Override
public String getAction()
{
return "SkypeRemoveBuddy";
}
}