C# Class mobSocial.Services.Battles.MobSocialMessageService

Product service
Inheritance: IMobSocialMessageService
Afficher le fichier Open project: mobsoftware/mobsocial

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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

Méthode 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 méthode

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
Résultat System

ProductListToHtmlTable() protected méthode

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

ProductListToHtmlTable() protected méthode

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

SendBirthdayNotification() public méthode

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

SendEventInvitationNotification() public méthode

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

SendFriendRequestNotification() public méthode

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

SendPendingFriendRequestNotification() public méthode

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

SendProductReviewNotification() public méthode

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

SendSomeoneChallengedYouForABattleNotification() public méthode

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
Résultat int

SendSomeoneChallengedYouForABattleNotification() public méthode

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
Résultat int

SendSomeoneSentYouASongNotification() public méthode

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

SendSponsorAppliedNotificationToBattleOwner() public méthode

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
Résultat int

SendSponsorshipStatusChangeNotification() public méthode

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
Résultat int

SendVideoBattleCompleteNotification() public méthode

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
Résultat int

SendVideoBattleDisqualifiedNotification() public méthode

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
Résultat int

SendVideoBattleJoinNotification() public méthode

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
Résultat int

SendVideoBattleOpenNotification() public méthode

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

SendVideoBattleSignupAcceptedNotification() public méthode

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
Résultat int

SendVideoBattleSignupNotification() public méthode

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
Résultat int

SendVotingReminderNotification() public méthode

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
Résultat int

SendVotingReminderNotification() public méthode

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
Résultat int

SendXDaysToBattleEndNotificationToFollower() public méthode

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

SendXDaysToBattleStartNotificationToParticipant() public méthode

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