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


C# clsDBQueryManager.InsertUpdateFollowTable方法代码示例

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


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

示例1: FollowUsingURLs


//.........这里部分代码省略.........
                                            Log("[ " + DateTime.Now + " ] => [ Adding Follower in DataBase ]");
                                            string query = "INSERT INTO tb_CampaignReport (Campaign_Name, UserName, Follower , ScreenName) VALUES ('" + Globals.Campaign_Name + "', '" + Username + "', '" + user_id + "' , '" + Screen_name + "')";
                                            DataBaseHandler.InsertQuery(query, "tb_CampaignReport");
                                            GlobusFileHelper.AppendStringToTextfileNewLine(Username + ":" + Password + ":" + user_id + ":" + Screen_name + ":" + proxyAddress + ":" + proxyPort + ":" + proxyUsername + ":" + proxyPassword, Globals.path_SuccessfullyFollowAccounts);
                                        }
                                    }
                                }
                                else
                                {
                                    follower.FollowUsingProfileID_New(ref globusHttpHelper, pgSrc_Profile, postAuthenticityToken, user_id_toFollow, out followStatus);
                                    if (followStatus == "followed")
                                    {
                                        Globals.totalcountFollower++;
                                        counterChecktotlaFollowr++;
                                        Log("[ " + DateTime.Now + " ] => [ >> Followed >> " + user_id_toFollow + " by " + Username + " ]");

                                        //Adding in text File FOr SuccessFull Paths
                                        GlobusFileHelper.AppendStringToTextfileNewLine(Username + ":" + Password + ":" + user_id_toFollow + ":" + proxyAddress + ":" + proxyPort + ":" + proxyUsername + ":" + proxyPassword, Globals.path_SuccessfullyFollowAccounts);
                                        try
                                        {
                                            string username = string.Empty;
                                            string userid = string.Empty;
                                            if (NumberHelper.ValidateNumber(user_id_toFollow))
                                            {
                                                username = TwitterSignup.TwitterSignup_TwitterDataScrapper.GetUserNameFromUserId(user_id_toFollow);
                                                userid = user_id_toFollow;
                                            }
                                            else
                                            {
                                                string outStatus = string.Empty;
                                                userid = TwitterSignup.TwitterSignup_TwitterDataScrapper.GetUserIDFromUsername(user_id_toFollow, out outStatus);
                                                username = user_id_toFollow;
                                            }
                                            queryManager.InsertUpdateFollowTable(Username, userid, username);
                                        }
                                        catch (Exception)
                                        {
                                        }

                                        try
                                        {
                                            RemoveFollwerFromTxtFile(FileFollowUrlPath, user_id_toFollow);
                                        }
                                        catch { }
                                    }
                                    else if (followStatus == "Already Followed")
                                    {
                                        Globals.totalcountFollower++;
                                        Log("[ " + DateTime.Now + " ] => [ >> Already Followed >> " + user_id_toFollow + " by " + Username + " ]");
                                        try
                                        {
                                            RemoveFollwerFromTxtFile(FileFollowUrlPath, user_id_toFollow);
                                        }
                                        catch { }
                                    }
                                    else
                                    {
                                        Log("[ " + DateTime.Now + " ] => [ >> Couldn't Follow >> " + user_id_toFollow + " by " + Username + " ]");
                                        //Adding in text File for Failed Followed Paths
                                        GlobusFileHelper.AppendStringToTextfileNewLine(Username + ":" + Password + ":" + user_id + ":" + Screen_name + ":" + proxyAddress + ":" + proxyPort + ":" + proxyUsername + ":" + proxyPassword, Globals.path_FailedToFollowAccounts);
                                    }

                                    //if user is check fast follow option then delay is not working on that condition ...!!

                                    if (!frmMain_NewUI.IsFastfollow)
                                    {
开发者ID:ahmetDostr,项目名称:twtboard,代码行数:67,代码来源:TweetAccountManager.cs


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