icqcontact.java

来自「一个类似QQ的在线通讯聊天软件原码,适合初学者参考学习。」· Java 代码 · 共 50 行

JAVA
50
字号
package openicq.management;

import JOscarLib.Management.Contact;

/**
 * The <code>ICQContact</code> class extends the <code>Contact</code> class
 * with ICQ specific contact data.
 * @author Hansgeorg Schwibbe
 * @copyright 2004
 */
public class ICQContact extends Contact
{
  private boolean authorization;

  /**
   * Initializes a new instance of the class <code>ICQContact</code>.
   */
  public ICQContact()
  {
    super();
  }

  /**
   * Initializes a new instance of the class <code>ICQContact</code> with the
   * specified contact ID.
   * @param contactId
   */
  public ICQContact(String contactId)
  {
    super(contactId);
  }

  /**
   * Returns the contacts authorization flag.
   * @return true if an authorisation is required
   */
  public boolean getAuthorizationRequired()
  {
    return authorization;
  }

  /**
   * Sets the contacts authorization flag.
   * @param required if an authorisation is required
   */
  public void setAuthorizationRequired(boolean required)
  {
    this.authorization = required;
  }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?