SummaryBackCommand = new Command(ExecuteCloseSummary);
}
+ /// <summary>
+ /// Gets a <see cref="ICommand"/> of SummaryView back button.
+ /// </summary>
public ICommand SummaryBackCommand { get; private set; }
+ /// <summary>
+ /// Gets a <see cref="ICommand"/> of SummaryView ok button.
+ /// </summary>
public ICommand SummaryOkCommand
{
get => summaryOkCommand;
}
}
+ /// <summary>
+ /// Gets or sets a value indicating whether the loading view is visible and counting.
+ /// </summary>
public bool IsLoading
{
get => isLoading;
}
}
+ /// <summary>
+ /// Gets a title text of summary pop-up.
+ /// </summary>
public string SummaryTitle
{
get => summaryTitle;
public int TotalCount { get; private set; } = 27;
/// <summary>
- /// Repetitions made in current Workout
/// Gets the property specifying the correctness of the exercise - values ranging from 0 to 100.
/// </summary>
public int Score
public TimeSpan TimeLeft { get; private set; } = TimeSpan.FromSeconds(27);
/// <summary>
- /// Gets the current workout state.
+ /// Gets or sets the current workout state.
/// </summary>
public WorkoutState State
{
/// </summary>
public string PreviewVideoUrl { get; private set; }
+ /// <summary>
+ /// Gets a value indicating whether the summary pop-up is visible.
+ /// </summary>
public bool IsSummaryVisible
{
get => isSummaryVisible;
private void ConfirmTryAgain()
{
- SummaryOkCommand = new Command(() => { ExecuteChangeWorkout(0); });
+ SummaryOkCommand = new Command(() => { ExecuteChangeWorkout(); });
SummaryTitle = GetSummaryTitle(SummaryType.TryAgain);
IsSummaryVisible = true;
}
{
public partial class ExercisingView : Fitness.Controls.Page
{
+ /// <summary>
+ /// Is workout playing bindable property.
+ /// </summary>
public static readonly BindableProperty IsPlayingProperty = BindableProperty.Create(
"IsPlaying",
typeof(bool),
true,
propertyChanged: OnIsPlayingChanged);
+ /// <summary>
+ /// Is workout loading bindable property.
+ /// </summary>
public static readonly BindableProperty IsLoadingProperty = BindableProperty.Create(
"IsLoading",
typeof(bool),
public event EventHandler Loaded;
+ /// <summary>
+ /// Shows the loading view and starts counting down.
+ /// </summary>
public void StartLoading()
{
if (BindingContext is LoadingViewModel viewModel)