类 com.baidu.sapi2.social.config.SocialType
的使用

使用 SocialType 的软件包
com.baidu.sapi2   
com.baidu.sapi2.loginshare   
com.baidu.sapi2.social.config   
com.baidu.sapi2.social.model   
com.baidu.sapi2.social.utils   
 

com.baidu.sapi2SocialType 的使用
 

参数类型为 SocialTypecom.baidu.sapi2 中的方法
 SocialResponse SapiHelper.authResult(String html, SocialType socialType)
          解析页面返回结果,并进行互通
 String SapiHelper.getSocialBindUrl(SocialType socialType)
          获取第三方帐号绑定的加载地址
 String SapiHelper.getSocialBindUrl(SocialType socialType, String accessToken, String osuid)
          获取SSO开始绑定请求地址
 

com.baidu.sapi2.loginshareSocialType 的使用
 

类型参数类型为 SocialTypecom.baidu.sapi2.loginshare 中的字段
 HashMap<SocialType,SocialToken> Token.socialTokenMap
          绑定的第三方帐号列表
 

com.baidu.sapi2.social.configSocialType 的使用
 

返回 SocialTypecom.baidu.sapi2.social.config 中的方法
static SocialType SocialType.getSocialType(int type)
           
static SocialType SocialType.valueOf(String name)
          返回带有指定名称的该类型的枚举常量。
static SocialType[] SocialType.values()
          按照声明该枚举类型的常量的顺序,返回 包含这些常量的数组。
 

com.baidu.sapi2.social.modelSocialType 的使用
 

声明为 SocialTypecom.baidu.sapi2.social.model 中的字段
 SocialType SocialToken.type
          绑定的是哪个第三方帐号
 

返回 SocialTypecom.baidu.sapi2.social.model 中的方法
 SocialType SocialResponse.getSocial_type()
           
 

参数类型为 SocialTypecom.baidu.sapi2.social.model 中的方法
 void SocialResponse.setSocial_type(SocialType social_type)
           
 

参数类型为 SocialTypecom.baidu.sapi2.social.model 中的构造方法
SocialResponse(int errorCode, String errorMsg, String dispayname, String bduid, String ptoken, boolean isBinded, String bduss, String baidu_uname, String social_uname, Sex social_sex, String social_headurl, SocialType social_type)
          Construct function
 

com.baidu.sapi2.social.utilsSocialType 的使用
 

参数类型为 SocialTypecom.baidu.sapi2.social.utils 中的方法
 SocialResponse SocialHelper.authResult(String html, SocialType socialType)
          获得帐号授权结果
 String SocialHelper.getUrlBind(SocialType type)
          获取开始绑定请求地址
 String SocialHelper.getUrlBind(SocialType type, String accessToken, String osuid)
          获取SSO开始绑定请求地址
 



Copyright © 2013. All Rights Reserved.