79489572

Date: 2025-03-06 13:53:29
Score: 0.5
Natty:
Report link

You need to use TarantoolTuple, everything works with it. Below is an example.

var turple = TarantoolTuple.Create(fromToHash, newest, oldest, _limit);
var result = _client.Call<TarantoolTuple<long, long, long, int>, TarantoolTuple<long, string, string, long, string, string>[]>("message_get_list_in_range", turple).Result;
var res = result.Data.FirstOrDefault();
if (res != null)
{
    var output = res.Select(x => new MessageEntity()
    {
        Id = x.Item1,
        From = x.Item2,
        To = x.Item3,
        FromToHash = x.Item4,
        SendingTime = DateTime.Parse(x.Item5),
        Text = x.Item6
    });

    return output;
}
else
{
    return new List<MessageEntity>();
}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Vladislav Filatov