当前位置: 首页>>代码示例>>C#>>正文


C# clsDBQueryManager.SelectFollowDUsername_List方法代码示例

本文整理汇总了C#中BaseLib.clsDBQueryManager.SelectFollowDUsername_List方法的典型用法代码示例。如果您正苦于以下问题:C# clsDBQueryManager.SelectFollowDUsername_List方法的具体用法?C# clsDBQueryManager.SelectFollowDUsername_List怎么用?C# clsDBQueryManager.SelectFollowDUsername_List使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在BaseLib.clsDBQueryManager的用法示例。


在下文中一共展示了clsDBQueryManager.SelectFollowDUsername_List方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: FollowUsingURLs


//.........这里部分代码省略.........
                                    lst_AlreadyExist = DB.SelectUnFollowDUsernameID_List(Username);
                                    bool isAlreadyExist = lst_AlreadyExist.Exists(s => (s == user_id_toFollow));
                                    if (isAlreadyExist)
                                    {
                                        Log("[ " + DateTime.Now + " ] => [ " + user_id_toFollow + " Is already Unfollowed before from " + Username + " ]");
                                        continue;
                                    }
                                }
                                else if (frmMain_NewUI.IsfollowerUserId && BaseLib.NumberHelper.ValidateNumber(user_id_toFollow))
                                {
                                    lst_AlreadyExist = DB.SelectUnFollowedUsername_List(Username);
                                    bool isAlreadyExist = lst_AlreadyExist.Exists(s => (s == user_id_toFollow));
                                    if (isAlreadyExist)
                                    {
                                        Log("[ " + DateTime.Now + " ] => [ " + user_id_toFollow + " Is already Unfollowed before from " + Username + " ]");
                                        continue;
                                    }
                                }
                            }

                            #endregion

                            ///Counter For Follow
                            NoOfFollowCounter++;

                            //Check if user_id_toFollow is already being followed or not

                            #region user_id_toFollow is already being followed or not

                            bool isAlreadyFollowed = false;
                            Log("[ " + DateTime.Now + " ] => [ Checking For Already Followed For " + user_id_toFollow + " From " + Username + " ]");
                            if (frmMain_NewUI.IsFollowerScreenName)
                            {
                                lst_AlreadyUserName = queryManager.SelectFollowDUsername_List(Username);
                                isAlreadyFollowed = lst_AlreadyUserName.Exists(s => (s == user_id_toFollow));
                                Screen_name = user_id_toFollow;
                            }
                            else if (frmMain_NewUI.IsfollowerUserId && BaseLib.NumberHelper.ValidateNumber(user_id_toFollow))
                            {
                                lst_AlreadyUserid = queryManager.SelectFollowDUsernameID_List(Username);
                                isAlreadyFollowed = lst_AlreadyUserid.Exists(s => (s == user_id_toFollow));
                                user_id = user_id_toFollow;
                            }
                            else
                            {
                                Log("[ " + DateTime.Now + " ] => [ UserId/ScreenName Not In Correct Format :- " + user_id_toFollow + " ]");
                                return;
                            }

                            #endregion

                            if (!isAlreadyFollowed)  //If not already being followed, follow now
                            {
                                ///Use FollowingsFollowers Ratio Filter
                                if (UseRatioFilter)
                                {
                                    int FollowingsFollowersRatio_user_id = 0;

                                    //Check FollowingsFollowers Ratio of this user_id
                                    try
                                    {
                                        string returnstatusFollower = string.Empty;
                                        string returnstatusFollowing = string.Empty;
                                        List<string> Following = dataScrapper.GetFollowings(user_id, out returnstatusFollowing);
                                        List<string> Follower = dataScrapper.GetFollowers(user_id, out returnstatusFollower);
                                        int count_Followings_user_id = Following.Count;
开发者ID:ahmetDostr,项目名称:twtboard,代码行数:67,代码来源:TweetAccountManager.cs


注:本文中的BaseLib.clsDBQueryManager.SelectFollowDUsername_List方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。