Gurux.DLMS.GXDLMS.GetGloMessage C# (CSharp) Method

GetGloMessage() private static method

Get used glo message.
private static GetGloMessage ( Command cmd ) : byte
cmd Command
return byte
        private static byte GetGloMessage(Command cmd)
        {
            switch (cmd)
            {
                case Command.ReadRequest:
                    cmd = Command.GloReadRequest;
                    break;
                case Command.GetRequest:
                    cmd = Command.GloGetRequest;
                    break;
                case Command.WriteRequest:
                    cmd = Command.GloWriteRequest;
                    break;
                case Command.SetRequest:
                    cmd = Command.GloSetRequest;
                    break;
                case Command.MethodRequest:
                    cmd = Command.GloMethodRequest;
                    break;
                case Command.ReadResponse:
                    cmd = Command.GloReadResponse;
                    break;
                case Command.GetResponse:
                    cmd = Command.GloGetResponse;
                    break;
                case Command.WriteResponse:
                    cmd = Command.GloWriteResponse;
                    break;
                case Command.SetResponse:
                    cmd = Command.GloSetResponse;
                    break;
                case Command.MethodResponse:
                    cmd = Command.GloMethodResponse;
                    break;
                default:
                    throw new GXDLMSException("Invalid GLO command.");
            }
            return (byte)cmd;
        }