Exemplo 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();
 }
Exemplo 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();
 }
Exemplo 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);
 }
Exemplo 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();
 }
Exemplo 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();
 }
Exemplo 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();
 }
Exemplo 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);
        }
Exemplo 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();
        }