private void Init(ItsmeSettings settings) { Console.WriteLine(Directory.GetCurrentDirectory()); var response = Wrapper.Init(settings.ToJson()); var err = Marshal.PtrToStringAnsi(response); if (err == null) { return; } var error = Error.FromJson(err); throw new ItsmeException(error); }
public Client(ItsmeSettings settings) : base() { Init(settings); }