public static StripeReporter CreateStep(StripeReporterConfiguration configuration) { if (configuration.GetType() == typeof(HipChatReporterConfiguration)) { return(new HipChatReporter(configuration as HipChatReporterConfiguration)); } if (configuration.GetType() == typeof(PushoverReporterConfiguration)) { return(new PushoverReporter(configuration as PushoverReporterConfiguration)); } if (configuration.GetType() == typeof(SlackReporterConfiguration)) { return(new SlackReporter(configuration as SlackReporterConfiguration)); } return(null); }
protected StripeReporter(StripeReporterConfiguration configuration) { this._configuration = configuration; }