using System; using ShareeBike.View.BikesAtStation; using ShareeBike.View.Contact; using ShareeBike.View.CopriWebView; using ShareeBike.View.SelectBike; using ShareeBike.View.LegalInformation; using ShareeBike.View.Help; using ShareeBike.View.Login; using ShareeBike.View.Map; using ShareeBike.View.MiniSurvey; using ShareeBike.View.MyBikes; using ShareeBike.View.Settings; using ShareeBike.View.WhatsNew; using ShareeBike.View.WhatsNew.Gtc; using Xamarin.Forms; namespace ShareeBike.View { public static class ViewTypesTypeProvider { public static Type GetViewType(this ViewTypes viewType) { switch (viewType) { case ViewTypes.LoginPage: return typeof(LoginPage); case ViewTypes.MapPage: return typeof(MapPage); case ViewTypes.RegisterPage: return typeof(RegisterPage); case ViewTypes.PasswordForgottenPage: return typeof(PasswordForgottenPage); case ViewTypes.MyBikesPage: return typeof(MyBikesPage); case ViewTypes.SettingsPage: return typeof(SettingsPage); case ViewTypes.LegalInformationPage: return typeof(LegalInformationPage); case ViewTypes.HelpPage: return typeof(HelpPage); case ViewTypes.ManageAccountPage: return typeof(ManageAccountPage); case ViewTypes.GtcPage: return typeof(GtcPage); case ViewTypes.WhatsNewPage: return typeof(WhatsNewPage); case ViewTypes.BikesAtStation: return typeof(BikesAtStationPage); case ViewTypes.ContactPage: return typeof(ContactPage); case ViewTypes.SelectStationPage: return typeof(SelectStationPage); case ViewTypes.MiniSurvey: return typeof(MiniSurveyPage); case ViewTypes.SelectBikePage: return typeof(SelectBikePage); default: return typeof(ContentPage); } } } }