Example #1
0
 public List <BridgeDayEntries> Load([NotNull] HouseholdKey householdKey)
 {
     if (Srls == null)
     {
         throw new LPGException("Data Logger was null.");
     }
     return(Srls.ReadFromJson <BridgeDayEntries>(ResultTableDefinition, householdKey, ExpectedResultCount.OneOrMore));
 }
Example #2
0
 public CalcParameters Load()
 {
     if (Srls == null)
     {
         throw new LPGException("Data Logger was null.");
     }
     return(Srls.ReadFromJson <CalcParameters>(ResultTableDefinition, Constants.GeneralHouseholdKey, ExpectedResultCount.One)[0]);
 }
Example #3
0
 public List <CalcTravelRouteDto> Load([NotNull] HouseholdKey key)
 {
     if (Srls == null)
     {
         throw new LPGException("Data Logger was null.");
     }
     return(Srls.ReadFromJson <CalcTravelRouteDto>(ResultTableDefinition, key, ExpectedResultCount.OneOrMore));
 }
Example #4
0
 public List <AffordanceEnergyUseEntry> Load([NotNull] HouseholdKey key)
 {
     if (Srls == null)
     {
         throw new LPGException("Data Logger was null.");
     }
     return(Srls.ReadFromJson <AffordanceEnergyUseEntry>(ResultTableDefinition, key, ExpectedResultCount.OneOrMore));
 }
 public List <CalcHouseDto> Load()
 {
     if (Srls == null)
     {
         throw new LPGException("Data Logger was null.");
     }
     return(Srls.ReadFromJson <CalcHouseDto>(ResultTableDefinition, Constants.GeneralHouseholdKey, ExpectedResultCount.OneOrMore));
 }
 public List <TransportationDeviceStateEntry> Load([NotNull] HouseholdKey key)
 {
     if (Srls == null)
     {
         throw new LPGException("Data Logger was null.");
     }
     return(Srls.ReadFromJson <TransportationDeviceStateEntry>(ResultTableDefinition, key, ExpectedResultCount.OneOrMore));
 }
 public List<TransportationEventEntry> Load([NotNull] HouseholdKey hhkey)
 {
     if (Srls == null)
     {
         throw new LPGException("Data Logger was null.");
     }
     var res = Srls.ReadFromJson<TransportationEventEntry>(ResultTableDefinition, hhkey, ExpectedResultCount.OneOrMore);
     return res;
 }
Example #8
0
        public List <CalcVariableEntry> Read([NotNull] HouseholdKey hhkey)
        {
            if (Srls == null)
            {
                throw new LPGException("Data Logger was null.");
            }
            var res = Srls.ReadFromJson <CalcVariableEntry>(ResultTableDefinition, hhkey, ExpectedResultCount.OneOrMore);

            return(res);
        }
        public List <CalcDeviceDto> Load([NotNull] List <HouseholdKeyEntry> keys)
        {
            if (Srls == null)
            {
                throw new LPGException("Data Logger was null.");
            }

            var alldevices = new List <CalcDeviceDto>();

            foreach (var key in keys)
            {
                alldevices.AddRange(Srls.ReadFromJson <CalcDeviceDto>(ResultTableDefinition, key.HHKey, ExpectedResultCount.OneOrMore));
            }

            return(alldevices);
        }