Skip to content

Commit

Permalink
socioboard 3.0
Browse files Browse the repository at this point in the history
github commit
-----------------
1.Introduce new option UI
2.Any time disable your account
3.can find out your current plan details and upgrade plan
4.introduce offer option in menu
5.introduce apps option in menu
6.restrict user for basic plan
7.new help option in menu
8.introduce new email setting
9.introduce new change password option
10.new feature in feeds like and comment count in facebook
11.new feature in feeds like and comment count in Twitter
12.new feature in feeds like and comment count in gplus
13.chrome extentions issue fixed
14.linkdin feeds issue fixed
15.verifications issue in email fixed
16.Socioboard youtube report video list images thumbnails size issue
fixed
17.Socioboard landing page enterprise download issue fixed
18.Instagram reports loading issue fixed
19.Sent message list default dot issue fixed
20.Facebook feeds task assign null acception issue fixed
21.Page shareathon and Group shareathon edit model text issue fixed
22.Profiles linked in account and page name title issue fixed
23.Smart inbox notification is meesages not showing issue fixed
24.Inbox message notification showing blank page issue fixed
25.Implemented schedule messages updates
26.Implemented socioqueue multiple select option operations
27.Updated UI for subscription to email notification
28.pinterest api implementation.
29.2-step login implementation.
30.unlimited session integration.
31.This is a list of devices that have used your account within the past
2 weeks. If there are any sessions you do not recognize, click the
"Revoke" button to log them out
  • Loading branch information
