Gurux.DLMS.TranslatorStandardTags.GetLnTags C# (CSharp) Method

GetLnTags() static private method

Get LN tags.
static private GetLnTags ( TranslatorOutputType type, string>.SortedList list ) : void
type TranslatorOutputType
list string>.SortedList
return void
    internal static void GetLnTags(TranslatorOutputType type, SortedList<int, string> list)
    {
        GXDLMSTranslator.AddTag(list, Command.GetRequest, "x:get-request");
        list.Add((int)Command.GetRequest << 8 | (int)GetCommandType.Normal,
                 "x:get-request-normal");
        list.Add((int)Command.GetRequest << 8 | (int)GetCommandType.NextDataBlock,
                 "x:get-request-next");
        list.Add((int)Command.GetRequest << 8 | (int)GetCommandType.WithList,
                 "x:get-request-with-list");
        GXDLMSTranslator.AddTag(list, Command.SetRequest, "x:set-request");
        list.Add((int)Command.SetRequest << 8 | (int)SetRequestType.Normal,
                 "x:set-request-normal");
        list.Add((int)Command.SetRequest << 8 | (int)SetRequestType.FirstDataBlock,
                 "x:set-request-first-data-block");
        list.Add((int)Command.SetRequest << 8 | (int)SetRequestType.WithDataBlock,
                 "x:set-request-with-data-block");
        list.Add((int)Command.SetRequest << 8 | (int)SetRequestType.WithList,
                 "x:set-request-with-list");
        GXDLMSTranslator.AddTag(list, Command.MethodRequest,
                                "x:action-request");
        list.Add((int)Command.MethodRequest << 8 | (int)ActionRequestType.Normal,
                 "x:action-request-normal");
        list.Add((int)Command.MethodRequest << 8 | (int)ActionRequestType.NextBlock,
                 "ActionRequestForNextDataBlock");
        list.Add((int)Command.MethodRequest << 8 | (int)ActionRequestType.WithList,
                 "x:action-request-with-list");
        GXDLMSTranslator.AddTag(list, Command.MethodResponse,
                                "x:action-response");
        list.Add((int)Command.MethodResponse << 8 | (int)ActionResponseType.Normal,
                 "x:action-response-normal");
        list.Add((int)Command.MethodResponse << 8 | (int)ActionResponseType.WithFirstBlock,
                 "x:action-response-with-first-block");
        list.Add((int)Command.MethodResponse << 8 | (int)ActionResponseType.WithList,
                 "x:action-response-with-list");
        list.Add((int)TranslatorTags.SingleResponse, "x:single-response");
        list.Add((int)Command.DataNotification, "x:data-notification");
        GXDLMSTranslator.AddTag(list, Command.GetResponse, "x:get-response");
        list.Add((int)Command.GetResponse << 8 | (int)GetCommandType.Normal,
                 "x:get-response-normal");
        list.Add((int)Command.GetResponse << 8 | (int)GetCommandType.NextDataBlock,
                 "x:get-response-with-data-block");
        list.Add((int)Command.GetResponse << 8 | (int)GetCommandType.WithList,
                 "x:get-response-with-list");
        GXDLMSTranslator.AddTag(list, Command.SetResponse, "x:set-response");
        list.Add((int)Command.SetResponse << 8 | (int)SetResponseType.Normal,
                 "x:set-response-normal");
        list.Add((int)Command.SetResponse << 8 | (int)SetResponseType.DataBlock,
                 "x:set-response-data-block");
        list.Add((int)Command.SetResponse << 8 | (int)SetResponseType.LastDataBlock,
                 "x:set-response-with-last-data-block");
        list.Add((int)Command.SetResponse << 8 | (int)SetResponseType.WithList,
                 "x:set-response-with-list");

        GXDLMSTranslator.AddTag(list, Command.AccessRequest,
                                "x:access-request");
        list.Add((int)Command.AccessRequest << 8 | (int)AccessServiceCommandType.Get,
                 "x:access-request-Get");
        list.Add((int)Command.AccessRequest << 8 | (int)AccessServiceCommandType.Set,
                 "x:access-request-set");
        list.Add((int)
                 Command.AccessRequest << 8 | (int)AccessServiceCommandType.Action,
                 "x:access-request-action");
        GXDLMSTranslator.AddTag(list, Command.AccessResponse,
                                "x:access-response");
        list.Add((int)Command.AccessResponse << 8 | (int)AccessServiceCommandType.Get,
                 "x:access-response-Get");
        list.Add((int)Command.AccessResponse << 8 | (int)AccessServiceCommandType.Set,
                 "x:access-response-set");
        list.Add((int)Command.AccessResponse << 8 | (int)AccessServiceCommandType.Action,
                 "x:access-response-action");

        list.Add((int)TranslatorTags.AccessRequestBody, "x:access-request-body");
        list.Add((int)TranslatorTags.ListOfAccessRequestSpecification,
                 "x:access-request-specification");
        list.Add((int)TranslatorTags.AccessRequestSpecification,
                 "x:Access-Request-Specification");
        list.Add((int)TranslatorTags.AccessRequestListOfData,
                 "x:access-request-list-of-data");

        list.Add((int)TranslatorTags.AccessResponseBody, "x:access-response-body");
        list.Add((int)TranslatorTags.ListOfAccessResponseSpecification,
                 "x:access-response-specification");
        list.Add((int)TranslatorTags.AccessResponseSpecification,
                 "x:Access-Response-Specification");
        list.Add((int)TranslatorTags.AccessResponseListOfData,
                 "x:access-response-list-of-data");
    }