Example #1
0
 public static void Reset()
 {
     _identityService = null;
     _angebotService  = null;
     _loginService    = null;
     _profilService   = null;
 }
Example #2
0
 public ProfileController(IMapper mapper, IUserService userService, IProfilService profileService, IPostTagService postTagService)
 {
     this.mapper         = mapper;
     this.userService    = userService;
     this.profileService = profileService;
     this.postTagService = postTagService;
 }
Example #3
0
 public CommentsViewComponent(IMapper mapper, ICommentService commentService, IProfilService profileService,
                              ILikeService likeService)
 {
     this.mapper         = mapper;
     this.commentService = commentService;
     this.profileService = profileService;
     this.likeService    = likeService;
 }
        public ProfilEditPage()
        {
            this.InitializeComponent();

            _profilService   = Factory.GetProfilService();
            _loginService    = Factory.GetLoginService();
            _thumbnailHelper = Factory.GetThumbnailHelper();
        }
Example #5
0
        public static IProfilService GetProfilService()
        {
            if (_profilService == null)
            {
                _profilService = new ProfilService(GetIdentityService(), GetLoginService(), GetThumbnailHelper());
            }

            return(_profilService);
        }
Example #6
0
 public ChatController(IAngebotService angebotService, IChatPollingService chatPollingService, IChatBufferService chatBufferService, IProfilService profilService, ILoginService loginService)
 {
     _angebotService     = angebotService;
     _chatPollingService = chatPollingService;
     _chatPollingService.NachrichtErhalten += _chatPollingService_NachrichtErhalten;
     _chatBufferService = chatBufferService;
     _chatBufferService.NewChatCreated += _chatBufferService_NewChatCreated;
     _profilService = profilService;
     _loginService  = loginService;
 }
Example #7
0
 public IndexModel(
     UserManager <ApplicationUser> userManager,
     SignInManager <ApplicationUser> signInManager,
     IEmailSender emailSender, IProfilService profileService)
 {
     _userManager        = userManager;
     _signInManager      = signInManager;
     _emailSender        = emailSender;
     this.profileService = profileService;
 }
 public UserService(IUserRepository userRepository, IMapper mapper, IProfilService profileService,
                    ICommentService commentService, IPostService postService, ILikeService likeService)
 {
     this.postService    = postService;
     this.profileService = profileService;
     this.commentService = commentService;
     this.likeService    = likeService;
     this.userRepository = userRepository;
     this.mapper         = mapper;
 }
Example #9
0
 public MainController(IPostService postService, IMapper mapper, ICategoryService categoryService,
                       ITagService tagService, IPostTagService postTagService, IUserService userService, ICommentService commentService,
                       IProfilService profileService, ILikeService likeService, IPostRatingService postRatingService)
 {
     this.postService       = postService;
     this.mapper            = mapper;
     this.categoryService   = categoryService;
     this.tagService        = tagService;
     this.postTagService    = postTagService;
     this.userService       = userService;
     this.commentService    = commentService;
     this.profileService    = profileService;
     this.likeService       = likeService;
     this.postRatingService = postRatingService;
 }
 public RegisterModel(
     UserManager <ApplicationUser> userManager,
     SignInManager <ApplicationUser> signInManager,
     ILogger <RegisterModel> logger,
     IEmailSender emailSender,
     IProfilService profileService,
     IUserService userService)
 {
     _userManager        = userManager;
     _signInManager      = signInManager;
     _logger             = logger;
     _emailSender        = emailSender;
     this.profileService = profileService;
     this.userService    = userService;
 }
Example #11
0
        public AngebotViewModel(Angebot angebot)
        {
            Verfuegbarkeit         = Verfuegbarkeit.Unbekannt;
            VerfuegbarkeitsDetails = "";
            VerfuegbarkeitsAmpel   = new SolidColorBrush(Colors.Black);

            _thumbnailHelper     = Factory.GetThumbnailHelper();
            _profilService       = Factory.GetProfilService();
            Barrel.ApplicationId = "nutzmich_monkeycache";

            SetIsNotLoading();
            Angebot = angebot;

            Fotos          = new ObservableCollection <AttachmentImageViewModel>();
            Reservierungen = new ObservableCollection <ReservierungsZeitraumViewModel>();
        }
Example #12
0
        public ChatViewModel(ChatInfo chatInfo, IChatPollingService chatPollingService, IChatService chatService, ILoginService loginService, IChatBufferService chatBufferService, IProfilService profilService, Angebot angebot)
        {
            _chatPollingService = chatPollingService;
            _chatPollingService.NachrichtErhalten += _chatPollingService_NachrichtErhalten;
            _chatService       = chatService;
            _loginService      = loginService;
            _chatBufferService = chatBufferService;
            _profilService     = profilService;

            Nachrichten = new ObservableCollection <ChatNachrichtViewModel>(chatInfo.Nachrichten.Select(c => new ChatNachrichtViewModel(c)
            {
                IchBinEmpfaenger = _loginService.AnbieterId == c.EmpfaengerAnbieterID, IchWarSender = _loginService.AnbieterId == c.SenderAnbieterID
            }));

            AngebotViewModel = new AngebotViewModel(angebot);
            _chatPollingService.StartPolling(angebot);

            _chatInfo = chatInfo;
            InitGegenseiteAsync();
        }
 public AdminController(IUserService userService, IMapper mapper, IProfilService profileService)
 {
     this.userService    = userService;
     this.mapper         = mapper;
     this.profileService = profileService;
 }