public async Task <FileBox> MessageImage(string messageId, ImageType imageType) { var request = new MessageImageRequest(); request.Id = messageId; request.Type = (github.wechaty.grpc.puppet.ImageType)imageType; var response = await grpcClient.MessageImageAsync(request); return(JsonConvert.DeserializeObject <FileBox>(response.Filebox)); }
public override async Task <FileBox> MessageImage(string messageId, Puppet.Schemas.ImageType imageType) { var request = new MessageImageRequest { Id = messageId, Type = (github.wechaty.grpc.puppet.ImageType)imageType }; var response = await grpcClient.MessageImageAsync(request); var fileBox = response.Filebox; return(FileBox.FromJson(fileBox)); }