C# Класс mobSocial.Services.Battles.MobSocialMessageService

Product service
Наследование: IMobSocialMessageService
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

MobSocialMessageService() публичный Метод

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
Результат System

ProductListToHtmlTable() защищенный Метод

Convert a collection to a HTML table
protected ProductListToHtmlTable ( List orderItems, int languageId ) : string
orderItems List
languageId int Language identifier
Результат string

ProductListToHtmlTable() защищенный Метод

Convert a collection to a HTML table
protected ProductListToHtmlTable ( List products, int languageId, int storeId ) : string
products List
languageId int Language identifier
storeId int
Результат string

SendBirthdayNotification() публичный Метод

public SendBirthdayNotification ( Customer customer, int languageId, int storeId ) : int
customer Nop.Core.Domain.Customers.Customer
languageId int
storeId int
Результат int

SendEventInvitationNotification() публичный Метод

public SendEventInvitationNotification ( Customer customer, int languageId, int storeId ) : int
customer Nop.Core.Domain.Customers.Customer
languageId int
storeId int
Результат int

SendFriendRequestNotification() публичный Метод

public SendFriendRequestNotification ( Customer customer, int friendRequestCount, int languageId, int storeId ) : int
customer Nop.Core.Domain.Customers.Customer
friendRequestCount int
languageId int
storeId int
Результат int

SendPendingFriendRequestNotification() публичный Метод

public SendPendingFriendRequestNotification ( Customer customer, int friendRequestCount, int languageId, int storeId ) : int
customer Nop.Core.Domain.Customers.Customer
friendRequestCount int
languageId int
storeId int
Результат int

SendProductReviewNotification() публичный Метод

public SendProductReviewNotification ( Customer customer, List unreviewedProducts, int languageId, int storeId ) : int
customer Nop.Core.Domain.Customers.Customer
unreviewedProducts List
languageId int
storeId int
Результат int

SendSomeoneChallengedYouForABattleNotification() публичный Метод

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
Результат int

SendSomeoneChallengedYouForABattleNotification() публичный Метод

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
Результат int

SendSomeoneSentYouASongNotification() публичный Метод

public SendSomeoneSentYouASongNotification ( Customer customer, int languageId, int storeId ) : int
customer Nop.Core.Domain.Customers.Customer
languageId int
storeId int
Результат int

SendSponsorAppliedNotificationToBattleOwner() публичный Метод

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
Результат int

SendSponsorshipStatusChangeNotification() публичный Метод

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
Результат int

SendVideoBattleCompleteNotification() публичный Метод

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
Результат int

SendVideoBattleDisqualifiedNotification() публичный Метод

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
Результат int

SendVideoBattleJoinNotification() публичный Метод

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
Результат int

SendVideoBattleOpenNotification() публичный Метод

public SendVideoBattleOpenNotification ( Customer receiver, VideoBattle videoBattle, int languageId, int storeId ) : int
receiver Nop.Core.Domain.Customers.Customer
videoBattle VideoBattle
languageId int
storeId int
Результат int

SendVideoBattleSignupAcceptedNotification() публичный Метод

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
Результат int

SendVideoBattleSignupNotification() публичный Метод

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
Результат int

SendVotingReminderNotification() публичный Метод

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
Результат int

SendVotingReminderNotification() публичный Метод

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
Результат int

SendXDaysToBattleEndNotificationToFollower() публичный Метод

public SendXDaysToBattleEndNotificationToFollower ( Customer receiver, VideoBattle videoBattle, int languageId, int storeId ) : int
receiver Nop.Core.Domain.Customers.Customer
videoBattle VideoBattle
languageId int
storeId int
Результат int

SendXDaysToBattleStartNotificationToParticipant() публичный Метод

public SendXDaysToBattleStartNotificationToParticipant ( Customer receiver, VideoBattle videoBattle, int languageId, int storeId ) : int
receiver Nop.Core.Domain.Customers.Customer
videoBattle VideoBattle
languageId int
storeId int
Результат int