public static PlatformDependendViewModel GetConfigurationViewModel(AppInfo appInfo) { PlatformDependendViewModel retVal = null; switch (appInfo.Platform) { case AppInfoPlatforms.WindowsPhone: retVal = new AppConfigWPViewModel(appInfo); break; case AppInfoPlatforms.MacOS: retVal = new NotSupportedPlatformViewModel(); break; case AppInfoPlatforms.Android: retVal = new AppConfigAndroidViewModel(appInfo); break; case AppInfoPlatforms.iOS: retVal = new NotSupportedPlatformViewModel(); break; case AppInfoPlatforms.Windows: retVal = new AppConfigWindowsViewModel(); break; case AppInfoPlatforms.Custom: retVal = new AppConfigCustomViewModel(appInfo); break; } if (retVal == null) { retVal = new NotSupportedPlatformViewModel(); } return retVal; }
public static UploadStrategy GetStrategy(AppInfo forApp) { switch (forApp.Platform) { case AppInfoPlatforms.WindowsPhone: return new UploadStrategyCustom(forApp); case AppInfoPlatforms.Android: return new UploadStrategyAndroid(forApp); case AppInfoPlatforms.Windows: return new UploadStrategyCustom(forApp); case AppInfoPlatforms.Custom: return new UploadStrategyCustom(forApp); } return null; }
internal UploadStrategyAndroid(AppInfo appInfo):base(appInfo){ }
public void CompleteWithLocalData(AppInfo app) { this.RegularExpression = app.RegularExpression; this.DefaultNotifyType = app.DefaultNotifyType; this.DefaultStatusType = app.DefaultStatusType; this.DefaultReleaseType = app.DefaultReleaseType; this.DefaultIsMandatory = app.DefaultIsMandatory; }
public AppConfigWPViewModel(AppInfo app) { }
protected UploadStrategy(AppInfo appInfo) { this._appInfo = appInfo; }
public AppConfigCustomViewModel(AppInfo appInfo) { this._app = appInfo; }
public AppDialogViewModel(AppInfo appInfo) { this.AppInfo = appInfo; this.ResetToDefaults(); }
internal UploadStrategyCustom(AppInfo appInfo) : base(appInfo) { }
public AppConfigViewModel(AppInfo app) { this._configuration = IoC.Get<Configuration>(); this._app = app; this.ResetValues(); }
public AppConfigAndroidViewModel(AppInfo appInfo) { this._app = appInfo; }