C# Class mobSocial.Services.Battles.MobSocialMessageService

Product service
Inheritance: IMobSocialMessageService
Exibir arquivo Open project: mobsoftware/mobsocial

Public Methods

Method Description
MobSocialMessageService ( IMessageTemplateService messageTemplateService, IStoreService storeService, IMessageTokenProvider messageTokenProvider, ILanguageService languageService, IStoreContext storeContext, IEventPublisher eventPublisher, ITokenizer tokenizer, IQueuedEmailService queuedEmailService, IEmailAccountService emailAccountService, Nop.Core.Domain.Messages.EmailAccountSettings emailAccountSettings, ILocalizationService localizationService, Nop.Core.Domain.Messages.MessageTemplatesSettings messageTemplateSettings, Nop.Core.Domain.Catalog.CatalogSettings catalogSettings, IProductAttributeParser productAttributeParser, IWorkContext workContext ) : System
SendBirthdayNotification ( Customer customer, int languageId, int storeId ) : int
SendEventInvitationNotification ( Customer customer, int languageId, int storeId ) : int
SendFriendRequestNotification ( Customer customer, int friendRequestCount, int languageId, int storeId ) : int
SendPendingFriendRequestNotification ( Customer customer, int friendRequestCount, int languageId, int storeId ) : int
SendProductReviewNotification ( Customer customer, List unreviewedProducts, int languageId, int storeId ) : int
SendSomeoneChallengedYouForABattleNotification ( Customer challenger, Customer challengee, VideoBattle videoBattle, int languageId, int storeId ) : int
SendSomeoneChallengedYouForABattleNotification ( Customer challenger, string challengeeEmail, string challengeeName, VideoBattle videoBattle, int languageId, int storeId ) : int
SendSomeoneSentYouASongNotification ( Customer customer, int languageId, int storeId ) : int
SendSponsorAppliedNotificationToBattleOwner ( Customer owner, Customer sponsor, VideoBattle videoBattle, int languageId, int storeId ) : int
SendSponsorshipStatusChangeNotification ( Customer receiver, SponsorshipStatus sponsorshipStatus, VideoBattle videoBattle, int languageId, int storeId ) : int
SendVideoBattleCompleteNotification ( Customer customer, VideoBattle videoBattle, NotificationRecipientType recipientType, int languageId, int storeId ) : int
SendVideoBattleDisqualifiedNotification ( Customer challenger, Customer challengee, VideoBattle videoBattle, int languageId, int storeId ) : int
SendVideoBattleJoinNotification ( Customer challenger, Customer challengee, VideoBattle videoBattle, int languageId, int storeId ) : int
SendVideoBattleOpenNotification ( Customer receiver, VideoBattle videoBattle, int languageId, int storeId ) : int
SendVideoBattleSignupAcceptedNotification ( Customer challenger, Customer challengee, VideoBattle videoBattle, int languageId, int storeId ) : int
SendVideoBattleSignupNotification ( Customer challenger, Customer challengee, VideoBattle videoBattle, int languageId, int storeId ) : int
SendVotingReminderNotification ( Customer sender, Customer receiver, VideoBattle videoBattle, int languageId, int storeId ) : int
SendVotingReminderNotification ( Customer sender, string receiverEmail, string receiverName, VideoBattle videoBattle, int languageId, int storeId ) : int
SendXDaysToBattleEndNotificationToFollower ( Customer receiver, VideoBattle videoBattle, int languageId, int storeId ) : int
SendXDaysToBattleStartNotificationToParticipant ( Customer receiver, VideoBattle videoBattle, int languageId, int storeId ) : int

Protected Methods

Method Description
ProductListToHtmlTable ( List orderItems, int languageId ) : string

Convert a collection to a HTML table

ProductListToHtmlTable ( List products, int languageId, int storeId ) : string

Convert a collection to a HTML table

Private Methods

Method Description
EnsureLanguageIsActive ( int languageId, int storeId ) : int
GetEmailAccountOfMessageTemplate ( Nop.Core.Domain.Messages.MessageTemplate messageTemplate, int languageId ) : Nop.Core.Domain.Messages.EmailAccount
GetLocalizedActiveMessageTemplate ( string messageTemplateName, int storeId ) : Nop.Core.Domain.Messages.MessageTemplate
GetStoreUrl ( int storeId, bool useSsl = false ) : string

