Exemplo n.º 1
0
        public override Enums.Response ProcessPacket(LightingConsole console, int type)
        {
            foreach (SKGConfEntry entry in Entries)
            {
                SKG skg = console.Stromkreisgruppen.Find(x => x.Number == entry.SKGNum);
                if (skg is null)
                {
                    skg = new SKG(entry.SKGNum, entry.SKGName);
                    console.Stromkreisgruppen.Add(skg);
                    continue;
                }

                skg.Number = entry.SKGNum;
                skg.Name   = entry.SKGName;
            }
            return(Enums.Response.OK);
        }
 public async Task <FehlerT> Select(AWType awType, SKG skg) => await QueryAsync(new SKGAnwahl(awType, skg)).ConfigureAwait(false);