socioboard committed Jun 27, 2017
1 parent eecbee2 commit 4bc0853
Show file tree
Hide file tree
Showing 302 changed files with 15,091 additions and 825 deletions.
Binary file modified .vs/Socioboard/v14/.suo
Binary file not shown.
15 changes: 8 additions & 7 deletions .vs/restore.dg
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#:E:\D DRIVE\socioboardgithub\githubUpdated\Socioboard-Core-3.0\src\Api.Socioboard\Api.Socioboard.xproj
E:\D DRIVE\socioboardgithub\githubUpdated\Socioboard-Core-3.0\src\Api.Socioboard\Api.Socioboard.xproj|E:\D DRIVE\socioboardgithub\githubUpdated\Socioboard-Core-3.0\src\Domain.Socioboard\Domain.Socioboard.xproj
E:\D DRIVE\socioboardgithub\githubUpdated\Socioboard-Core-3.0\src\Api.Socioboard\Api.Socioboard.xproj|E:\D DRIVE\socioboardgithub\githubUpdated\Socioboard-Core-3.0\src\Socioboard.Facebook\Socioboard.Facebook.xproj
E:\D DRIVE\socioboardgithub\githubUpdated\Socioboard-Core-3.0\src\Api.Socioboard\Api.Socioboard.xproj|E:\D DRIVE\socioboardgithub\githubUpdated\Socioboard-Core-3.0\src\Socioboard.Google\Socioboard.Google.xproj
E:\D DRIVE\socioboardgithub\githubUpdated\Socioboard-Core-3.0\src\Api.Socioboard\Api.Socioboard.xproj|E:\D DRIVE\socioboardgithub\githubUpdated\Socioboard-Core-3.0\src\Socioboard.Instagram\Socioboard.Instagram.xproj
E:\D DRIVE\socioboardgithub\githubUpdated\Socioboard-Core-3.0\src\Api.Socioboard\Api.Socioboard.xproj|E:\D DRIVE\socioboardgithub\githubUpdated\Socioboard-Core-3.0\src\Socioboard.LinkedIn\Socioboard.LinkedIn.xproj
E:\D DRIVE\socioboardgithub\githubUpdated\Socioboard-Core-3.0\src\Api.Socioboard\Api.Socioboard.xproj|E:\D DRIVE\socioboardgithub\githubUpdated\Socioboard-Core-3.0\src\Socioboard.Twitter\Socioboard.Twitter.xproj
#:E:\D DRIVE\socioboardgithub\githubUpdated\Socioboard-Core-3.0\src\SocioboardDataServices\SocioboardDataServices.xproj
E:\D DRIVE\socioboardgithub\githubUpdated\Socioboard-Core-3.0\src\SocioboardDataServices\SocioboardDataServices.xproj|E:\D DRIVE\socioboardgithub\githubUpdated\Socioboard-Core-3.0\src\Domain.Socioboard\Domain.Socioboard.xproj
E:\D DRIVE\socioboardgithub\githubUpdated\Socioboard-Core-3.0\src\SocioboardDataServices\SocioboardDataServices.xproj|E:\D DRIVE\socioboardgithub\githubUpdated\Socioboard-Core-3.0\src\Socioboard.Facebook\Socioboard.Facebook.xproj
E:\D DRIVE\socioboardgithub\githubUpdated\Socioboard-Core-3.0\src\SocioboardDataServices\SocioboardDataServices.xproj|E:\D DRIVE\socioboardgithub\githubUpdated\Socioboard-Core-3.0\src\Socioboard.Google\Socioboard.Google.xproj
E:\D DRIVE\socioboardgithub\githubUpdated\Socioboard-Core-3.0\src\SocioboardDataServices\SocioboardDataServices.xproj|E:\D DRIVE\socioboardgithub\githubUpdated\Socioboard-Core-3.0\src\Socioboard.Instagram\Socioboard.Instagram.xproj
E:\D DRIVE\socioboardgithub\githubUpdated\Socioboard-Core-3.0\src\SocioboardDataServices\SocioboardDataServices.xproj|E:\D DRIVE\socioboardgithub\githubUpdated\Socioboard-Core-3.0\src\Socioboard.LinkedIn\Socioboard.LinkedIn.xproj
E:\D DRIVE\socioboardgithub\githubUpdated\Socioboard-Core-3.0\src\SocioboardDataServices\SocioboardDataServices.xproj|E:\D DRIVE\socioboardgithub\githubUpdated\Socioboard-Core-3.0\src\Socioboard.Twitter\Socioboard.Twitter.xproj
E:\D DRIVE\socioboardgithub\githubUpdated\Socioboard-Core-3.0\src\SocioboardDataServices\SocioboardDataServices.xproj|E:\D DRIVE\socioboardgithub\githubUpdated\Socioboard-Core-3.0\src\Socioboard.Pinterest\Socioboard.Pinterest.xproj
E:\D DRIVE\socioboardgithub\githubUpdated\Socioboard-Core-3.0\src\Socioboard.Facebook\Socioboard.Facebook.xproj|E:\D DRIVE\socioboardgithub\githubUpdated\Socioboard-Core-3.0\src\Domain.Socioboard\Domain.Socioboard.xproj
7 changes: 7 additions & 0 deletions Socioboard.sln
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "SocioboardDataScheduler", "
EndProject
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "SociobordRssDataServices", "src\SociobordRssDataServices\SociobordRssDataServices.xproj", "{6E7ED109-FAB2-4931-A184-607B7F94AD5D}"
EndProject
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Socioboard.Pinterest", "src\Socioboard.Pinterest\Socioboard.Pinterest.xproj", "{6BC81427-68C6-4909-B07E-BDECC55D3FD7}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -82,6 +84,10 @@ Global
{6E7ED109-FAB2-4931-A184-607B7F94AD5D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6E7ED109-FAB2-4931-A184-607B7F94AD5D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6E7ED109-FAB2-4931-A184-607B7F94AD5D}.Release|Any CPU.Build.0 = Release|Any CPU
{6BC81427-68C6-4909-B07E-BDECC55D3FD7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{6BC81427-68C6-4909-B07E-BDECC55D3FD7}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6BC81427-68C6-4909-B07E-BDECC55D3FD7}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6BC81427-68C6-4909-B07E-BDECC55D3FD7}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand All @@ -98,5 +104,6 @@ Global
{BDF366C5-453D-4111-95CC-4371822CB297} = {1A66A2B3-C9AD-443C-9F4B-5B5A9FB18BE6}
{5FC6D7FB-CA38-4A7A-8BE0-3BC12DB0C065} = {1A66A2B3-C9AD-443C-9F4B-5B5A9FB18BE6}
{6E7ED109-FAB2-4931-A184-607B7F94AD5D} = {1A66A2B3-C9AD-443C-9F4B-5B5A9FB18BE6}
{6BC81427-68C6-4909-B07E-BDECC55D3FD7} = {1A66A2B3-C9AD-443C-9F4B-5B5A9FB18BE6}
EndGlobalSection
EndGlobal
114 changes: 114 additions & 0 deletions src/Api.Socioboard/Controllers/AdsOffersController.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Logging;
using Api.Socioboard.Model;
using Microsoft.AspNetCore.Cors;
using System.Xml;
using System.Text.RegularExpressions;
using Socioboard.Twitter.App.Core;
using MongoDB.Driver;
using Domain.Socioboard.Models;

