Beispiel #1
0
		partial void favoriteClicked (NSObject sender)
		{
			if (!MApplication.getInstance ().isLogedIn) {
				requireLogin ();
				return;
			}

			TCFavouriteHelper favouriteHandler = new TCFavouriteHelper (this.parentController);
			favouriteHandler.specialistId = this.specialistInfo.Account.Id;
			favouriteHandler.Delegate = this;
			favouriteHandler.favourite (specialistInfo.IsFavourite);
		}
Beispiel #2
0
		public void afterFavoriteRequest (TCFavouriteHelper helper)
		{
			if (this.Delegate != null)
				this.Delegate.finishActionRequest (this, ACTION_INDEX.FAVOURITE);
		}
Beispiel #3
0
		public void actionFavoriteFail (TCFavouriteHelper helper, string message)
		{
			MUtils.showAlert (this.parentController, TCLocalizabled.getText ("TitleAlertFavorite"), message);
		}
Beispiel #4
0
		public void beginFavoriteRequest (TCFavouriteHelper helper)
		{
			if (this.Delegate != null)
				this.Delegate.beginActionRequest (this, ACTION_INDEX.FAVOURITE);
		}
Beispiel #5
0
		public void actionFavoriteSuccess (TCFavouriteHelper helper, string message)
		{
			specialistInfo.IsFavourite = !specialistInfo.IsFavourite;
			setFavouriteStatus (specialistInfo);
			MUtils.showAlert (this.parentController, TCLocalizabled.getText ("TitleAlertFavorite"), String.Format (message, specialistInfo.Account.Name));
		}