⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 icqcontact.java

📁 一个类似QQ的在线通讯聊天软件原码,适合初学者参考学习。
💻 JAVA
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -