Example #1
0
 internal Box(Helper aHelper, UpdateCheck aUpdateCheck, BasicSetup aBasicSetup, Playback aPlayback, string aModel, Room aRoom, string aName, Device aDevice, EventServerUpnp aEventServer, EState aState, string aProductId, string[] aBoardId, string[] aBoardType, string[] aBoardDescription, string[] aBoardNumber, string aImageUri, string aSoftwareVersion, bool aIsProxy)
 {
     iHelper          = aHelper;
     iModel           = aModel;
     iRoom            = aRoom;
     iName            = aName;
     iDevice          = aDevice;
     iEventServer     = aEventServer;
     iState           = aState;
     iImageUri        = aImageUri;
     iSoftwareVersion = aSoftwareVersion;
     iUpdateCheck     = aUpdateCheck;
     iBasicSetup      = aBasicSetup;
     iUpdateFirmware  = new UpdateFirmware(aHelper);
     iPlayback        = aPlayback;
     iUpdateCheck.GetInfo(aModel, aIsProxy, aSoftwareVersion, aBoardNumber, out iSoftwareUpdateAvailable, out iSoftwareUpdateVersion, out iSoftwareUpdateUrl, out iSoftwareUpdateVariant, out iReleaseNotesHtml);
     iUpdateCheck.EventUpdateCheckComplete += UpdateCheckComplete;
     iUpdateCheck.EventUpdateCheckError    += UpdateCheckError;
     iSysLogPretty = new SysLogPretty(aHelper.ExePath.FullName);
     iProductId    = aProductId;
     iIsProxy      = aIsProxy;
     if (aBoardId != null)
     {
         iBoardId = aBoardId;
     }
     if (aBoardType != null)
     {
         iBoardType = aBoardType;
     }
     if (aBoardDescription != null)
     {
         iBoardDescription = aBoardDescription;
     }
     if (aBoardNumber != null)
     {
         iBoardNumber = aBoardNumber;
     }
 }
Example #2
0
        //room name is not passed as if the room name had been modified the box would be removed and added to the tree
        internal void SetOn(Device aDevice, string aModel, string aName, BasicSetup aBasicSetup, Playback aPlayback)
        {
            Lock();

            iModel      = aModel;
            iName       = aName;
            iBasicSetup = aBasicSetup;
            iPlayback   = aPlayback;

            Unlock();

            SetState(aDevice, EState.eOn);
        }
Example #3
0
 internal Box AddMainBox(BasicSetup aBasicSetup, Playback aPlayback, ServiceProduct aServiceProduct, EventServerUpnp aEventServer, string aProductId, string[] aBoardId, string[] aBoardType, string[] aBoardDescription, string[] aBoardNumber, string aSoftwareVersion)
 {
     return(AddBox(aBasicSetup, aPlayback, aServiceProduct.ModelName, aServiceProduct.ProductRoom, aServiceProduct.ProductName, aServiceProduct.Device, aEventServer, Box.EState.eOn, aProductId, aBoardId, aBoardType, aBoardDescription, aBoardNumber, aServiceProduct.ProductImageUri, aSoftwareVersion, false));
 }