namespace EonaCat.Logger.Servers.Zabbix.API
{
    // This file is part of the EonaCat project(s) which is released under the Apache License.
    // See the LICENSE file or go to https://EonaCat.com/License for full license details.

    public class ZabbixApiRequest
    {
        /// <summary>
        /// Jsonrpc version
        /// </summary>
        public string Jsonrpc { get; set; }

        /// <summary>
        /// Method to call
        /// </summary>
        public string Method { get; set; }

        /// <summary>
        /// Id of the request
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        /// Authentification token
        /// </summary>
        public string Auth { get; set; }

        /// <summary>
        /// Parameters of the request
        /// </summary>
        public dynamic Parameters { get; set; }

        public ZabbixApiRequest(string jsonrpc, string method, int id, string auth, dynamic parameters)
        {
            Jsonrpc = jsonrpc;
            Method = method;
            Id = id;
            Auth = auth;
            Parameters = parameters;
        }
    }
}
