예제 #1
0
        protected override async void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            ActivityInstance = this;
            progress         = new ProgressDialogHelper(this);
            signInService    = new SignInService();
            bitmapService    = new BitmapOperationService();
            appSettings      = SharedPreferencesHelper.GetAppSettings(this);
            if (!appSettings.ChatDisabled)
            {
                this.chatHubClientService = ChatHubClientService.GetServiceInstance(bearerToken);
            }
            this.messagesService = new MessagesService(bearerToken);
            SetContentView(Resource.Layout.ConversationActivity);
            SetupViews(savedInstanceState);
            SetupConversationToolbar();
            pageNumber = 0;
            GetExtras();
            player = new MediaPlayer();
            player.SetDataSource(this, Android.Net.Uri.Parse("android.resource://" + this.PackageName + "/raw/" + Resource.Raw.message_sound));
            player.Prepare();
            progress.ShowProgressDialog("Trwa pobieranie wiadomoœci...");
            await SetupIntelocutorInfo();
            await GetAndDisplayMesages(savedInstanceState);

            coversationsLayoutWrapper.Visibility = ViewStates.Visible;
            progress.CloseProgressDialog();
        }
 public AdvertisementItemListAdapter(Activity context, List <AdvertisementItemShort> advertisementItems, AdvertisementsKind advertisementsKind, IInfiniteScrollListener infiniteScrollListener)
 {
     createdCount                = 0;
     this.AdvertisementItems     = advertisementItems;
     this.context                = context;
     this.bitmapOperationService = new BitmapOperationService();
     this.infiniteScrollListener = infiniteScrollListener;
     this.advertisementsKind     = advertisementsKind;
 }
예제 #3
0
 public NavigationViewMenu(BaseActivityWithNavigationDrawer activity, SharedPreferencesHelper sharedPreferencesHelper)
 {
     this.activity = activity;
     signInService = new SignInService();
     this.bitmapOperationService  = new BitmapOperationService();
     this.progressDialogHelper    = new ProgressDialogHelper(activity);
     this.sharedPreferencesHelper = sharedPreferencesHelper;
     this.gpsService           = GpsLocationService.GetServiceInstance(activity);
     this.googleMapsAPIService = new GoogleMapsAPIService();
     this.categoriesHelper     = new CategoriesSelectingHelper(activity, (string)this.sharedPreferencesHelper.GetSharedPreference <string>(SharedPreferencesKeys.BEARER_TOKEN));
     this.sizeSelectingHelper  = new SizeSelectingHelper(activity);
     this.appSettings          = SharedPreferencesHelper.GetAppSettings(activity);
     SetupViews(activity);
 }
예제 #4
0
 protected override async void OnCreate(Bundle savedInstanceState)
 {
     base.OnCreate(savedInstanceState);
     this.bitmapOperationService    = new BitmapOperationService();
     this.advertisementItemService  = new AdvertisementItemService(bearerToken);
     this.gpsLocationService        = new GpsLocationService(this, null);
     this.categoriesSelectingHelper = new CategoriesSelectingHelper(this, bearerToken);
     this.sizeSelectingHelper       = new SizeSelectingHelper(this);
     this.categoryInfoModel         = new CategoryInfoModel();
     SetContentView(Resource.Layout.AddNewAdvertisementActivity);
     base.SetupToolbar();
     SetupViews();
     photosPaths     = new List <string>();
     tempPhotosPaths = new List <string>();
     await GetExtrasIsExistAndFillForm();
 }
예제 #5
0
        protected override async void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            gpsLocationService            = new GpsLocationService(this, null);
            this.advertisementItemService = new AdvertisementItemService(bearerToken);
            feedbackService             = new FeedbackService(bearerToken);
            messagesService             = new MessagesService(bearerToken);
            this.bitmapOperationService = new BitmapOperationService();

            SetContentView(Resource.Layout.AdvertisementItemDetailsActivity);
            base.SetupToolbar();
            SetupViews();
            await GetAndShowAdvertisementDetails();

            firstEntryOnUserAdvertisementsList = true;
        }
예제 #6
0
 public ConversationsListAdapter(List <ConversationItemModel> conversationsItems, IInfiniteScrollListener infiniteScrollListener)
 {
     this.ConversationItems      = conversationsItems;
     this.infiniteScrollListener = infiniteScrollListener;
     this.bitmapService          = new BitmapOperationService();
 }
 public PhotosViewPagerAdapter(List <byte[]> photos)
 {
     this.photos = photos;
     this.bitmapOperationService = new BitmapOperationService();
 }
예제 #8
0
 public AdvertisementPhotosListAdapter(List <byte[]> photos)
 {
     this.photos = photos;
     this.bitmapOperationService = new BitmapOperationService();
 }