Esempio n. 1
0
 public static void WriteStatusGroupInfo(this MemoryBuffer buffer, LrpServer.Net.LrpStatusGroupInfo arg)
 {
     buffer.WriteAString(arg.StatusGroupId);
     buffer.WriteSessionStatus(arg.Status);
     buffer.WriteTime(arg.StartTime);
     buffer.WriteTime(arg.EndTime);
     buffer.WriteTime(arg.OpenTime);
     buffer.WriteTime(arg.CloseTime);
 }
Esempio n. 2
0
        public static LrpServer.Net.LrpStatusGroupInfo[] ReadStatusGroupInfoArray(this MemoryBuffer buffer)
        {
            int length = buffer.ReadCount();
            var result = new LrpServer.Net.LrpStatusGroupInfo[length];

            for (int index = 0; index < length; ++index)
            {
                result[index] = buffer.ReadStatusGroupInfo();
            }
            return(result);
        }
Esempio n. 3
0
        public static LrpServer.Net.LrpStatusGroupInfo ReadStatusGroupInfo(this MemoryBuffer buffer)
        {
            var result = new LrpServer.Net.LrpStatusGroupInfo();

            result.StatusGroupId = buffer.ReadAString();
            result.Status        = buffer.ReadSessionStatus();
            result.StartTime     = buffer.ReadTime();
            result.EndTime       = buffer.ReadTime();
            result.OpenTime      = buffer.ReadTime();
            result.CloseTime     = buffer.ReadTime();
            return(result);
        }