/// <summary> /// Request and update the self friends list /// </summary> /// <returns>the async result</returns> protected async override Task <RenrenAyncRespArgs <FriendListEntity> > DoRequest(params object[] args) { string seesionKey = LoginService.Instance.Model.Session_key; string secrectKey = LoginService.Instance.Model.Secret_key; RenrenAyncRespArgs <FriendListEntity> resp = await Renren3GApiWrapper.GetFriendList(seesionKey, secrectKey); return(resp); }
/// <summary> /// Request and update the friends list by uid /// </summary> /// <returns>the async result</returns> protected async override Task <RenrenAyncRespArgs <FriendListEntity> > DoRequestById(int id, params object[] args) { string seesionKey = LoginService.Instance.Model.Session_key; string secrectKey = LoginService.Instance.Model.Secret_key; int page = args.Length > 0 ? (int)args[0] : -1; int pageSize = args.Length > 1 ? (int)args[1] : -1; RenrenAyncRespArgs <FriendListEntity> resp = await Renren3GApiWrapper.GetFriendList(seesionKey, secrectKey, id, page, pageSize); return(resp); }