-
Notifications
You must be signed in to change notification settings - Fork 359
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
1 parent
eecbee2
commit 4bc0853
Showing
302 changed files
with
15,091 additions
and
825 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
} | ||
|
||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.