示例#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();
 }