예제 #1
0
        /// <summary>
        /// Load Webhook configuration into a Webhook configuration object
        /// </summary>
        /// <returns>A Webhook configuration object</returns>
        public static Webhook Load(string preset = "maestrano")
        {
            var config = new Webhook();

            config.Account = WebhookAccount.Load(preset);
            config.Connec  = WebhookConnec.Load(preset);
            return(config);
        }
예제 #2
0
 public Webhook(string preset = "maestrano")
 {
     Account = WebhookAccount.Load(preset);
     Connec  = WebhookConnec.Load(preset);
 }
예제 #3
0
 public Webhook()
 {
     Account = WebhookAccount.Load();
     Connec  = WebhookConnec.Load();
 }