Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the NAUser class.
 /// </summary>
 /// <param name="administrative">Contains administrative information
 /// related to the user</param>
 /// <param name="devices">An array of string containing the ids of the
 /// devices owned by the user</param>
 /// <param name="friendDevices">An array of string containing the ids
 /// of the devices on which the user has a "guest" access
 /// </param>
 public NAUser(string _id = default(string), NAUserAdministrative administrative = default(NAUserAdministrative), NADate dateCreation = default(NADate), IList <string> devices = default(IList <string>), IList <string> friendDevices = default(IList <string>), string mail = default(string), int?timelineNotRead = default(int?), int?timelineSize = default(int?))
 {
     this._id        = _id;
     Administrative  = administrative;
     DateCreation    = dateCreation;
     Devices         = devices;
     FriendDevices   = friendDevices;
     Mail            = mail;
     TimelineNotRead = timelineNotRead;
     TimelineSize    = timelineSize;
     CustomInit();
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the NAModule class.
 /// </summary>
 /// <param name="type">Included in every device or module. It defines
 /// the type of the device/module. Its values are among :
 /// NAMain : for the base station
 /// NAModule1 : for the outdoor module
 /// NAModule4 : for the additionnal indoor module
 /// NAModule3 : for the rain gauge module
 /// NAPlug : for the thermostat relay/plug
 /// NATherm1 : for the thermostat module
 /// </param>
 /// <param name="rfStatus">"It contains the current radio status. The
 /// different thresholds to take into account are :" |
 /// RADIO_THRESHOLD_SIGNAL_LOW = 90
 /// RADIO_THRESHOLD_SIGNAL_MEDIUM = 80
 /// RADIO_THRESHOLD_SIGNAL_HIGH = 70
 /// RADIO_THRESHOLD_SIGNAL_FULL = 60
 /// </param>
 /// <param name="batteryVp">It contains the current battery status. The
 /// threshold depends on the kind of module, below is the list of the
 /// different threshold to take into account according the module type.
 /// "Indoor module Battery range: 6000 ... 4200" |
 /// INDOOR_BATTERY_LEVEL_FULL = 5640
 /// INDOOR_BATTERY_LEVEL_HIGH = 5280
 /// INDOOR_BATTERY_LEVEL_MEDIUM = 4920
 /// INDOOR_BATTERY_LEVEL_LOW = 4560
 /// "Below 4560: very low" |
 ///
 /// "Raingauge and outdoor module Battery range: 6000 ... 3600" |
 /// BATTERY_LEVEL_FULL = 5500
 /// BATTERY_LEVEL_HIGH = 5000
 /// BATTERY_LEVEL_MEDIUM = 4500
 /// BATTERY_LEVEL_LOW = 4000
 /// "Below 4000: very low" |
 ///
 /// "Thermostat Battery range: 4500 ... 3000" |
 /// THERMOSTAT_BATTERY_LEVEL_FULL = 4100
 /// THERMOSTAT_BATTERY_LEVEL_HIGH = 3600
 /// THERMOSTAT_BATTERY_LEVEL_MEDIUM = 3300
 /// THERMOSTAT_BATTERY_LEVEL_LOW = 3000
 /// "Below 3000: very low"
 /// </param>
 /// <param name="dashboardData">It contains all the measurements that
 /// can be displayed on the dashboard</param>
 public NAModule(string _id = default(string), NADate dateSetup = default(NADate), int?firmware = default(int?), string type = default(string), string moduleName = default(string), string mainDevice = default(string), int?lastMessage = default(int?), int?lastSeen = default(int?), bool?publicExtData = default(bool?), int?rfStatus = default(int?), int?batteryVp = default(int?), int?thermOrientation = default(int?), int?thermRelayCmd = default(int?), NADashboardData dashboardData = default(NADashboardData), IList <string> dataType = default(IList <string>))
 {
     this._id         = _id;
     DateSetup        = dateSetup;
     Firmware         = firmware;
     Type             = type;
     ModuleName       = moduleName;
     MainDevice       = mainDevice;
     LastMessage      = lastMessage;
     LastSeen         = lastSeen;
     PublicExtData    = publicExtData;
     RfStatus         = rfStatus;
     BatteryVp        = batteryVp;
     ThermOrientation = thermOrientation;
     ThermRelayCmd    = thermRelayCmd;
     DashboardData    = dashboardData;
     DataType         = dataType;
     CustomInit();
 }
Exemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the NAHouseModel class.
 /// </summary>
 public NAHouseModel(string algoType = default(string), NAHouseModelCa ca = default(NAHouseModelCa), IDictionary <string, int?> extTemps = default(IDictionary <string, int?>), bool?firstAnticipateAvail = default(bool?), bool?firstPidAvail = default(bool?), NAStation gefs = default(NAStation), string inUse = default(string), NADate lastComputeTry = default(NADate), NALinkStation linkStation = default(NALinkStation), NAPidAlgo pidAlgo = default(NAPidAlgo), NAStation station = default(NAStation), string preferedAlgoType = default(string), NASimpleAlgo simpleAlgo = default(NASimpleAlgo), NADate time = default(NADate), bool?stationFirsttimeAnticipate = default(bool?), int?timeAlgoChanged = default(int?), int?timePidComputed = default(int?))
 {
     AlgoType                   = algoType;
     Ca                         = ca;
     ExtTemps                   = extTemps;
     FirstAnticipateAvail       = firstAnticipateAvail;
     FirstPidAvail              = firstPidAvail;
     Gefs                       = gefs;
     InUse                      = inUse;
     LastComputeTry             = lastComputeTry;
     LinkStation                = linkStation;
     PidAlgo                    = pidAlgo;
     Station                    = station;
     PreferedAlgoType           = preferedAlgoType;
     SimpleAlgo                 = simpleAlgo;
     Time                       = time;
     StationFirsttimeAnticipate = stationFirsttimeAnticipate;
     TimeAlgoChanged            = timeAlgoChanged;
     TimePidComputed            = timePidComputed;
     CustomInit();
 }
Exemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance of the NADevice class.
 /// </summary>
 /// <param name="modules">It lists which modules are linked with this
 /// device</param>
 /// <param name="type">Included in every device or module. It defines
 /// the type of the device/module. Its values are among :
 /// NAMain : for the base station
 /// NAModule1 : for the outdoor module
 /// NAModule4 : for the additionnal indoor module
 /// NAModule3 : for the rain gauge module
 /// NAPlug : for the thermostat relay/plug
 /// NATherm1 : for the thermostat module
 /// </param>
 /// <param name="wifiStatus">It contains the current wifi status. The
 /// different thresholds to take into account are
 /// RSSI_THRESHOLD_0 = 86 bad signal
 /// RSSI_THRESHOLD_1 = 71 middle quality signal
 /// RSSI_THRESHOLD_2 = 56 good signal
 /// </param>
 /// <param name="dashboardData">It contains all the measurements that
 /// can be displayed on the dashboard</param>
 public NADevice(string _id = default(string), int?behavior = default(int?), string cipherId = default(string), NADate dateSetup = default(NADate), int?firmware = default(int?), int?hwVersion = default(int?), NAHeatingSystem heatingSystem = default(NAHeatingSystem), NAHouseModel houseModel = default(NAHouseModel), string ip = default(string), int?lastFwUpdate = default(int?), int?lastRadioStore = default(int?), int?lastStatusStore = default(int?), int?lastUpgrade = default(int?), string moduleName = default(string), IList <string> modules = default(IList <string>), NAPlace place = default(NAPlace), object setpoint = default(object), int?setpointDefaultDuration = default(int?), IDictionary <string, IList <NAObject> > setpointOrder = default(IDictionary <string, IList <NAObject> >), bool?publicExtData = default(bool?), string stationName = default(string), IDictionary <string, NAThermProgram> thermProgram = default(IDictionary <string, NAThermProgram>), IDictionary <string, IList <NAThermProgram> > thermProgramBackup = default(IDictionary <string, IList <NAThermProgram> >), IDictionary <string, IList <NAObject> > thermProgramOrder = default(IDictionary <string, IList <NAObject> >), string type = default(string), IList <string> userOwner = default(IList <string>), bool?udpConn = default(bool?), int?wifiStatus = default(int?), bool?newFeatureAvail = default(bool?), bool?firstPidAvail = default(bool?), NADashboardData dashboardData = default(NADashboardData), IList <string> dataType = default(IList <string>))
 {
     this._id                = _id;
     Behavior                = behavior;
     CipherId                = cipherId;
     DateSetup               = dateSetup;
     Firmware                = firmware;
     HwVersion               = hwVersion;
     HeatingSystem           = heatingSystem;
     HouseModel              = houseModel;
     Ip                      = ip;
     LastFwUpdate            = lastFwUpdate;
     LastRadioStore          = lastRadioStore;
     LastStatusStore         = lastStatusStore;
     LastUpgrade             = lastUpgrade;
     ModuleName              = moduleName;
     Modules                 = modules;
     Place                   = place;
     Setpoint                = setpoint;
     SetpointDefaultDuration = setpointDefaultDuration;
     SetpointOrder           = setpointOrder;
     PublicExtData           = publicExtData;
     StationName             = stationName;
     ThermProgram            = thermProgram;
     ThermProgramBackup      = thermProgramBackup;
     ThermProgramOrder       = thermProgramOrder;
     Type                    = type;
     UserOwner               = userOwner;
     UdpConn                 = udpConn;
     WifiStatus              = wifiStatus;
     NewFeatureAvail         = newFeatureAvail;
     FirstPidAvail           = firstPidAvail;
     DashboardData           = dashboardData;
     DataType                = dataType;
     CustomInit();
 }