示例#1
0
 public static void SetBlob(this WebhookData webhook, WebhookBlob blob)
 {
     webhook.Blob = Encoding.UTF8.GetBytes(JsonConvert.SerializeObject(blob));
 }
示例#2
0
 public static WebhookBlob GetBlob(this WebhookData webhook)
 {
     return(JsonConvert.DeserializeObject <WebhookBlob>(Encoding.UTF8.GetString(webhook.Blob)));
 }