Get store URL

SendNotification ( Nop.Core.Domain.Messages.MessageTemplate messageTemplate, Nop.Core.Domain.Messages.EmailAccount emailAccount, int languageId, IEnumerable tokens, string toEmailAddress, string toName ) : int

Method Details

MobSocialMessageService() public method

public MobSocialMessageService ( IMessageTemplateService messageTemplateService, IStoreService storeService, IMessageTokenProvider messageTokenProvider, ILanguageService languageService, IStoreContext storeContext, IEventPublisher eventPublisher, ITokenizer tokenizer, IQueuedEmailService queuedEmailService, IEmailAccountService emailAccountService, Nop.Core.Domain.Messages.EmailAccountSettings emailAccountSettings, ILocalizationService localizationService, Nop.Core.Domain.Messages.MessageTemplatesSettings messageTemplateSettings, Nop.Core.Domain.Catalog.CatalogSettings catalogSettings, IProductAttributeParser productAttributeParser, IWorkContext workContext ) : System
messageTemplateService IMessageTemplateService
storeService IStoreService
messageTokenProvider IMessageTokenProvider
languageService ILanguageService
storeContext IStoreContext
eventPublisher IEventPublisher
tokenizer ITokenizer
queuedEmailService IQueuedEmailService
emailAccountService IEmailAccountService
emailAccountSettings Nop.Core.Domain.Messages.EmailAccountSettings
localizationService ILocalizationService
messageTemplateSettings Nop.Core.Domain.Messages.MessageTemplatesSettings
catalogSettings Nop.Core.Domain.Catalog.CatalogSettings
productAttributeParser IProductAttributeParser
workContext IWorkContext
return System

ProductListToHtmlTable() protected method

Convert a collection to a HTML table
protected ProductListToHtmlTable ( List orderItems, int languageId ) : string
orderItems List
languageId int Language identifier
return string

ProductListToHtmlTable() protected method

Convert a collection to a HTML table
protected ProductListToHtmlTable ( List products, int languageId, int storeId ) : string
products List
languageId int Language identifier
storeId int
return string

SendBirthdayNotification() public method

public SendBirthdayNotification ( Customer customer, int languageId, int storeId ) : int
customer Nop.Core.Domain.Customers.Customer
languageId int
storeId int
return int

SendEventInvitationNotification() public method

public SendEventInvitationNotification ( Customer customer, int languageId, int storeId ) : int
customer Nop.Core.Domain.Customers.Customer
languageId int
storeId int
return int

SendFriendRequestNotification() public method

public SendFriendRequestNotification ( Customer customer, int friendRequestCount, int languageId, int storeId ) : int
customer Nop.Core.Domain.Customers.Customer
friendRequestCount int
languageId int
storeId int
return int

SendPendingFriendRequestNotification() public method

public SendPendingFriendRequestNotification ( Customer customer, int friendRequestCount, int languageId, int storeId ) : int
customer Nop.Core.Domain.Customers.Customer
friendRequestCount int
languageId int
storeId int
return int

SendProductReviewNotification() public method

public SendProductReviewNotification ( Customer customer, List unreviewedProducts, int languageId, int storeId ) : int
customer Nop.Core.Domain.Customers.Customer
unreviewedProducts List
languageId int
storeId int
return int

SendSomeoneChallengedYouForABattleNotification() public method

public SendSomeoneChallengedYouForABattleNotification ( Customer challenger, Customer challengee, VideoBattle videoBattle, int languageId, int storeId ) : int
challenger Nop.Core.Domain.Customers.Customer
challengee Nop.Core.Domain.Customers.Customer
videoBattle VideoBattle
languageId int
storeId int
return int

SendSomeoneChallengedYouForABattleNotification() public method

public SendSomeoneChallengedYouForABattleNotification ( Customer challenger, string challengeeEmail, string challengeeName, VideoBattle videoBattle, int languageId, int storeId ) : int
challenger Nop.Core.Domain.Customers.Customer
challengeeEmail string
challengeeName string
videoBattle VideoBattle
languageId int
storeId int
return int

SendSomeoneSentYouASongNotification() public method

public SendSomeoneSentYouASongNotification ( Customer customer, int languageId, int storeId ) : int
customer Nop.Core.Domain.Customers.Customer
languageId int
storeId int
return int

