本文整理汇总了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)
{