Exemple #1
0
 public static Task <DingTalkApiResult> SendMarkdownAsync(this IDingTalkGoClient client, string title, string text, string[] atMobiles)
 {
     return(client.SendMarkdownAsync(new MarkdownMessage(title, text)
     {
         AtMobiles = atMobiles
     }));
 }
Exemple #2
0
 public static Task <DingTalkApiResult> SendMarkdownAsync(this IDingTalkGoClient client, string title, string text, bool isAtAll = false)
 {
     return(client.SendMarkdownAsync(new MarkdownMessage(title, text)
     {
         IsAtAll = isAtAll
     }));
 }
Exemple #3
0
 public static Task <DingTalkApiResult> SendTextAsync(this IDingTalkGoClient client, string text, string[] atMobiles)
 {
     return(client.SendTextAsync(new TextMessage(text)
     {
         AtMobiles = atMobiles
     }));
 }
Exemple #4
0
 public static Task <DingTalkApiResult> SendTextAsync(this IDingTalkGoClient client, string text, bool isAtAll = false)
 {
     return(client.SendTextAsync(new TextMessage(text)
     {
         IsAtAll = isAtAll
     }));
 }
Exemple #5
0
 public DingTalkGoClientTest()
 {
     _dingTalkGoClient = new ServiceCollection()
                         .AddOptions()
                         .AddLogging()
                         .AddGo()
                         .AddDingTalkGoClient("xxxxxxxxxx")
                         .BuildServiceProvider()
                         .GetRequiredService <IDingTalkGoClient>();
 }
Exemple #6
0
 public static Task <DingTalkApiResult> SendSingleActionCardAsync(this IDingTalkGoClient client, SingleActionCardMessage message)
 {
     return(client.SendAsync(message));
 }
Exemple #7
0
 public static Task <DingTalkApiResult> SendMarkdownAsync(this IDingTalkGoClient client, MarkdownMessage message)
 {
     return(client.SendAsync(message));
 }
Exemple #8
0
 public static Task <DingTalkApiResult> SendAsync(this IDingTalkGoClient dingTalkGoClient, DingTalkMessage message)
 {
     return(dingTalkGoClient.SendAsync(message, null));
 }
Exemple #9
0
 public static Task <DingTalkApiResult> SendLinkAsync(this IDingTalkGoClient client, LinkMessage message)
 {
     return(client.SendAsync(message));
 }