// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MS-PL license.
// See the LICENSE file in the project root for more information.

namespace MvvmCross.ViewModels
{
#nullable enable
    public class MvxViewToViewModelNameMapping
        : IMvxNameMapping
    {
        public string ViewModelPostfix { get; set; }

        public MvxViewToViewModelNameMapping()
        {
            ViewModelPostfix = "ViewModel";
        }

        public virtual string Map(string inputName)
        {
            return inputName + ViewModelPostfix;
        }
    }
#nullable restore
}
