Exemplo n.º 1
0
        public override async Task <string?> MessageSendUrl(string conversationId, UrlLinkPayload urlLinkPayload)
        {
            var request = new MessageSendUrlRequest()
            {
                ConversationId = conversationId,
                UrlLink        = JsonConvert.SerializeObject(urlLinkPayload)
            };

            var response = await grpcClient.MessageSendUrlAsync(request);

            return(response?.Id);
        }
Exemplo n.º 2
0
 public async Task<IMessageAppService> Say(UrlLinkPayload urlLink)
 {
     var msgId = await _puppetService.MessageSendUrl(RoomId, urlLink);
     return await TryLoad(msgId);
 }
Exemplo n.º 3
0
 public abstract Task <string?> MessageSendUrl(string conversationId, UrlLinkPayload urlLinkPayload);
Exemplo n.º 4
0
 public UrlLink(UrlLinkPayload payload) => Payload = payload;