WEB开发网
开发学院软件开发Java 邀请QQ好友-QQ联系人导入(上) 阅读

邀请QQ好友-QQ联系人导入(上)

 2009-09-06 00:00:00 来源:WEB开发网   
核心提示: ---AuthInfo.javaJava代码 packageqq;importjava.util.HashMap;importjava.util.Map;publicclassAuthInfo{publicstaticfinalStringPP="pp";publicstat

---------------AuthInfo.java----------------------------

Java代码

package qq; 
 
import java.util.HashMap; 
import java.util.Map; 
 
public class AuthInfo { 
  public static final String PP = "pp"; 
  public static final String START_TIME = "starttime"; 
  public static final String TS = "ts"; 
  public static final String UIN = "uin"; 
  public static final String VERIFY_CODE = "verifycode"; 
  public static final String P = "p"; 
  public static final String COOKIE = "cookie"; 
  public static final String DOMAIN = "domain"; 
   
  private HashMap<String, String> param = new HashMap<String,String>(); 
   
  public AuthInfo(){ 
   putParam("aliastype", "@qq.com"); 
   putParam("firstlogin", "false"); 
   putParam("redirecturl", ""); 
   putParam("sid", "0,2,zh_CN"); 
   putParam("delegate_url", ""); 
   putParam("from", ""); 
   putParam("f", ""); 
   putParam("s", ""); 
  } 
   
   
  public void putParam(String key, String value){ 
   param.put(key, value); 
  } 
   
  public String getParam(String key){ 
   return param.get(key); 
  } 
   
 @SuppressWarnings("unchecked") 
 public Map<String, String> getParam() { 
 return (Map<String, String>) param.clone(); 
 } 
 
} 
 

上一页  1 2 3 4 5 6 7  下一页

Tags:邀请 QQ 好友

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接