Exemplo n.º 1
0
 public AddressController()
 {
     _kmlPrepDataService    = new KmlPrepDataService();
     _kmlDocumentService    = new KmlDocumentService();
     _prospectSerivce       = new ProspectServiceYahoo();
     _joinedProspectService = new JoinedProspectService();
 }
Exemplo n.º 2
0
 public AddressController(IKmlPrepDataService prepDataService, IKmlDocumentService kmlDocService, IProspectService prospectService, IJoinedProspectService joinedProspectService)
 {
     _kmlPrepDataService    = prepDataService;
     _kmlDocumentService    = kmlDocService;
     _prospectSerivce       = prospectService;
     _joinedProspectService = joinedProspectService;
 }
Exemplo n.º 3
0
 public AssociateController(
     IMembershipService membershipService,
     IMembershipService associateMembershipService,
     IAssociateService associateService,
     IDocumentService documentService,
     IReferenceService referenceService,
     IEmployeeService employeeService,
     IProspectService prospectService,
     IPrincipal user,
     IClientProjectSharedService clientProjectSharedService,
     IIndividualService individualService,
     IRoleService roleService,
     Admin.Services.IEmailService emailService)
     : base(membershipService, associateService, user)
 {
     this.associateService = associateService;
     this.documentService = documentService;
     this.referenceService = referenceService;
     this.employeeService = employeeService;
     this.prospectService = prospectService;
     this.associateMembershipService = associateMembershipService;
     this.clientProjectSharedService = clientProjectSharedService;
     this.individualService = individualService;
     this.roleService = roleService;
     this.emailService = emailService;
 }
        public SplitDetailViewModel(IActivityService activityService, ITwilioService twilioService, IDialogService dialogService, IMvxPhoneCallTask phoneCallTask, IMvxMessenger messenger, IProspectService prospectService, IMvxNavigationService navigationService)
        {
            Messenger          = messenger;
            _prospectService   = prospectService;
            _navigationService = navigationService;
            _phoneCallTask     = phoneCallTask;
            _dialogService     = dialogService;
            _twilioService     = twilioService;
            _activityService   = activityService;
            Phones             = new ObservableCollection <KeyValuePair <string, string> >();

            Messenger.Subscribe <RefreshMessage>(message => _clearDetailsInteraction.Raise(), MvxReference.Strong);
            Messenger.Subscribe <ProspectChangedMessage>(message => Prepare(new KeyValuePair <Prospect, User>(message.UpdatedProspect, User)), MvxReference.Strong);
            Messenger.Subscribe <UserLogoutMessage>(message => UserLogout(), MvxReference.Strong);
            Messenger.Subscribe <ActivityAddedMessage>(message => ActivityAdded(message.AddedActivity), MvxReference.Strong);
            Messenger.Subscribe <ProspectChangedMessage>(message =>
            {
                RaisePropertyChanged(() => EmailEntered);
                RaisePropertyChanged(() => StreetAddressEntered);
                RaisePropertyChanged(() => MobilePhoneEntered);
                RaisePropertyChanged(() => HomePhoneEntered);
                RaisePropertyChanged(() => WorkPhoneEntered);
                RaisePropertyChanged(() => AllowCalling);
                RaisePropertyChanged(() => AllowEmailing);
                RaisePropertyChanged(() => AllowTexting);
            },
                                                         MvxReference.Strong);
        }
Exemplo n.º 5
0
 public AddressController(IKmlPrepDataService prepDataService, IKmlDocumentService kmlDocService, IProspectService prospectService, IJoinedProspectService joinedProspectService)
 {
     _kmlPrepDataService = prepDataService;
     _kmlDocumentService = kmlDocService;
     _prospectSerivce = prospectService;
     _joinedProspectService = joinedProspectService;
 }
Exemplo n.º 6
0
 public AddressController()
 {
     _kmlPrepDataService = new KmlPrepDataService();
     _kmlDocumentService = new KmlDocumentService();
     _prospectSerivce = new ProspectServiceYahoo();
     _joinedProspectService = new JoinedProspectService();
 }
 public ProspectSMSViewModel(IAuthenticator authService, IIncrementalCollectionFactory collectionFactory, IActivityService activityService, IProspectService prospectService, IMvxMessenger messenger, IMvxNavigationService navigationService)
 {
     _authService       = authService;
     _collectionFactory = collectionFactory;
     _activityService   = activityService;
     _prospectService   = prospectService;
     Messenger          = messenger;
     _navigationService = navigationService;
     PageSize           = 20;
     messengerToken     = Messenger.Subscribe <SMSReceivedMessage>(message => AddMessage(message));
 }
