1234567891011121314151617181920212223242526272829303132 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace Dfs.WayneChina.FairbanksRTData.UniversalApiModels
- {
- public class AppConfig
- {
- public string SiteId { get; set; } = "testSite1";
- public string DeviceId { get; set; } = "900001";
- public string Host { get; set; } = "localhost";
- public int Port { get; set; } = 22;
- public string UserName { get; set; } = "tester";
- public string Password { get; set; } = "P@ssw0rd";
- public int TankReadInterval { get; set; } = 30;
- public int UploadInterval { get; set; } = 1;
- public override string ToString()
- {
- return GetType().GetProperties().Aggregate(string.Empty,
- (result, next) => result + $"{next.Name} : {(next.GetValue(this)?.ToString()) ?? string.Empty} ");
- }
- }
- }
|