using EVCB_OCPP.Packet.Messages;
using System;

namespace EVCB_OCPP.WSServer.Message
{
    internal class MessageResult
    {

        internal MessageResult()
        {
            Success = true;
        }

        internal string RequestId { set; get; }

        internal string UUID { get; set; }

        internal string Action { get; set; }

        internal int Id { get; set; }

        internal bool Success { get; set; }

        internal object Message { get; set; }

        internal Exception Exception { get; set; }

        internal string CallErrorMsg { get; set; }

        internal string ReceivedErrorCode { get; set; }







    }


    internal class BasicMessageResult
    {
        internal IRequest Request { set; get; }

        internal IConfirmation Confirmation { set; get; }

        internal EVCB_OCPP20.Packet.Messages.IRequest Request20 { set; get; }

        internal EVCB_OCPP20.Packet.Messages.IConfirmation Confirmation20 { set; get; }

        internal Exception Exception { get; set; }
    }

}
