public UserService(IUserRepository userRepository,
                    ILogger <UserService> logger, INewsfeedRepository newsfeedRepository)
 {
     _userRepository     = userRepository;
     _logger             = logger;
     _newsfeedRepository = newsfeedRepository;
 }
Exemple #2
0
 public NewsfeedViewModel(ITextAssetsRepository textRepository, INewsfeedRepository repo, int newsDisplayed = 2, int newsIncrement = 2)
     : base(textRepository)
 {
     Repo          = repo;
     NewsDisplayed = newsDisplayed;
     NewsIncrement = newsIncrement;
 }
Exemple #3
0
 public NewsfeedEditorController(IOptions <StorageSettings> options, ITextAssetsRepository textRepository,
                                 INewsfeedRepository repo)
 {
     _repo          = repo;
     _textRepo      = textRepository;
     _storageFacade = new StorageFacade(options);
 }
Exemple #4
0
 public NewsfeedService(
     INewsfeedRepository newsfeedRepository,
     IUserRepository userRepository,
     IBusClient busCLient)
 {
     _newsfeedRepository = newsfeedRepository;
     _userRepository     = userRepository;
     _busCLient          = busCLient;
 }
        public NewsfeedMessageProcessor(IPrivateRepository _privateRepo, INewsfeedRepository _newsfeedRepo)
        {
            this._privateRepo      = _privateRepo;
            this._newsfeedRepo     = _newsfeedRepo;
            this._remoteConnection = new RemoteConnection();
            #region Mappings
            Mapper.CreateMap <NewsfeedDto, WallPost>();
            Mapper.CreateMap <WallPost, NewsfeedDto>();

            #endregion
        }
Exemple #6
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            SetContentView(Resource.Layout.ActivityNewsfeed);

            _newsfeedRepo                       = TinyIoC.TinyIoCContainer.Current.Resolve <INewsfeedRepository> ();
            _newsfeedMessageProcessor           = TinyIoC.TinyIoCContainer.Current.Resolve <INewsfeedMessageProcessor> ();
            _newsfeedMessageProcessor.OnUpdate += OnNewsFeedUpdate;
            Initialize();
        }
Exemple #7
0
 public NewsfeedProvider(
     INewsfeedCacheRepository feedCacheRepo,
     IFollowerProvider followerProvider,
     INewsfeedReaderCacheRepository newsFeedResponseRepo,
     INewsfeedRepository newsFeedRepo)
 {
     this.feedCacheRepo        = feedCacheRepo;
     this.followerProvider     = followerProvider;
     this.newsFeedResponseRepo = newsFeedResponseRepo;
     this.feedRepo             = newsFeedRepo;
 }
 void Init()
 {
     _newsfeedMessageProcessor = TinyIoC.TinyIoCContainer.Current.Resolve <INewsfeedMessageProcessor> ();
     _newsfeedRepository       = TinyIoC.TinyIoCContainer.Current.Resolve <INewsfeedRepository> ();
     btnCancel        = FindViewById <Button> (Resource.Id.nfa_cancel);
     btnCancel.Click += (object sender, EventArgs e) => Finish();
     btnSend          = FindViewById <Button> (Resource.Id.nfa_btn_send);
     btnSend.Click   += OnSendClicked;
     inpText          = FindViewById <EditText> (Resource.Id.nfa_inp_text);
     imgViewImage     = FindViewById <ImageView> (Resource.Id.nfa_imgView_img);
     if (App.bitmap != null)
     {
         imgViewImage.SetImageBitmap(App.bitmap);
     }
 }
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);
            SetContentView(Resource.Layout.ActivityCommunicationTest);
            _newsfeedMessageProcessor           = TinyIoC.TinyIoCContainer.Current.Resolve <INewsfeedMessageProcessor> ();
            _newsfeedMessageProcessor.OnUpdate += OnWallPostsUpdate;
            _newsfeedRepository = TinyIoC.TinyIoCContainer.Current.Resolve <INewsfeedRepository> ();

            new Thread(() => {
                using (Stream inputSteam = this.Assets.Open("Indien_Goa_Strand-marked_kleen.jpg"))
                {
                    var _originalBitmap = BitmapFactory.DecodeStream(inputSteam);
                    MemoryStream stream = new MemoryStream();
                    _originalBitmap.Compress(Bitmap.CompressFormat.Png, 0, stream);
                    imageBytes = stream.ToArray();
                }
            }).Start();
            Initialze();
        }
Exemple #10
0
 public NewsManageViewModel(INewsfeedRepository newsRepo, ITextAssetsRepository textRepo)
     : base(textRepo) => NewsRepo = newsRepo;
Exemple #11
0
 public NewsfeedController(INewsfeedRepository repo, ITextAssetsRepository textRepository)
 {
     _repo           = repo;
     _textRepository = textRepository;
 }