示例#1
0
        private bool Handle_PbPushGroupMsg(Core core, byte[] pbData)
        {
            var root = new ProtoTreeRoot(pbData, true);

            {
                root.GetLeafString("0A.0A.4A.42", out var groupName);
                root.GetLeafVar("0A.0A.4A.08", out var groupNumber);

                root.GetLeafString("0A.0A.4A.22", out var memberName);
                root.GetLeafVar("0A.0A.08", out var memberNumber);

                root.GetLeafString("0A.1A.0A.12.0A.0A", out var groupMsg);

                Console.WriteLine($"{groupName}[{groupNumber}] - {memberName}[{memberNumber}]: {groupMsg}");
            }
            return(true);
        }