X-Git-Url: https://code.grnet.gr/git/pithos-ms-client/blobdiff_plain/d5617d4f6182853060bfa2bc665e341834e23768..d7288179638247cb10a9abec6f85503d1c72315f:/trunk/Pithos.Interfaces/AccountSettings.cs diff --git a/trunk/Pithos.Interfaces/AccountSettings.cs b/trunk/Pithos.Interfaces/AccountSettings.cs index 7ebfcd5..14711c1 100644 --- a/trunk/Pithos.Interfaces/AccountSettings.cs +++ b/trunk/Pithos.Interfaces/AccountSettings.cs @@ -1,98 +1,98 @@ -#region -/* ----------------------------------------------------------------------- - * - * - * Copyright 2011-2012 GRNET S.A. All rights reserved. - * - * Redistribution and use in source and binary forms, with or - * without modification, are permitted provided that the following - * conditions are met: - * - * 1. Redistributions of source code must retain the above - * copyright notice, this list of conditions and the following - * disclaimer. - * - * 2. Redistributions in binary form must reproduce the above - * copyright notice, this list of conditions and the following - * disclaimer in the documentation and/or other materials - * provided with the distribution. - * - * - * THIS SOFTWARE IS PROVIDED BY GRNET S.A. ``AS IS'' AND ANY EXPRESS - * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GRNET S.A OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF - * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED - * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * The views and conclusions contained in the software and - * documentation are those of the authors and should not be - * interpreted as representing official policies, either expressed - * or implied, of GRNET S.A. - * - * ----------------------------------------------------------------------- - */ -#endregion -using System; -using System.Collections.Generic; -using System.Collections.Specialized; - -namespace Pithos.Interfaces -{ - /// - /// PITHOS Account Settings - /// - public class AccountSettings - { - - public string AccountName { get; set; } - - public Uri AccountKey - { - get { return new Uri(new Uri(ServerUrl), AccountName); } - } - - - public string ApiKey { get; set; } - - public bool IsActive { get; set; } - - public string RootPath { get; set; } - - public string ServerUrl { get; set; } - - public bool IsExpired { get; set; } - - public bool SelectiveSyncEnabled { get; set; } - - private StringCollection _selectiveFolders = new StringCollection(); - - public StringCollection SelectiveFolders - { - get { return _selectiveFolders; } - set { _selectiveFolders = value; } - } - } - - - public class ServerSettings - { - public string ServerName { get; set; } - public string ServerUri { get; set; } - public string LoginUri { get; set; } - public string LogoutUri { get; set; } - } - - public class ServersCollection:List - {} - - //[Serializable] - public class AccountsCollection:List - {} -} +#region +/* ----------------------------------------------------------------------- + * + * + * Copyright 2011-2012 GRNET S.A. All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * 1. Redistributions of source code must retain the above + * copyright notice, this list of conditions and the following + * disclaimer. + * + * 2. Redistributions in binary form must reproduce the above + * copyright notice, this list of conditions and the following + * disclaimer in the documentation and/or other materials + * provided with the distribution. + * + * + * THIS SOFTWARE IS PROVIDED BY GRNET S.A. ``AS IS'' AND ANY EXPRESS + * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GRNET S.A OR + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED + * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN + * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + * + * The views and conclusions contained in the software and + * documentation are those of the authors and should not be + * interpreted as representing official policies, either expressed + * or implied, of GRNET S.A. + * + * ----------------------------------------------------------------------- + */ +#endregion +using System; +using System.Collections.Generic; +using System.Collections.Specialized; + +namespace Pithos.Interfaces +{ + /// + /// PITHOS Account Settings + /// + public class AccountSettings + { + + public string AccountName { get; set; } + + public Uri AccountKey + { + get { return new Uri(new Uri(ServerUrl,UriKind.Absolute),AccountName); } + } + + + public string ApiKey { get; set; } + + public bool IsActive { get; set; } + + public string RootPath { get; set; } + + public string ServerUrl { get; set; } + + public bool IsExpired { get; set; } + + public bool SelectiveSyncEnabled { get; set; } + + private StringCollection _selectiveFolders = new StringCollection(); + + public StringCollection SelectiveFolders + { + get { return _selectiveFolders; } + set { _selectiveFolders = value; } + } + } + + + public class ServerSettings + { + public string ServerName { get; set; } + public string ServerUri { get; set; } + public string LoginUri { get; set; } + public string LogoutUri { get; set; } + } + + public class ServersCollection:List + {} + + //[Serializable] + public class AccountsCollection:List + {} +}