Ejemplo n.º 1
0
 public static bool PossuiContexto(this WebhookRequest webhook, string contexto)
 {
     return webhook.ObterContextos().Any(x => x.ContextName.ContextId.Contains(contexto))
 }
Ejemplo n.º 2
0
 public static string ObterParametroContexto(this WebhookRequest webhook, string field)
 {
     return(webhook.ObterContextos().First().Parameters.Fields[field].ListValue.Values[0].StringValue);
 }