- Timestamp:
- 01/25/09 11:32:31 (16 years ago)
- Location:
- trunk/sources/HeuristicLab.Hive.Contracts/BusinessObjects
- Files:
-
- 1 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Contracts/BusinessObjects/ClientConfig.cs
r995 r1175 29 29 30 30 [DataContract] 31 public class ClientConfig: IHiveObject { 32 [DataMember] 33 public long Id { get; set; } 31 public class ClientConfig: HiveBaseObject { 34 32 [DataMember] 35 33 public String UpDownTimeCalendar { get; set; } // TODO define DataStructure -
trunk/sources/HeuristicLab.Hive.Contracts/BusinessObjects/GrantedPermissions.cs
r995 r1175 29 29 30 30 [DataContract] 31 public class GrantedPermissions: IHiveObject { 32 [DataMember] 33 public long Id { get; set; } 31 public class GrantedPermissions: HiveBaseObject { 34 32 [DataMember] 35 33 public Permission Permission { get; set; } -
trunk/sources/HeuristicLab.Hive.Contracts/BusinessObjects/Job.cs
r1168 r1175 29 29 30 30 [DataContract] 31 public class Job: IHiveObject { 32 [DataMember] 33 public long Id { get; set; } 31 public class Job : HiveBaseObject { 34 32 [DataMember] 35 33 public State State { get; set; } … … 50 48 [DataMember] 51 49 public int Priority { get; set; } 52 53 public override bool Equals(object obj) {54 if (obj is Job) {55 return (obj as Job).Id.Equals(Id);56 } else57 return base.Equals(obj);58 }59 60 public override int GetHashCode() {61 return Id.GetHashCode();62 }63 50 } 64 51 } -
trunk/sources/HeuristicLab.Hive.Contracts/BusinessObjects/JobResult.cs
r1168 r1175 29 29 30 30 [DataContract] 31 public class JobResult: IHiveObject { 32 [DataMember] 33 public long Id { get; set; } 31 public class JobResult: HiveBaseObject { 34 32 [DataMember] 35 33 public Job Job { get; set; } -
trunk/sources/HeuristicLab.Hive.Contracts/BusinessObjects/Permission.cs
r995 r1175 29 29 30 30 [DataContract] 31 public class Permission: IHiveObject { 32 [DataMember] 33 public long Id { get; set; } 31 public class Permission: HiveBaseObject { 34 32 [DataMember] 35 33 public String Name { get; set; } -
trunk/sources/HeuristicLab.Hive.Contracts/BusinessObjects/PermissionOwner.cs
r995 r1175 29 29 30 30 [DataContract] 31 public class PermissionOwner: IHiveObject { 32 [DataMember] 33 public long Id { get; set; } 31 public class PermissionOwner: HiveBaseObject { 34 32 [DataMember] 35 33 public string Name { get; set; } 36 37 public override bool Equals(object obj) {38 if (obj is PermissionOwner)39 return this.Id.Equals(40 (obj as PermissionOwner).Id);41 else42 return base.Equals(obj);43 }44 45 public override int GetHashCode() {46 return this.Id.GetHashCode();47 }48 34 } 49 35 } -
trunk/sources/HeuristicLab.Hive.Contracts/BusinessObjects/Resource.cs
r995 r1175 29 29 30 30 [DataContract] 31 public class Resource: IHiveObject { 32 [DataMember] 33 public long Id { get; set; } 31 public class Resource: HiveBaseObject { 34 32 [DataMember] 35 33 public string Name { get; set; } 36 37 public override bool Equals(object obj) {38 if (obj is Resource)39 return (obj as Resource).Id.Equals(Id);40 else41 return base.Equals(obj);42 }43 44 public override int GetHashCode() {45 return Id.GetHashCode();46 }47 34 } 48 35 }
Note: See TracChangeset
for help on using the changeset viewer.