public static string GetDescription(this PNPushEnvironment @this) { if (@this.Equals(PNPushEnvironment.Production)) { return("production"); } else if (@this.Equals(PNPushEnvironment.Development)) { return("development"); } else { return("none"); } }
public static void SetEnvironment(PNPushEnvironment env, ref StringBuilder parameterBuilder) { if (env.Equals(PNPushEnvironment.Production)) { parameterBuilder.AppendFormat("&environment={0}", "production"); } else { parameterBuilder.AppendFormat("&environment={0}", "development"); } }