mirror of https://github.com/sipwise/jitsi.git
1. statuses of new subscribtions 2. moving contacts 3. no metter how you register or add contacts with or without @yahoo.comcusax-fix
parent
929aa6838c
commit
0c193925e1
@ -1,81 +0,0 @@
|
||||
/*
|
||||
* SIP Communicator, the OpenSource Java VoIP and Instant Messaging client.
|
||||
*
|
||||
* Distributable under LGPL license.
|
||||
* See terms of license at gnu.org.
|
||||
*/
|
||||
package net.java.sip.communicator.impl.protocol.yahoo;
|
||||
|
||||
import net.java.sip.communicator.util.Logger;
|
||||
|
||||
/**
|
||||
* The Yahoo implementation for Volatile Contact
|
||||
* @author Damian Minkov
|
||||
*/
|
||||
public class VolatileContactYahooImpl
|
||||
extends ContactYahooImpl
|
||||
{
|
||||
/**
|
||||
* This contact id
|
||||
*/
|
||||
private String contactId = null;
|
||||
/**
|
||||
* Creates an Volatile YahooContactImpl with the specified id
|
||||
* @param id String the user id/address
|
||||
* @param ssclCallback a reference to the ServerStoredContactListImpl
|
||||
* instance that created us.
|
||||
*/
|
||||
VolatileContactYahooImpl(String id,
|
||||
ServerStoredContactListYahooImpl ssclCallback)
|
||||
{
|
||||
super(id, ssclCallback, false);
|
||||
this.contactId = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the Yahoo Userid of this contact
|
||||
* @return the Yahoo Userid of this contact
|
||||
*/
|
||||
public String getAddress()
|
||||
{
|
||||
return contactId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a String that could be used by any user interacting modules for
|
||||
* referring to this contact. An alias is not necessarily unique but is
|
||||
* often more human readable than an address (or id).
|
||||
* @return a String that can be used for referring to this contact when
|
||||
* interacting with the user.
|
||||
*/
|
||||
public String getDisplayName()
|
||||
{
|
||||
return contactId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a string representation of this contact, containing most of its
|
||||
* representative details.
|
||||
*
|
||||
* @return a string representation of this contact.
|
||||
*/
|
||||
public String toString()
|
||||
{
|
||||
StringBuffer buff = new StringBuffer("VolatileYahooContact[ id=");
|
||||
buff.append(getAddress()).append("]");
|
||||
|
||||
return buff.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Determines whether or not this contact group is being stored by the
|
||||
* server. Non persistent contact groups exist for the sole purpose of
|
||||
* containing non persistent contacts.
|
||||
* @return true if the contact group is persistent and false otherwise.
|
||||
*/
|
||||
public boolean isPersistent()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Reference in new issue