Rev | Line | |
---|
[7546] | 1 | using System.Text;
|
---|
| 2 | using HeuristicLab.Common;
|
---|
| 3 | using HeuristicLab.Core;
|
---|
| 4 |
|
---|
| 5 | namespace 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.