Created
December 29, 2017 18:00
-
-
Save markgibaud/50fceb5bf17ad2761f62e6787872318a to your computer and use it in GitHub Desktop.
xamarinblog-sample1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface IConfigurationSettings { string ThirdPartyApiKey {get;} string AnotherThirdPartyApiKey { get; } } public class DebugConfigurationSettings : IConfigurationSettings { public string ThirdPartyApiKey { get; protected set;} public string AnotherThirdPartyApiKey { get; protected set; } public DebugConfigurationSettings () { ThirdPartyApiKey = "debugKey"; AnotherThirdPartyApiKey = "otherDebugKey"; } } public class ReleaseConfigurationSettings : IConfigurationSettings { public string ThirdPartyApiKey { get; protected set;} public string AnotherThirdPartyApiKey { get; protected set; } public ReleaseConfigurationSettings () { ThirdPartyApiKey = "stagingKey"; AnotherThirdPartyApiKey = "otherStagingKey"; } } public class AppStoreConfigurationSettings : IConfigurationSettings { public string ThirdPartyApiKey { get; protected set;} public string AnotherThirdPartyApiKey { get; protected set; } public AppStoreConfigurationSettings() { ThirdParyApiKey = "liveKey"; AnotherThirdParyApiKey = "otherLiveKey"; } } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment