tik4net icon indicating copy to clipboard operation
tik4net copied to clipboard

Update to handle the new RouterOS v7.18 api syntax with empty responses

Open xPucTu4 opened this issue 10 months ago • 4 comments

  • Added handling for ApiEmptySentence in ApiCommand.cs to return an empty list when the first response is empty.
  • Introduced !empty case in ApiConnection.cs to process empty responses.
  • Created ApiEmptySentence class to manage empty response types, enhancing API functionality.

Closes #103 This is a duplicate of PR #104 , recreated due to unintended additional changes in the original PR.

xPucTu4 avatar Feb 18 '25 17:02 xPucTu4

Hi, Do you have any idea on the timing of the release of this version? For me it has become a blocker and it would be nice to have a new release of the library.

luposky avatar Mar 19 '25 08:03 luposky

Hi, Do you have any idea on the timing of the release of this version? For me it has become a blocker and it would be nice to have a new release of the library.

The original maintainer of this project has been MIA for a few years now. So there likely won't be any updates to the original NuGet package, unless he suddenly returns.

But you can download the master from https://github.com/Deantwo/tik4net or https://github.com/xPucTu4/tik4net and compile it yourself instead, since they both have this and my other changes already.

Deantwo avatar Mar 19 '25 09:03 Deantwo

Thanks for the quick and precise answer, I was not aware of this fact, I would have waited months before realizing it. Thanks again, I just add that as an end user it would be nice if someone published an updated version on nuget (maybe a tik4netv2) and continued this project.

luposky avatar Mar 19 '25 09:03 luposky

I actually published it a while ago: SinisterDev.Tik4Net 3.5.19-pre - we use it in few active projects already and SinisterDev.Tik4Net 3.5.20-pre - changed targeting, needs testing

It's not showing up in searches because I haven’t had time to set up a public GitHub repo and a proper build/publish pipeline yet. If anyone is willing to help with this, it would be greatly appreciated!

xPucTu4 avatar Mar 19 '25 10:03 xPucTu4