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


C# clsDBQueryManager.SelectUnFollowedUsername_List方法代码示例

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


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

示例1: FollowUsingURLs


//.........这里部分代码省略.........
                            //    user_id = user_id_toFollow;
                            //    DataSet ds = DB.GetUserName(user_id_toFollow);
                            //    if (ds.Tables[0].Rows.Count > 0)
                            //    {
                            //        foreach (DataRow dataRow in ds.Tables["tb_UsernameDetails"].Rows)
                            //        {
                            //            user_id = dataRow.ItemArray[0].ToString();
                            //        }
                            //    }
                            //}
                            //else
                            //{
                            //    user_id = string.Empty;
                            //    Log("Please enter Valid user Id Or Screan name.  ");
                            //}
                            #endregion

                            #region get check unfollow befor
                            if (TweetAccountManager.UseUnfollowedBeforeFilter)
                            {
                                List<string> lst_AlreadyExist = new List<string>();
                                if (frmMain_NewUI.IsFollowerScreenName)
                                {
                                    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;
                            }
开发者ID:ahmetDostr,项目名称:twtboard,代码行数:67,代码来源:TweetAccountManager.cs


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