Skip to content

Instantly share code, notes, and snippets.

@markgibaud
Created December 29, 2017 18:00
Show Gist options
  • Save markgibaud/50fceb5bf17ad2761f62e6787872318a to your computer and use it in GitHub Desktop.
Save markgibaud/50fceb5bf17ad2761f62e6787872318a to your computer and use it in GitHub Desktop.
xamarinblog-sample1
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