- Timestamp:
- 10/09/11 01:47:51 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive/3.3/Convert.cs
r6768 r6893 217 217 OperatingSystem = source.OperatingSystem, 218 218 LastHeartbeat = source.LastHeartbeat, 219 CpuUtilization = source.CpuUtilization 219 CpuUtilization = source.CpuUtilization, 220 HbInterval = source.HbInterval 220 221 }; 221 222 } … … 241 242 target.LastHeartbeat = source.LastHeartbeat; 242 243 target.CpuUtilization = source.CpuUtilization; 244 target.HbInterval = source.HbInterval; 243 245 } 244 246 } … … 248 250 public static DT.SlaveGroup ToDto(DB.SlaveGroup source) { 249 251 if (source == null) return null; 250 return new DT.SlaveGroup { Id = source.ResourceId, Name = source.Name, ParentResourceId = source.ParentResourceId };252 return new DT.SlaveGroup { Id = source.ResourceId, Name = source.Name, ParentResourceId = source.ParentResourceId, HbInterval = source.HbInterval }; 251 253 } 252 254 public static DB.SlaveGroup ToEntity(DT.SlaveGroup source) { … … 257 259 public static void ToEntity(DT.SlaveGroup source, DB.SlaveGroup target) { 258 260 if ((source != null) && (target != null)) { 259 target.ResourceId = source.Id; target.Name = source.Name; target.ParentResourceId = source.ParentResourceId; 261 target.ResourceId = source.Id; target.Name = source.Name; target.ParentResourceId = source.ParentResourceId; target.HbInterval = source.HbInterval; 260 262 } 261 263 } … … 265 267 public static DT.Resource ToDto(DB.Resource source) { 266 268 if (source == null) return null; 267 return new DT.Resource { Id = source.ResourceId, Name = source.Name, ParentResourceId = source.ParentResourceId };269 return new DT.Resource { Id = source.ResourceId, Name = source.Name, ParentResourceId = source.ParentResourceId, HbInterval = source.HbInterval }; 268 270 } 269 271 public static DB.Resource ToEntity(DT.Resource source) { … … 274 276 public static void ToEntity(DT.Resource source, DB.Resource target) { 275 277 if ((source != null) && (target != null)) { 276 target.ResourceId = source.Id; target.Name = source.Name; target.ParentResourceId = source.ParentResourceId; 278 target.ResourceId = source.Id; target.Name = source.Name; target.ParentResourceId = source.ParentResourceId; target.HbInterval = source.HbInterval; 277 279 } 278 280 }
Note: See TracChangeset
for help on using the changeset viewer.