コード例 #1
0
        protected virtual void Dispose(bool disposing)
        {
            if (!_disposedValue)
            {
                if (disposing)
                {
                    _allDevices        = null;
                    _allLocations      = null;
                    _allRooms          = null;
                    _allScenes         = null;
                    _allRules          = null;
                    _allSchedules      = null;
                    _allApps           = null;
                    _allSubscriptions  = null;
                    _allInstalledApps  = null;
                    _allDeviceProfiles = null;

                    _devicesApi        = null;
                    _locationsApi      = null;
                    _roomsApi          = null;
                    _scenesApi         = null;
                    _rulesApi          = null;
                    _schedulesApi      = null;
                    _appsApi           = null;
                    _subscriptionsApi  = null;
                    _installedAppsApi  = null;
                    _deviceProfilesApi = null;
                }
                _disposedValue = true;
            }
        }
コード例 #2
0
 public ScenePagedResult GetAllScenes(string locationId = null)
 {
     if (_allScenes == null)
     {
         _allScenes = _scenesApi.ListScenes("", locationId);
     }
     return(_allScenes);
 }
コード例 #3
0
 public void ResetData()
 {
     _allDevices        = null;
     _allLocations      = null;
     _allRooms          = null;
     _allScenes         = null;
     _allRules          = null;
     _allSchedules      = null;
     _allApps           = null;
     _allSubscriptions  = null;
     _allInstalledApps  = null;
     _allDeviceProfiles = null;
 }