예제 #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);
		}
예제 #2
0
		public void afterFavoriteRequest (TCFavouriteHelper helper)
		{
			if (this.Delegate != null)
				this.Delegate.finishActionRequest (this, ACTION_INDEX.FAVOURITE);
		}
예제 #3
0
		public void actionFavoriteFail (TCFavouriteHelper helper, string message)
		{
			MUtils.showAlert (this.parentController, TCLocalizabled.getText ("TitleAlertFavorite"), message);
		}
예제 #4
0
		public void beginFavoriteRequest (TCFavouriteHelper helper)
		{
			if (this.Delegate != null)
				this.Delegate.beginActionRequest (this, ACTION_INDEX.FAVOURITE);
		}
예제 #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));
		}