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

📄 systemnotice.java

📁 类似QQ的功能
💻 JAVA
字号:
/******************************************************************************* Jimm - Mobile Messaging - J2ME ICQ clone Copyright (C) 2003-04  Jimm Project This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA. ******************************************************************************** File: src/jimm/comm/SystemNotice.java Version: ###VERSION###  Date: ###DATE### Author(s): Andreas Rossbacher *******************************************************************************/package jimm.comm;import jimm.Options;public class SystemNotice extends Message{	// Types of system messages	public static final int SYS_NOTICE_YOUWEREADDED = 1;	public static final int SYS_NOTICE_AUTHREPLY = 2;	public static final int SYS_NOTICE_AUTHREQ = 3;	public static final int SYS_NOTICE_AUTHORISE = 4;	public static final int SYS_NOTICE_REQUAUTH = 5;	/****************************************************************************/	// Type of the note	private int sysnotetype;	// Was the Authorisation granted	private boolean AUTH_granted;	// What was the reason	private String reason;	// Constructs system notice	public SystemNotice(int _sysnotetype, String _uin, boolean _AUTH_granted,			String _reason)	{		super(Util.createCurrentDate(false), Options				.getString(Options.OPTION_UIN), _uin, MESSAGE_TYPE_AUTO);		sysnotetype = _sysnotetype;		AUTH_granted = _AUTH_granted;		reason = _reason;	}	// Get AUTH_granted	public boolean isAUTH_granted()	{		return AUTH_granted;	}	// Get Reason	public String getText()	{		return reason;	}	// Get Sysnotetype	public int getSysnotetype()	{		return sysnotetype;	}//#sijapp cond.if modules_ANTISPAM="true"#		public boolean needCheckForSpam()	{		return (sysnotetype == SYS_NOTICE_AUTHREQ);	}//#sijapp cond.end#	}

⌨️ 快捷键说明

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