Ejemplo n.º 1
0
 /// <summary>
 /// 构造
 /// </summary>
 /// <param name="apiKey"></param>
 public RenrenSDK(string appID, string apiKey, string secretKey)
 {
     ConstantValue.AppID = appID;
     ConstantValue.ApiKey = apiKey;
     ConstantValue.SecretKey = secretKey;
     friendBS = new FriendBS();
     getUserInfoBS = new GetUserInfoBS();
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 构造
 /// </summary>
 /// <param name="apiKey"></param>
 public RenrenSDK(string appID, string apiKey, string secretKey)
 {
     ConstantValue.AppID     = appID;
     ConstantValue.ApiKey    = apiKey;
     ConstantValue.SecretKey = secretKey;
     friendBS      = new FriendBS();
     getUserInfoBS = new GetUserInfoBS();
 }
Ejemplo n.º 3
0
 /// <summary>
 /// 获取指定用户信息
 /// </summary>
 /// <param name="sessionkey">指定用户的uid,可以是多个uid中间用逗号隔开</param>
 /// <param name="callback">回调</param>
 public void GetUserInfo(string uid, List <string> scope, GetUserInfoCompletedHandler callback)
 {
     if (getUserInfoBS == null)
     {
         getUserInfoBS = new GetUserInfoBS();
     }
     getUserInfoBS.ClearGetUserInfoEvent();
     getUserInfoBS.GetUserInfoCompleted += callback;
     getUserInfoBS.GetUsersID(uid, scope);
 }
Ejemplo n.º 4
0
 /// <summary>
 /// 获取当前用户信息
 /// </summary>
 /// <param name="callback">回调</param>
 public void GetCurUserInfo(GetCurUserInfoCompletedHandler callback)
 {
     if (getUserInfoBS == null)
     {
         getUserInfoBS = new GetUserInfoBS();
     }
     getUserInfoBS.ClearGetCurUserInfoEvent();
     getUserInfoBS.GetCurUserInfoCompleted += callback;
     getUserInfoBS.GetCurUserID();
 }
Ejemplo n.º 5
0
 /// <summary>
 /// 清空信息
 /// </summary>
 public void LogOut()
 {
     loginBS       = null;
     friendBS      = null;
     loginViewBS   = null;
     uploadBS      = null;
     getUserInfoBS = null;
     getAlbumsBS   = null;
     createAlbumBS = null;
     apiRequestBS  = null;
     RenrenInfo.CleanUp();
 }
Ejemplo n.º 6
0
 /// <summary>
 /// 清空信息
 /// </summary>
 public void LogOut()
 {
     loginBS = null;
     friendBS = null;
     loginViewBS = null;
     uploadBS = null;
     getUserInfoBS = null;
     getAlbumsBS = null;
     createAlbumBS = null;
     apiRequestBS = null;
     RenrenInfo.CleanUp();
 }
Ejemplo n.º 7
0
        /// <summary>
        /// 获取指定用户信息
        /// </summary>
        /// <param name="sessionkey">指定用户的uid,可以是多个uid中间用逗号隔开</param>
        /// <param name="callback">回调</param>
        public void GetUserInfo(string uid, List<string> scope, GetUserInfoCompletedHandler callback)
        {
            if (getUserInfoBS == null)
            {
                getUserInfoBS = new GetUserInfoBS();

            }
            getUserInfoBS.ClearGetUserInfoEvent();
            getUserInfoBS.GetUserInfoCompleted += callback;
            getUserInfoBS.GetUsersID(uid, scope);
        }
Ejemplo n.º 8
0
        /// <summary>
        /// 获取当前用户信息
        /// </summary>
        /// <param name="callback">回调</param>
        public void GetCurUserInfo(GetCurUserInfoCompletedHandler callback)
        {
            if (getUserInfoBS == null)
            {
                getUserInfoBS = new GetUserInfoBS();

            }
            getUserInfoBS.ClearGetCurUserInfoEvent();
            getUserInfoBS.GetCurUserInfoCompleted += callback;
            getUserInfoBS.GetCurUserID();
        }