public static void FillComplaintModelBuilder(ComplaintModel.Builder aBuilder, IUserRetrievalService<User> aUserRetrievalService, IHAVIssueService aIssueService, IHAVIssueReplyService anIssueReplyService, IHAVIssueReplyCommentService anIssueReplyCommentService, IPhotoService<User, PhotoAlbum, Photo, Friend> aPhotoService) { UserInformationModel<User> myUser = HaveAVoice.Helpers.UserInformation.HAVUserInformationFactory.GetUserInformation(); switch (aBuilder.ComplaintType()) { case ComplaintType.Issue: Issue myIssue = aIssueService.GetIssue(aBuilder.SourceId(), myUser); aBuilder.TowardUser(myIssue.User); aBuilder.SourceDescription(myIssue.Title); break; case ComplaintType.IssueReply: IssueReply myIssueReply = anIssueReplyService.GetIssueReply(aBuilder.SourceId()); aBuilder.TowardUser(myIssueReply.User); aBuilder.SourceDescription(myIssueReply.Reply); break; case ComplaintType.IssueReplyComment: IssueReplyComment myIssueReplyComment = anIssueReplyCommentService.GetIssueReplyComment(aBuilder.SourceId()); aBuilder.TowardUser(myIssueReplyComment.User); aBuilder.SourceDescription(myIssueReplyComment.Comment); break; case ComplaintType.ProfileComplaint: User myTowardUser = aUserRetrievalService.GetUser(aBuilder.SourceId()); aBuilder.TowardUser(myTowardUser); aBuilder.SourceDescription("You are reporting this user because of their profile."); break; case ComplaintType.PhotoComplaint: Photo myPhoto = aPhotoService.GetPhoto(SocialUserModel.Create(myUser.Details), aBuilder.SourceId()).Model; aBuilder.TowardUser(myPhoto.User); aBuilder.SourceDescription(myPhoto.ImageName); break; } }
public PhotosController(ISessionService sessionService, IAlbumService albumService, IPhotoService photoService, ITagService tagService) { this.mSessionService = sessionService; this.mAlbumService = albumService; this.mPhotoService = photoService; this.mTagService = tagService; }
/// <summary> /// The constructor. /// </summary> public PageHeaderViewModel(IPhotoService photoService) { // Get current user as UI will bind directly to it. CurrentUser = AppEnvironment.Instance.CurrentUser; IsDummyServiceEnabled = photoService is PhotoDummyService; }
/// <summary> /// Initializes a new instance of the <see cref="StreamViewModel" /> class. /// </summary> /// <param name="navigationFacade">The navigation facade.</param> /// <param name="photoService">The photo service.</param> /// <param name="authEnforcementHandler">the authentication enforcement handler</param> /// <param name="dialogService">The dialog service.</param> public StreamViewModel(INavigationFacade navigationFacade, IPhotoService photoService, IAuthEnforcementHandler authEnforcementHandler, IDialogService dialogService) { _navigationFacade = navigationFacade; _authEnforcementHandler = authEnforcementHandler; _dialogService = dialogService; Photos = new IncrementalLoadingCollection<Photo>(s => { Func<Task<PagedResponse<Photo>>> f = async () => { var stream = await photoService.GetPhotosForCategoryId(Category.Id, s); if (SelectedPhotoThumbnail != null && SelectedPhoto == null) { SelectedPhoto = stream.Items.FindPhotoForThumbnail(SelectedPhotoThumbnail); } return stream; }; return f(); }, async () => await _dialogService.ShowGenericServiceErrorNotification()); // Initialize commands RefreshCommand = new RelayCommand(OnRefresh); GotoCameraCommand = new RelayCommand(OnGotoCamera); GiveGoldCommand = new RelayCommand<Photo>(OnGiveGold); PhotoSelectedCommand = new RelayCommand<Photo>(OnPhotoSelected); ContributeCommand = new RelayCommand(OnGotoCamera); UserSelectedCommand = new RelayCommand<User>(OnUserSelected); }
public HomePageService(IHomePagePhotoRepository repo, IPhotoService service) { homePageRepository = repo; photoService = service; uploadPath = Configuration.UploadPath + "Photos/Homepage"; photoService.Initialize(uploadPath); }
public PhotoViewModel(IUserDialogService dialogs, IPhotoService photos) { //public PhotoViewModel() { //this.dialogs = DependencyService.Get<IUserDialogService>(); //this.photos = DependencyService.Get<IPhotoService>(); this.dialogs = dialogs; this.photos = photos; this.FromCamera = new Command(async () => { if (!photos.IsCameraAvailable) dialogs.Alert("Camera is not available"); else { var result = await photos.FromCamera(); this.OnPhotoReceived(result); } }); this.FromGallery = new Command(async () => { if (!photos.IsGalleryAvailable) dialogs.Alert("Photo Gallery is unavailable"); else { var result = await photos.FromGallery(); this.OnPhotoReceived(result); } }); this.Choice = new Command(() => dialogs.ActionSheet(x => x .Add("Camera", () => this.FromCamera.Execute(null)) .Add("Gallery", () => this.FromGallery.Execute(null)) .Add("Cancel") )); }
public UserController() { _photoservice = new PhotoService(new PhotoRepository(_context)); _profileservice = new ProfileService(new ProfilesRepository(_context), new UsersRepository(_context)); _sendservice = new UsersService(new UsersRepository(_context)); _usersservice = new UsersService(new RemindingRepository(_context)); }
/// <summary> /// Creates a new instance. /// </summary> /// <param name="photoService">The photo service.</param> /// <param name="dialogService">The dialog service.</param> public GiveGoldViewModel(IPhotoService photoService, IDialogService dialogService) { _photoService = photoService; _dialogService = dialogService; // Initialize commands CancelCommand = new RelayCommand(OnCancel); }
public AccountListViewModel(IStorage<PicasaAccount> accountStorage, INavigationService navigationService, IPhotoService<PicasaAlbum, PicasaMediaGroup> photoService) { _accountStorage = accountStorage; _navigationService = navigationService; _photoService = photoService; }
public PicasaAlbumCreateViewModel(INavigationService navigationService, IPhotoService<PicasaAlbum, PicasaMediaGroup> photoService) { _navigationService = navigationService; _photoService = photoService; NewAlbum = new PicasaAlbum() { Access = "public" }; //TODO: bind access from UI }
public TaskController(ITaskService taskService, IAuthorizationService authorizationService, ITagService tagService, IPhotoService photoService, IAnswerService answerService,IUserService userService) { this.taskService = taskService; this.authorizationService = authorizationService; this.tagService = tagService; this.photoService = photoService; this.answerService = answerService; this.userService = userService; }
public ComplaintController(IHAVComplaintService aService, IBaseService<User> aBaseService, IUserRetrievalService<User> aUserRetrievalService, IHAVIssueService aIssueService, IPhotoService<User, PhotoAlbum, Photo, Friend> aPhotoService) { theService = aService; theUserRetrievalService = aUserRetrievalService; theIssueService = aIssueService; thePhotoService = aPhotoService; }
/// <summary> /// Creates a new instance. /// </summary> /// <param name="photoService">The photo service.</param> /// <param name="authenticationHandler">The authentication handler.</param> /// <param name="dialogService">The dialog service.</param> public DebugViewModel(IPhotoService photoService, IAuthenticationHandler authenticationHandler, IDialogService dialogService) { _photoService = photoService; _authenticationHandler = authenticationHandler; _dialogService = dialogService; ThrowExceptionCommand = new RelayCommand(OnThrowException); }
public PhotoServiceFacade(IPhotoService photoService, IAdvertiseService autoAdvertiseService, IAllocationService allocationService) { Check.If(photoService).IsNotNull(); Check.If(autoAdvertiseService).IsNotNull(); Check.If(allocationService).IsNotNull(); _photoService = photoService; _autoAdvertiseService = autoAdvertiseService; _allocationService = allocationService; }
public ComplaintController() { ModelStateWrapper myModelWrapper = new ModelStateWrapper(this.ModelState); theService = new HAVComplaintService(myModelWrapper); theUserRetrievalService = new UserRetrievalService<User>(new EntityHAVUserRetrievalRepository()); theIssueService = new HAVIssueService(myModelWrapper); theIssueReplyService = new HAVIssueReplyService(myModelWrapper); theIssueReplyCommentService = new HAVIssueReplyCommentService(myModelWrapper); thePhotoService = new PhotoService<User, PhotoAlbum, Photo, Friend>(new FriendService<User, Friend>(new EntityHAVFriendRepository()), new EntityHAVPhotoAlbumRepository(), new EntityHAVPhotoRepository()); }
/// <summary> /// Initializes a new instance of the <see cref="SettingsViewModel" /> class. /// </summary> /// <param name="photoService">The photo service.</param> /// <param name="navigationFacade">The navigation facade.</param> /// <param name="dialogService">The dialog service.</param> public SettingsViewModel(IPhotoService photoService, INavigationFacade navigationFacade, IDialogService dialogService) { _photoService = photoService; _navigationFacade = navigationFacade; _dialogService = dialogService; PrivacyCommand = new RelayCommand(OnShowPrivacyPolicy); AboutCommand = new RelayCommand(OnShowAbout); SignOutCommand = new RelayCommand(OnSignOut); }
/// <summary> /// Initializes a new instance of the <see cref="LeaderboardViewModel" /> class. /// </summary> /// <param name="navigationFacade">The navigation facade.</param> /// <param name="photoService">The photo service.</param> /// <param name="dialogService">The dialog service.</param> public LeaderboardViewModel(INavigationFacade navigationFacade, IPhotoService photoService, IDialogService dialogService) { _navigationFacade = navigationFacade; _photoService = photoService; _dialogService = dialogService; PhotoSelectedCommand = new RelayCommand<Photo>(OnPhotoSelected); CategorySelectedCommand = new RelayCommand<Category>(OnCategorySelected); UserSelectedCommand = new RelayCommand<User>(OnUserSelected); }
/// <summary> /// Creates a new instance. /// </summary> /// <param name="photoService">The photo service.</param> /// <param name="dialogService">The dialog service.</param> public CategoriesChooserViewModel(IPhotoService photoService, IDialogService dialogService) { _photoService = photoService; _dialogService = dialogService; _categoryMatchFinder = new CategoryMatchFinder(); // Initialize lists Categories = new List<Category>(); // Initialize commands AddCategoryCommand = new RelayCommand(OnAddCategory, () => CanAddCategory); }
/// <summary> /// Initializes a new instance of the <see cref="SignInViewModel" /> class. /// </summary> /// <param name="navigationFacade">The navigation facade.</param> /// <param name="photoService">The photo service.</param> /// <param name="dialogService">The dialog service.</param> public SignInViewModel(INavigationFacade navigationFacade, IPhotoService photoService, IDialogService dialogService) { _navigationFacade = navigationFacade; _photoService = photoService; _dialogService = dialogService; // Initialize commands ChooseAuthProviderCommand = new RelayCommand<MobileServiceAuthenticationProvider>(OnChooseAuthProvider); // Initialize auth providers AuthenticationProviders = photoService.GetAvailableAuthenticationProviders(); }
/// <summary> /// Creates a new instance. /// </summary> /// <param name="photoService">The photo service.</param> /// <param name="dialogService">The dialog service.</param> public CreateCategoryViewModel(IPhotoService photoService, IDialogService dialogService) { _photoService = photoService; _dialogService = dialogService; _categoryMatchFinder = new CategoryMatchFinder(); // Initialize lists _categories = new List<Category>(); // We use the Category data model as it // handles input validation. Category = new Category(); // We need to be always up-to-date regarding input validation, // lets register for model changes Category.PropertyChanged += Category_PropertyChanged; }
/// <summary> /// The constructor. /// </summary> /// <param name="photoService">The photo service.</param> /// <param name="dialogService">The dialog service.</param> public AboutViewModel(IPhotoService photoService, IDialogService dialogService) { _photoService = photoService; _dialogService = dialogService; // Read package version AppVersion = Package.Current.Id.Version.ToFormattedString(); // Read assembly version var assembly = GetType().GetTypeInfo().Assembly; var versionAttribute = assembly.GetCustomAttribute<AssemblyFileVersionAttribute>(); AssemblyVersion = versionAttribute?.Version; // Initialize commands CopyUserIdToClipboardCommand = new RelayCommand(OnCopyUserIdToClipboard, () => AppEnvironment.Instance.CurrentUser != null); }
// private GridView GridWithPhoto; public MainPage () { InitializeComponent (); _mediaPicker = DependencyService.Get<IMediaPicker> (); _dataBaseService = DependencyService.Get<PhotoService> (); _savePhotoService = DependencyService.Get<ISavePhotoToSecretGallery> (); var list = _dataBaseService.GetThings (); var listSource = new List<ImageSource> (); foreach (var item in list) { AddImageView (item.Source); } // GridWithPhoto = new GridView () { // BackgroundColor = Color.Black, // ItemHeight = Device.OnPlatform (Width, Width, 0), // ItemWidth = Device.OnPlatform (Width, Width, 0), // RowSpacing = Device.OnPlatform (1, 1, 0), // ColumnSpacing = Device.OnPlatform (1, 1, 0), // HeightRequest = 200, // MinimumHeightRequest = 200, // WidthRequest = 200, // MinimumWidthRequest = 200 // }; // // GridWithPhoto.ItemTemplate = new DataTemplate (() => { // var cell = new ViewCell (); // var view = new Image (); // view.BackgroundColor = Color.Blue; // // view.SetBinding (Image.SourceProperty, "Source"); // cell.View = view; // return cell; // }); // // GridWithPhoto.ItemsSource = list; // mainStack.Children.Add (GridWithPhoto); takePhoto.Clicked += TakePhotoClicked; selectPhoto.Clicked += SelectPhotoClicked; }
public string CopyPhotoTo(string photoPath) { _dataBaseService = DependencyService.Get<IPhotoService> (); var imgData = new UIImage (photoPath).AsJPEG (); var ID = _dataBaseService.GetID (); var ExtensionsFile = ".jpg"; string jpgFilename = System.IO.Path.Combine (GetPath (), ID + ExtensionsFile); NSError err = null; if (imgData.Save (jpgFilename, false, out err)) { Console.WriteLine ("saved as " + jpgFilename); } else { Console.WriteLine ("NOT saved as " + jpgFilename + " because" + err.LocalizedDescription); } return ID + ExtensionsFile; }
/// <summary> /// Initializes a new instance of the <see cref="ProfileViewModel" /> class. /// </summary> /// <param name="navigationFacade">The navigation facade.</param> /// <param name="photoService">The photo service.</param> /// <param name="dialogService">The dialog service.</param> public ProfileViewModel(INavigationFacade navigationFacade, IPhotoService photoService, IDialogService dialogService) { _navigationFacade = navigationFacade; _photoService = photoService; _dialogService = dialogService; Photos = new IncrementalLoadingCollection<Photo>(s => { Func<Task<PagedResponse<Photo>>> f = async () => { if (IsShowingCurrentUser) { var stream = await photoService.GetPhotosForCurrentUser(s); return stream; } return await photoService.GetPhotosForUser(User, s); }; return f(); }, async () => await _dialogService.ShowGenericServiceErrorNotification(), OnPhotosLoadingFinished); // Photos collection is being loaded asynchronously, so we need to // watch it to see if the user has any pictures uploaded already. Photos.CollectionChanged += PhotosCollectionChanged; // Initialize commands PhotoSelectedCommand = new RelayCommand<Photo>(OnPhotoSelected); DeletePhotoCommand = new RelayCommand<Photo>(OnDeletePhoto); SetProfilePhotoCommand = new RelayCommand<Photo>(OnSetProfilePhoto); // Before pictures are retrieved from the service, // we want to prevent an initial notification showing up // that the user has no pictures. ArePhotosEmpty = false; }
public TrayIconProccess() { var mainContextMenu = new ContextMenuStrip(); mainContextMenu.Opening += OnMenuOpening; _appName = $"Live Earth Wallpaper v{_version.Major}.{_version.Minor} build {_version.Build}"; _exitMenu = new ToolStripMenuItem("Exit"); _exitMenu.Click += KillApp; _settingsMenu = new ToolStripMenuItem("Settings..."); _settingsMenu.Click += OpenSettings; _forceStartMenu = new ToolStripMenuItem("Update now"); _forceStartMenu.Click += ForceStart; _forceStartMenu.Font = new Font(_forceStartMenu.Font, _forceStartMenu.Font.Style | FontStyle.Bold); mainContextMenu.Items.Add(_forceStartMenu); mainContextMenu.Items.Add(_settingsMenu); mainContextMenu.Items.Add(new ToolStripSeparator()); mainContextMenu.Items.Add(_exitMenu); _trayIcon = new NotifyIcon { Icon = Resources.appico, Text = _appName, Visible = true, ContextMenuStrip = mainContextMenu, BalloonTipTitle = _appName }; ThreadExit += OnCloseListener; _cts = new CancellationTokenSource(); _work = new HimawariService(Notify); _service = Task.Run(() => _work.Start(_cts.Token), _cts.Token); }
public PhotosController(IUserService userService, IPhotoService photoService) { _userService = userService; _photoService = photoService; }
public UsersController(IUserRepository userRepository, IMapper mapper, IPhotoService photoService) { this.userRepository = userRepository; this.mapper = mapper; PhotoService = photoService; }
public GalleryService(IAlbumService albumService, IPhotoService photoService) { _photoService = photoService; _albumService = albumService; }
public ProductController(IProductRepository productRepository, IMapper mapper, IPhotoService photoService) { _photoService = photoService; _mapper = mapper; _productRepository = productRepository; }
public AdminController(IUnitOfWork unitOfWork, UserManager <AppUser> userManager, ILogger <AdminController> logger, IPhotoService photoService, IMapper mapper) { _mapper = mapper; _photoService = photoService; _unitOfWork = unitOfWork; _userManager = userManager; _logger = logger; }
public UserController(ILoggingService loggingService, IPagingService paggingService, IIdentityService identityService, IUserService userService, IPlanService planService, IPhotoService photoService) : base(loggingService, paggingService, identityService, photoService) { this._userService = userService; this._planService = planService; }
public PersonService(IUnitOfWork uow, IMapper mapper, ICurrentUserService currentUserService, IPhotoService photoService, IHttpContextAccessor context) { _uow = uow; _mapper = mapper; _currentUserService = currentUserService; _photoService = photoService; _context = context; }
public PhotoController(IPhotoService photoService) { _photoService = photoService; }
public void SetUp() { _oAuthUserOne = RMM.GenerateStub<IOAuthUser>(); _oAuthUserOne.Id = "Id1"; _oAuthUserOne.UserName = "******"; _oAuthUserOne.FullName = "User One Of America"; _oAuthUserOne.AccessToken = "72157626737672178-oneoneoneoneone1"; _oAuthUserOne.AccessTokenSecret = "111111111111111"; _oAuthService = RMM.GenerateStub<IOAuthService>(); _oAuthService.Stub(s => s.GetOAuthAuthenticationUrl(null)).IgnoreArguments().Return(OAuthURL); _oAuthService.Stub(s => s.GetOAuthUser(@"72157626737672178-oneoneoneoneone1", @"5d1b96a26b494074")).Return(_oAuthUserOne); _userOneTags = new List<string> { "children", "school", "parents" }; _photoOne = RMM.GenerateStub<IPhoto>(); _photoOne.Id = @"PhotoIdOne"; _photoOne.Name = @"PhotoIdOne"; _photoOne.LargeUrl = @"http://www.flickr.com/large/one.jpg"; _photoOne.ThumbNailUrl = @"http://www.flickr.com/tn/one.jpg"; _photoOne.Owner = _oAuthUserOne; _photoOne.Tags = new List<string> { "children", "school" }; _photoTwo = RMM.GenerateStub<IPhoto>(); _photoTwo.Id = @"PhotoIdTwo"; _photoTwo.Name = @"PhotoIdTwo"; _photoTwo.LargeUrl = @"http://www.flickr.com/large/two.jpg"; _photoTwo.ThumbNailUrl = @"http://www.flickr.com/tn/two.jpg"; _photoTwo.Owner = _oAuthUserOne; _photoTwo.Tags = new List<string> { "parents" }; _photoThree = RMM.GenerateStub<IPhoto>(); _photoThree.Id = @"PhotoIdThree"; _photoThree.Name = @"PhotoIdThree"; _photoThree.LargeUrl = @"http://www.flickr.com/large/three.jpg"; _photoThree.ThumbNailUrl = @"http://www.flickr.com/tn/three.jpg"; _photoThree.Owner = _oAuthUserOne; _photoThree.Tags = new List<string> { "parents", "school" }; _photosUserOne = new List<IPhoto> { _photoOne, _photoTwo, _photoThree }; _photoService = RMM.GenerateMock<IPhotoService>(); _photoService.Stub(s => s.GetPhotos(_oAuthUserOne, String.Empty)).Return(_photosUserOne); _photoService.Stub(s => s.GetPhotos(_oAuthUserOne, "school")).Return(_photosUserOne.Where(p => p.Tags.Contains("school"))); _photoService.Stub(s => s.GetAllTags(_oAuthUserOne)).Return(_userOneTags); _builder = new TestControllerBuilder(); _controller = new HomeController(); _builder.InitializeController(_controller); ObjectFactory.Inject<IOAuthService>(_oAuthService); ObjectFactory.Inject<IPhotoService>(_photoService); }
public UserController(IPhotoService photoService, IMapper mapper, IUnitOfWork unitOfWork) { _photoService = photoService; _mapper = mapper; _unitOfWork = unitOfWork; }
public UsersController(DataContext context, IUserRepository userRepository, IMapper mapper, IPhotoService photoService) { this.photoService = photoService; this.mapper = mapper; repo = userRepository; }
public UserRepository(DataContext context, IMapper mapper, IPhotoService photoService) { _context = context; _mapper = mapper; _photoService = photoService; }
public QuestionController(ILoggingService loggingService, IPagingService paggingService, IAreaService areaService, IIdentityService identityService, IQuestionService questionService, ITagService tagService, IPhotoService photoService) : base(loggingService, paggingService, identityService, photoService) { this._questionService = questionService; this._tagService = tagService; _areaService = areaService; }
public UnitOfWork(DataContext context, IMapper mapper, IHttpContextAccessor httpContextAccessor, IPhotoService photoService) { _photoService = photoService; _httpContextAccessor = httpContextAccessor; _context = context; _mapper = mapper; }
public ProjectController(ApplicationDbContext applicationDbContext, IPhotoService photoService) { _portfolioDbContext = applicationDbContext; _photoService = photoService; }
public PhotoController(IUserService userService, IAlbumService albumService, IPhotoService photoService, ILikeService likeService) { this.userservice = userService; this.albumservice = albumService; this.photoservice = photoService; }
public UserRepository(DataContext context, IMapper mapper, IHttpContextAccessor httpContextAccessor, IPhotoService photoService) { _photoService = photoService; _httpContextAccessor = httpContextAccessor; _mapper = mapper; _context = context; }
/// <summary> /// Constructor /// </summary> public VMAddExpense(IMyCompanyClient myCompanyClient, INavigationService navService, IPhotoService photoService) { this.myCompanyClient = myCompanyClient; this.navService = navService; this.photoService = photoService; InitializeCommand(); }
public ChallengeResponseController(IChallengeAcceptedData data, IPhotoService photoService) : base(data) { this.photoService = photoService; }
public AdminController(UserManager <AppUser> userManager, IUnitOfWork unitOfWork, IPhotoService photoService) { this.userManager = userManager; this.unitOfWork = unitOfWork; this.photoService = photoService; }
public GetPhotoContentQueryHandler(IPhotoService photoService) { _photoService = photoService ?? throw new ArgumentNullException(nameof(photoService)); }
public CreateMemoryViewModel(IMemoryService memoryService, IPhotoService photoService) { _memoryService = memoryService; _photoService = photoService; }
public UsersController(IUnitOfWork unitOfWork, IMapper mapper, IPhotoService photoService) { _unitOfWork = unitOfWork; _photoService = photoService; _mapper = mapper; }
public SessionViewModel(ILogService logService, ISessionService sessionService, ISession session, IPhotoService photoService) : base(logService, sessionService) { _session = session; _photoService = photoService; }
public HomeController(IPhotoService photoService, IAlbumService albumService, IMemoryCache cache) { _photoService = photoService; _albumService = albumService; _cache = cache; }
public UpdateAdvertService(IGenericRepository <Advert> genericRepository, IGenericRepository <AdvertType> advertTypeRepository, IFindPhotosByIdService findPhotosByIdService, IPhotoService photoService) { _genericRepository = genericRepository; _advertTypeRepository = advertTypeRepository; _findPhotosByIdService = findPhotosByIdService; _photoService = photoService; }
public ManagementController(ITextAttributeService attrService, IImageProcessor imageProcessor, IConverterFactory factory, IAlbumService albumService, IPhotoService photoService, ITagService tagService, IWatermarkService watermarkService) { _imageProcessor = imageProcessor; _factory = factory; _converterAttr = _factory.GetConverter <ITextAttributeConverter>(); _attrService = attrService; _albumService = albumService; _tagService = tagService; _photoService = photoService; _watermarkService = watermarkService; }
public PicasaGalleryViewModel(IPhotoService<PicasaAlbum, PicasaMediaGroup> photoService, INavigationService navigationService) { _photoService = photoService; _navigationService = navigationService; }
public FacesController(IPhotoService photoService, IMapper mapper) { _photoService = photoService; _mapper = mapper; }
public PhotoController(ApplicationDbContext context, IHostingEnvironment host, IMapper mapper, IOptionsSnapshot <PhotoSettings> options, IPhotoService photoService) { this.context = context; this.photoService = photoService; photoSettings = options.Value; this.mapper = mapper; this.host = host; }
public HomeController(IPhotoService photoService) { this.photoService = photoService; }
public LicensingFacade(IPhotoService photoService, IAuthEnforcementHandler authEnforcementHandler) { _photoService = photoService; _authEnforcementHandler = authEnforcementHandler; }
public UsersController(IUserRepository userRepository, IMapper mapper, IPhotoService photoService) { _photoService = photoService; _mapper = mapper; _userRepository = userRepository; }
/// <summary> /// Initializes a new instance of the <see cref="PhotoDetailsViewModel" /> class. /// </summary> /// <param name="navigationFacade">The navigation facade.</param> /// <param name="photoService">The photo service.</param> /// <param name="authEnforcementHandler">The auth enforcement handler.</param> /// <param name="dialogService">The dialog service.</param> public PhotoDetailsViewModel(INavigationFacade navigationFacade, IPhotoService photoService, IAuthEnforcementHandler authEnforcementHandler, IDialogService dialogService) { _navigationFacade = navigationFacade; _photoService = photoService; _authEnforcementHandler = authEnforcementHandler; _dialogService = dialogService; // Initialize commands GotoCameraCommand = new RelayCommand(OnGotoCamera); DeleteAnnotationCommand = new RelayCommand(OnDeleteAnnotation); GiveGoldCommand = new RelayCommand(OnGiveGold); ReportPhotoCommand = new RelayCommand<ReportReason>(OnReportPhoto); ReportAnnotationCommand = new RelayCommand(OnReportAnnotation); EditPhotoCommand = new RelayCommand(OnEditPhoto); UserSelectedCommand = new RelayCommand<User>(OnUserSelected); }
public PhotosController(IHostingEnvironment host, IVehicleRepository vehicleRepository, IPhotoRepository photoRepository, IMapper mapper, IOptionsSnapshot <PhotoSettings> options, IPhotoService photoService) { this.photoService = photoService; this.photoSettings = options.Value; this.mapper = mapper; this.vehicleRepository = vehicleRepository; this.photoRepository = photoRepository; this.host = host; }