Exemplo n.º 8
0
 public SMSInboxViewModel(IUserService userService, IMvxMessenger messenger, IAuthenticator authService, IProspectService prospectService, IActivityService activityService, IIncrementalCollectionFactory collectionFactory, IMvxNavigationService navigationService)
 {
     Messenger          = messenger;
     _authService       = authService;
     _activityService   = activityService;
     _collectionFactory = collectionFactory;
     _navigationService = navigationService;
     _prospectService   = prospectService;
     _userService       = userService;
     messengerToken     = Messenger.Subscribe <SMSReceivedMessage>(message => AddMessage(message));
     messengerSentToken = Messenger.Subscribe <SMSSentMessage>(message => AddSentMessage(message));
 }
        public SplitMasterViewModel(IUserService userService, IMvxMessenger messenger, IDialogService dialogService, IAuthenticator authService, ICommunityService communityService, IProspectService prospectService, IIncrementalCollectionFactory collectionFactory, IMvxNavigationService navigationService)
        {
            Messenger          = messenger;
            _dialogService     = dialogService;
            _authService       = authService;
            _communityService  = communityService;
            _prospectService   = prospectService;
            _collectionFactory = collectionFactory;
            _navigationService = navigationService;
            _userService       = userService;

            Messenger.Subscribe <ProspectChangedMessage>(message => ProspectUpdated(message.UpdatedProspect), MvxReference.Strong);
            Messenger.Subscribe <ProspectAssignedMessage>(message => ProspectAssigned(message.AssignedProspect), MvxReference.Strong);
            Messenger.Subscribe <ActivityAddedMessage>(message => ActivityAdded(message.AddedActivity), MvxReference.Strong);
        }
        public EditProspectViewModel(IMvxMessenger messenger, IUserDefinedCodeService userDefinedCodeService, IStreetValidationService streetValidationService, ITrafficSourceService trafficSourceService, IDialogService dialogService, IPhoneNumberValidationService phoneNumberValidationService, IEmailValidationService emailValidationService, IProspectService prospectService, IMvxNavigationService navigationService)

        {
            Messenger                     = messenger;
            _trafficSourceService         = trafficSourceService;
            _dialogService                = dialogService;
            _phoneNumberValidationService = phoneNumberValidationService;
            _streetValidationService      = streetValidationService;
            _emailValidationService       = emailValidationService;
            _prospectService              = prospectService;
            _userDefinedCodeService       = userDefinedCodeService;
            _navigationService            = navigationService;

            ConfigureValidationRules();
            Validator.ResultChanged += OnValidationResultChanged;
        }
Exemplo n.º 11
0
        public CobuyerDetailViewModel(IAuthenticator authenticator, IMvxMessenger messenger, IProspectService prospectService, IUserDefinedCodeService userDefinedCodeService, IStreetValidationService streetValidationService, IDialogService dialogService, IPhoneNumberValidationService phoneNumberValidationService, IEmailValidationService emailValidationService, ICobuyerService cobuyerService, IMvxNavigationService navigationService, IUserService userService)
        {
            Messenger      = messenger;
            _dialogService = dialogService;
            _phoneNumberValidationService = phoneNumberValidationService;
            _streetValidationService      = streetValidationService;
            _emailValidationService       = emailValidationService;
            _cobuyerService         = cobuyerService;
            _userDefinedCodeService = userDefinedCodeService;
            _authenticator          = authenticator;
            _prospectService        = prospectService;
            _navigationService      = navigationService;
            _userService            = userService;

            ConfigureValidationRules();
            Validator.ResultChanged += OnValidationResultChanged;
        }
Exemplo n.º 12
0
 public ProspectsController(
     IProspectRepository context,
     IProspectService service,
     ICategoryRepository categoryRepository,
     IEmployeeRepository employeeRepository,
     ICustomerRepository customerRepository,
     ISegmentRepository segmentRepository,
     ICompanyRepository companyRepository,
     IMapper mapper,
     ILogger logger,
     INotifier notificador) : base(notificador)
 {
     _context            = context;
     _categoryRepository = categoryRepository;
     _employeeRepository = employeeRepository;
     _customerRepository = customerRepository;
     _segmentRepository  = segmentRepository;
     _companyRepository  = companyRepository;
     _service            = service;
     _mapper             = mapper;
     _logger             = logger;
 }
Exemplo n.º 13
0
 public ProspectController(IProspectService service)
 {
     _service = service;
 }