예제 #1
0
        public async void AddReviewBtn_Click(object sender, EventArgs e)
        {
            comment     = commentTV.Text;
            overall     = overallRB.Rating;
            quality     = qualityRB.Rating;
            punctuality = punctualityRB.Rating;
            flexibility = flexibilityRB.Rating;
            enthusiasm  = enthusiasmRB.Rating;
            similarity  = similarityRB.Rating;

            int result = await MusicoConnUtil.AddReview(comment, overall, quality, punctuality, flexibility, enthusiasm, similarity, userId, bandId);

            Intent intent = new Intent(this, typeof(ReviewsActivity));

            intent.PutExtra("name", bandName);
            intent.PutExtra("id", userId);

            Toast.MakeText(this, "Review added!", ToastLength.Short).Show();
            StartActivity(intent);
            Finish();
        }