// For more information on enabling Web API for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860

namespace Api.Socioboard.Controllers
{
[EnableCors("AllowAll")]
[Route("api/[controller]")]
public class AdsOffersController : Controller
{
public AdsOffersController(ILogger<AdsOffersController> logger, Microsoft.Extensions.Options.IOptions<Helper.AppSettings> settings, IHostingEnvironment env)
{
_logger = logger;
_appSettings = settings.Value;
_redisCache = new Helper.Cache(_appSettings.RedisConfiguration);
_env = env;
}
private readonly ILogger _logger;
private Helper.AppSettings _appSettings;
private Helper.Cache _redisCache;
private readonly IHostingEnvironment _env;

//Ads verfication

[HttpGet("AddAdsUrl")]
public IActionResult AddAdsUrl(long userId,string url)
{
try
{
Domain.Socioboard.Models.AdsOffers ads = new AdsOffers();

DatabaseRepository dbr = new DatabaseRepository(_logger, _env);
IList<AdsOffers> lstAdsOffers = dbr.Find<AdsOffers>(t => t.UserId == userId);
if (lstAdsOffers.Count == 0)
{
string lstcontent = Repositories.AdsOffersRepository.findUrlForAds(url);
if (lstcontent == "Ads found on website")
{
IList<User> lstUser = dbr.Find<User>(t => t.Id == userId);
string mailid = lstUser.First().EmailId;
if (lstUser != null && lstUser.Count() > 0)
{
ads.adsaccountstatus = Domain.Socioboard.Enum.AdsOfferAccountStatus.Active;
ads.adcreateddate = DateTime.UtcNow;
ads.UserId = userId;
ads.Verified = Domain.Socioboard.Enum.AdsStatus.Verified;
ads.WebsiteUrl = url;
ads.EmailId = mailid;
ads.Verifieddate = DateTime.UtcNow.Date;
int SavedStatus = dbr.Add<Domain.Socioboard.Models.AdsOffers>(ads);
if (SavedStatus == 1)
{
lstUser.First().Adsstatus = Domain.Socioboard.Enum.AdsStatus.Verified;
lstUser.First().TrailStatus = Domain.Socioboard.Enum.UserTrailStatus.active;
lstUser.First().PaymentType = Domain.Socioboard.Enum.PaymentType.paypal;
lstUser.First().PayPalAccountStatus = Domain.Socioboard.Enum.PayPalAccountStatus.added;
lstUser.First().AccountType = Domain.Socioboard.Enum.SBAccountType.Platinum;
lstUser.First().PaymentStatus = Domain.Socioboard.Enum.SBPaymentStatus.Paid;
//int SavedUserStatus = dbr.Add<Domain.Socioboard.Models.User>(user);
int SavedUserStatus = dbr.Update<User>(lstUser.First());
// int SavedUserStatus = dbr.Update<User>(user);
}
}
return Ok("Ads found on website");
}
else
{
return BadRequest("Ads not found on website");
}
}
else
{
return BadRequest("you already register for this offer");
}
}
catch(Exception ex)
{
return BadRequest("Something went wrong please try after sometime");
}

// return Ok();
}

[HttpGet("FindUrl")]
public IActionResult FindUrl(long userid)
{
DatabaseRepository dbr = new DatabaseRepository(_logger, _env);

AdsOffers lsturl = dbr.Single<AdsOffers>(t => t.UserId == userid);
if (lsturl != null)
{
return Ok(lsturl);
}
else
{
return NotFound();
}

}
}
}
84 changes: 84 additions & 0 deletions src/Api.Socioboard/Controllers/BillingController.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Logging;
using Api.Socioboard.Model;
using Microsoft.AspNetCore.Cors;
using System.Xml;
using System.Text.RegularExpressions;
using Socioboard.Twitter.App.Core;
using MongoDB.Driver;
using Domain.Socioboard.Models;

