Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.Hive.Azure/HeuristicLab.Clients.Hive.CloudManager/3.3/Model/StorageService.cs @ 13897

Last change on this file since 13897 was 7546, checked in by spimming, 13 years ago

#1680: model classes for storage service operations added

File size: 1.3 KB
Line 
1using System.Text;
2using HeuristicLab.Common;
3using HeuristicLab.Core;
4
5namespace HeuristicLab.Clients.Hive.CloudManager.Model {
6  public class StorageService : Item {
7    public string Url { get; set; }
8    public string ServiceName { get; set; }
9    public StorageServiceProperties StorageServiceProperties { get; set; }
10
11    public StorageService() {
12
13    }
14
15    public StorageService(StorageService original, Cloner cloner) {
16      this.Url = original.Url;
17      this.ServiceName = original.ServiceName;
18      this.StorageServiceProperties = cloner.Clone(original.StorageServiceProperties);
19    }
20
21    public override string ToString() {
22      StringBuilder sb = new StringBuilder();
23      sb.AppendFormat("StorageService: Name={0}, Url={1}", ServiceName, Url);
24      return sb.ToString();
25    }
26
27    public override int GetHashCode() {
28      return base.GetHashCode();
29    }
30
31    public override bool Equals(object obj) {
32      if (obj == null)
33        return false;
34      StorageService serv = obj as StorageService;
35      if ((this.Url == serv.Url))
36        return true;
37      else
38        return false;
39    }
40
41    public override IDeepCloneable Clone(Cloner cloner) {
42      return new StorageService(this, cloner);
43    }
44  }
45}
Note: See TracBrowser for help on using the repository browser.