SendSponsorAppliedNotificationToBattleOwner() public method

public SendSponsorAppliedNotificationToBattleOwner ( Customer owner, Customer sponsor, VideoBattle videoBattle, int languageId, int storeId ) : int
owner Nop.Core.Domain.Customers.Customer
sponsor Nop.Core.Domain.Customers.Customer
videoBattle VideoBattle
languageId int
storeId int
return int

SendSponsorshipStatusChangeNotification() public method

public SendSponsorshipStatusChangeNotification ( Customer receiver, SponsorshipStatus sponsorshipStatus, VideoBattle videoBattle, int languageId, int storeId ) : int
receiver Nop.Core.Domain.Customers.Customer
sponsorshipStatus SponsorshipStatus
videoBattle VideoBattle
languageId int
storeId int
return int

SendVideoBattleCompleteNotification() public method

public SendVideoBattleCompleteNotification ( Customer customer, VideoBattle videoBattle, NotificationRecipientType recipientType, int languageId, int storeId ) : int
customer Nop.Core.Domain.Customers.Customer
videoBattle VideoBattle
recipientType NotificationRecipientType
languageId int
storeId int
return int

SendVideoBattleDisqualifiedNotification() public method

public SendVideoBattleDisqualifiedNotification ( Customer challenger, Customer challengee, VideoBattle videoBattle, int languageId, int storeId ) : int
challenger Nop.Core.Domain.Customers.Customer
challengee Nop.Core.Domain.Customers.Customer
videoBattle VideoBattle
languageId int
storeId int
return int

SendVideoBattleJoinNotification() public method

public SendVideoBattleJoinNotification ( Customer challenger, Customer challengee, VideoBattle videoBattle, int languageId, int storeId ) : int
challenger Nop.Core.Domain.Customers.Customer
challengee Nop.Core.Domain.Customers.Customer
videoBattle VideoBattle
languageId int
storeId int
return int

SendVideoBattleOpenNotification() public method

public SendVideoBattleOpenNotification ( Customer receiver, VideoBattle videoBattle, int languageId, int storeId ) : int
receiver Nop.Core.Domain.Customers.Customer
videoBattle VideoBattle
languageId int
storeId int
return int

SendVideoBattleSignupAcceptedNotification() public method

public SendVideoBattleSignupAcceptedNotification ( Customer challenger, Customer challengee, VideoBattle videoBattle, int languageId, int storeId ) : int
challenger Nop.Core.Domain.Customers.Customer
challengee Nop.Core.Domain.Customers.Customer
videoBattle VideoBattle
languageId int
storeId int
return int

SendVideoBattleSignupNotification() public method

public SendVideoBattleSignupNotification ( Customer challenger, Customer challengee, VideoBattle videoBattle, int languageId, int storeId ) : int
challenger Nop.Core.Domain.Customers.Customer
challengee Nop.Core.Domain.Customers.Customer
videoBattle VideoBattle
languageId int
storeId int
return int

SendVotingReminderNotification() public method

public SendVotingReminderNotification ( Customer sender, Customer receiver, VideoBattle videoBattle, int languageId, int storeId ) : int
sender Nop.Core.Domain.Customers.Customer
receiver Nop.Core.Domain.Customers.Customer
videoBattle VideoBattle
languageId int
storeId int
return int

SendVotingReminderNotification() public method

public SendVotingReminderNotification ( Customer sender, string receiverEmail, string receiverName, VideoBattle videoBattle, int languageId, int storeId ) : int
sender Nop.Core.Domain.Customers.Customer
receiverEmail string
receiverName string
videoBattle VideoBattle
languageId int
storeId int
return int

SendXDaysToBattleEndNotificationToFollower() public method

public SendXDaysToBattleEndNotificationToFollower ( Customer receiver, VideoBattle videoBattle, int languageId, int storeId ) : int
receiver Nop.Core.Domain.Customers.Customer
videoBattle VideoBattle
languageId int
storeId int
return int

SendXDaysToBattleStartNotificationToParticipant() public method

public SendXDaysToBattleStartNotificationToParticipant ( Customer receiver, VideoBattle videoBattle, int languageId, int storeId ) : int
receiver Nop.Core.Domain.Customers.Customer
videoBattle VideoBattle
languageId int
storeId int
return int