// For more information on enabling Web API for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860

namespace Api.Socioboard.Controllers
{
[EnableCors("AllowAll")]
[Route("api/[controller]")]
public class BillingController : Controller
{
public BillingController(ILogger<BillingController> logger, Microsoft.Extensions.Options.IOptions<Helper.AppSettings> settings, IHostingEnvironment env)
{
_logger = logger;
_appSettings = settings.Value;
_redisCache = new Helper.Cache(_appSettings.RedisConfiguration);
_env = env;
}
private readonly ILogger _logger;
private Helper.AppSettings _appSettings;
private Helper.Cache _redisCache;
private readonly IHostingEnvironment _env;

//Current Plan details
[HttpGet("CurrentPlanDetails")]
public IActionResult CurrentPlanDetails(long userid)
{
DatabaseRepository dbr = new DatabaseRepository(_logger, _env);
Domain.Socioboard.Models.PaymentTransaction details = new PaymentTransaction();
User lsturl = dbr.Single<User>(t => t.Id == userid);
Domain.Socioboard.Enum.SBAccountType type= lsturl.AccountType;
if(type==0)
{
details.amount = "0";
}
else
{
try
{
IList<PaymentTransaction> lstpayment = dbr.Find<PaymentTransaction>(t => t.userid == userid);
foreach (Domain.Socioboard.Models.PaymentTransaction payment in lstpayment)
{
if (payment.paymentdate.Date.Month == DateTime.UtcNow.Date.Month)
{
details.id = payment.id;
details.itemname = payment.itemname;
details.media = payment.media;
details.payeremail = payment.payeremail;
details.Payername = payment.Payername;
details.paymentdate = payment.paymentdate;
details.paymentId = payment.paymentId;
details.paymentstatus = payment.paymentstatus;
details.PaymentType = payment.PaymentType;
details.subscrdate = payment.subscrdate;
details.trasactionId = payment.trasactionId;
details.userid = payment.userid;
details.amount = payment.amount;
details.email = payment.email;

}
}
}
catch(Exception ex)
{

}

}
return Ok(details);
}
}
}
19 changes: 13 additions & 6 deletions src/Api.Socioboard/Controllers/FacebookController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public IActionResult AddFacebookAccount(string accessToken, long groupId, long u
dynamic profile = FbUser.getFbUser(accessToken);
try
{
string x = Convert.ToString(profile);
string x = Convert.ToString(profile);
_logger.LogError(x);
}
catch { }
Expand Down Expand Up @@ -244,6 +244,14 @@ public IActionResult GetTopFeeds(string profileId, long userId, int skip, int co
// return Ok();
}

[HttpGet("GetTopFilterFeeds")]
public IActionResult GetTopFilterFeeds(string profileId, long userId, int skip, int count, string typeFilter)
{
return Ok(Repositories.FacebookRepository.GetTopFacebookFilterFeed(profileId, userId, _redisCache, _appSettings, skip, count, typeFilter));
}



[HttpGet("GetFacebookProfiles")]
public IActionResult GetFacebookProfiles(long groupId)
{
Expand Down Expand Up @@ -313,9 +321,8 @@ public IActionResult AddFacebookPages(long userId, long groupId)
int invalidaccessToken = 0;
foreach (var item in accesstoken)
{
dynamic profile = Fbpages.getFbPageData(item);
string subscribed_apps = Fbpages.subscribed_apps(item, Convert.ToString(profile["id"]));
// string subscribed_apps= Fbpages.subscribed_apps(item, Convert.ToString(profile["id"]));
dynamic profile = Fbpages.getFbPageData(item);
// string subscribed_apps = Fbpages.subscribed_apps(item, Convert.ToString(profile["id"]));
try
{
string x = Convert.ToString(profile);
Expand All @@ -330,7 +337,7 @@ public IActionResult AddFacebookPages(long userId, long groupId)
else
{
DatabaseRepository dbr = new DatabaseRepository(_logger, _env);
Domain.Socioboard.Models.Facebookaccounts fbacc = Api.Socioboard.Repositories.FacebookRepository.getFacebookAccount(Convert.ToString(profile["id"]), _redisCache, dbr);
Domain.Socioboard.Models.Facebookaccounts fbacc = Api.Socioboard.Repositories.FacebookRepository.getFacebookAccount(Convert.ToString(profile["id"]), _redisCache, dbr);
if (fbacc != null && fbacc.IsActive == true)
{
addedPageCount++;
Expand All @@ -343,7 +350,7 @@ public IActionResult AddFacebookPages(long userId, long groupId)
{
return Ok("Wrong Group Id");
}
// Adding Facebook Page
// Adding Facebook Page
int res = Api.Socioboard.Repositories.FacebookRepository.AddFacebookPage(profile, dbr, userId, ngrp.id, Domain.Socioboard.Enum.FbProfileType.FacebookPage, item, _redisCache, _appSettings, _logger);

}
Expand Down
31 changes: 24 additions & 7 deletions src/Api.Socioboard/Controllers/GoogleController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,24 @@ public IActionResult GoogleLogin(string code,Domain.Socioboard.Enum.SBAccountTyp
IList<User> lstUser = dbr.Find<User>(t => t.EmailId.Equals(EmailId));
if (lstUser != null && lstUser.Count() > 0)
{
DateTime d1 = DateTime.UtcNow;
//User userTable = dbr.Single<User>(t => t.EmailId == EmailId);
//userTable.LastLoginTime = d1;
lstUser.First().LastLoginTime = d1;
dbr.Update<User>(lstUser.First());
_redisCache.Set<User>(lstUser.First().EmailId, lstUser.First());
return Ok(lstUser.First());
if (lstUser.First().ActivationStatus == Domain.Socioboard.Enum.SBUserActivationStatus.Active)
{
DateTime d1 = DateTime.UtcNow;
//User userTable = dbr.Single<User>(t => t.EmailId == EmailId);
//userTable.LastLoginTime = d1;
lstUser.First().LastLoginTime = d1;
dbr.Update<User>(lstUser.First());
_redisCache.Set<User>(lstUser.First().EmailId, lstUser.First());
return Ok(lstUser.First());
}
else if (lstUser.First().ActivationStatus == Domain.Socioboard.Enum.SBUserActivationStatus.Disable)
{
return Ok("Your account is disabled. Please contact socioboard support for more assistance");
}
else
{
return Ok("Something went wrong please try after sometime");
}
}
else
{
Expand Down Expand Up @@ -516,6 +527,12 @@ public IActionResult GetGplusFeeds(string profileId, long userId, int skip, int
}
}

[HttpGet("GetGplusFilterFeeds")]
public IActionResult GetGplusFilterFeeds(string profileId, long userId, int skip, int count, string postType)
{
return Ok(Repositories.GplusRepository.getgoogleplusActivity(profileId, _redisCache, _appSettings, skip, count, postType));
}


[HttpGet("GetGplusProfiles")]
public IActionResult GetGplusProfiles(long groupId)
Expand Down
Loading

0 comments on commit 4bc0853

Please sign in to comment.