root / trunk / Pithos.Interfaces / AccountSettings.cs @ 6a7b8909
History | View | Annotate | Download (3.1 kB)
1 | 255f5f86 | Panagiotis Kanavos | #region |
---|---|---|---|
2 | 255f5f86 | Panagiotis Kanavos | /* ----------------------------------------------------------------------- |
3 | 255f5f86 | Panagiotis Kanavos | * <copyright file="AccountSettings.cs" company="GRNet"> |
4 | 255f5f86 | Panagiotis Kanavos | * |
5 | 255f5f86 | Panagiotis Kanavos | * Copyright 2011-2012 GRNET S.A. All rights reserved. |
6 | 255f5f86 | Panagiotis Kanavos | * |
7 | 255f5f86 | Panagiotis Kanavos | * Redistribution and use in source and binary forms, with or |
8 | 255f5f86 | Panagiotis Kanavos | * without modification, are permitted provided that the following |
9 | 255f5f86 | Panagiotis Kanavos | * conditions are met: |
10 | 255f5f86 | Panagiotis Kanavos | * |
11 | 255f5f86 | Panagiotis Kanavos | * 1. Redistributions of source code must retain the above |
12 | 255f5f86 | Panagiotis Kanavos | * copyright notice, this list of conditions and the following |
13 | 255f5f86 | Panagiotis Kanavos | * disclaimer. |
14 | 255f5f86 | Panagiotis Kanavos | * |
15 | 255f5f86 | Panagiotis Kanavos | * 2. Redistributions in binary form must reproduce the above |
16 | 255f5f86 | Panagiotis Kanavos | * copyright notice, this list of conditions and the following |
17 | 255f5f86 | Panagiotis Kanavos | * disclaimer in the documentation and/or other materials |
18 | 255f5f86 | Panagiotis Kanavos | * provided with the distribution. |
19 | 255f5f86 | Panagiotis Kanavos | * |
20 | 255f5f86 | Panagiotis Kanavos | * |
21 | 255f5f86 | Panagiotis Kanavos | * THIS SOFTWARE IS PROVIDED BY GRNET S.A. ``AS IS'' AND ANY EXPRESS |
22 | 255f5f86 | Panagiotis Kanavos | * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
23 | 255f5f86 | Panagiotis Kanavos | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
24 | 255f5f86 | Panagiotis Kanavos | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GRNET S.A OR |
25 | 255f5f86 | Panagiotis Kanavos | * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
26 | 255f5f86 | Panagiotis Kanavos | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
27 | 255f5f86 | Panagiotis Kanavos | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF |
28 | 255f5f86 | Panagiotis Kanavos | * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED |
29 | 255f5f86 | Panagiotis Kanavos | * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
30 | 255f5f86 | Panagiotis Kanavos | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN |
31 | 255f5f86 | Panagiotis Kanavos | * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
32 | 255f5f86 | Panagiotis Kanavos | * POSSIBILITY OF SUCH DAMAGE. |
33 | 255f5f86 | Panagiotis Kanavos | * |
34 | 255f5f86 | Panagiotis Kanavos | * The views and conclusions contained in the software and |
35 | 255f5f86 | Panagiotis Kanavos | * documentation are those of the authors and should not be |
36 | 255f5f86 | Panagiotis Kanavos | * interpreted as representing official policies, either expressed |
37 | 255f5f86 | Panagiotis Kanavos | * or implied, of GRNET S.A. |
38 | 255f5f86 | Panagiotis Kanavos | * </copyright> |
39 | 255f5f86 | Panagiotis Kanavos | * ----------------------------------------------------------------------- |
40 | 255f5f86 | Panagiotis Kanavos | */ |
41 | 255f5f86 | Panagiotis Kanavos | #endregion |
42 | eeee29e3 | Panagiotis Kanavos | using System; |
43 | eeee29e3 | Panagiotis Kanavos | using System.Collections.Generic; |
44 | eeee29e3 | Panagiotis Kanavos | using System.Collections.Specialized; |
45 | eeee29e3 | Panagiotis Kanavos | |
46 | eeee29e3 | Panagiotis Kanavos | namespace Pithos.Interfaces |
47 | eeee29e3 | Panagiotis Kanavos | { |
48 | eeee29e3 | Panagiotis Kanavos | /// <summary> |
49 | 0eea575a | Panagiotis Kanavos | /// PITHOS Account Settings |
50 | eeee29e3 | Panagiotis Kanavos | /// </summary> |
51 | 0eea575a | Panagiotis Kanavos | public class AccountSettings |
52 | eeee29e3 | Panagiotis Kanavos | { |
53 | 0eea575a | Panagiotis Kanavos | |
54 | eeee29e3 | Panagiotis Kanavos | public string AccountName { get; set; } |
55 | eeee29e3 | Panagiotis Kanavos | |
56 | ebc37b0d | pkanavos | public Uri AccountKey |
57 | ebc37b0d | pkanavos | { |
58 | ebc37b0d | pkanavos | get { return new Uri(new Uri(ServerUrl), AccountName); } |
59 | ebc37b0d | pkanavos | } |
60 | ebc37b0d | pkanavos | |
61 | ebc37b0d | pkanavos | |
62 | eeee29e3 | Panagiotis Kanavos | public string ApiKey { get; set; } |
63 | eeee29e3 | Panagiotis Kanavos | |
64 | 0eea575a | Panagiotis Kanavos | public bool IsActive { get; set; } |
65 | 0eea575a | Panagiotis Kanavos | |
66 | 0eea575a | Panagiotis Kanavos | public string RootPath { get; set; } |
67 | 0eea575a | Panagiotis Kanavos | |
68 | 74d78c90 | Panagiotis Kanavos | public string ServerUrl { get; set; } |
69 | f734ab5b | Panagiotis Kanavos | |
70 | ebc37b0d | pkanavos | public bool IsExpired { get; set; } |
71 | 1e26eceb | Panagiotis Kanavos | |
72 | cbefd298 | pkanavos | public bool SelectiveSyncEnabled { get; set; } |
73 | cbefd298 | pkanavos | |
74 | cbefd298 | pkanavos | private StringCollection _selectiveFolders = new StringCollection(); |
75 | cbefd298 | pkanavos | |
76 | eeee29e3 | Panagiotis Kanavos | public StringCollection SelectiveFolders |
77 | eeee29e3 | Panagiotis Kanavos | { |
78 | eeee29e3 | Panagiotis Kanavos | get { return _selectiveFolders; } |
79 | eeee29e3 | Panagiotis Kanavos | set { _selectiveFolders = value; } |
80 | eeee29e3 | Panagiotis Kanavos | } |
81 | eeee29e3 | Panagiotis Kanavos | } |
82 | eeee29e3 | Panagiotis Kanavos | |
83 | dd19241a | pkanavos | |
84 | dd19241a | pkanavos | public class ServerSettings |
85 | dd19241a | pkanavos | { |
86 | cbefd298 | pkanavos | public string ServerName { get; set; } |
87 | dd19241a | pkanavos | public string ServerUri { get; set; } |
88 | dd19241a | pkanavos | public string LoginUri { get; set; } |
89 | dd19241a | pkanavos | public string LogoutUri { get; set; } |
90 | dd19241a | pkanavos | } |
91 | dd19241a | pkanavos | |
92 | dd19241a | pkanavos | public class ServersCollection:List<ServerSettings> |
93 | dd19241a | pkanavos | {} |
94 | dd19241a | pkanavos | |
95 | eeee29e3 | Panagiotis Kanavos | //[Serializable] |
96 | eeee29e3 | Panagiotis Kanavos | public class AccountsCollection:List<AccountSettings> |
97 | eeee29e3 | Panagiotis Kanavos | {} |
98 | eeee29e3 | Panagiotis Kanavos | } |