Source

main / Source / WebService / Web.Service.Model / RepositoryDetail.cs

Full commit
using System.Data.Services.Common;

namespace DataUp.Web.Service.Model
{
    public class RepositoryList
    {
        public RepositoryList()
        {
        }

        private RepositoryDetail[] repositories;

        public RepositoryDetail[] Repositories
        {
            get
            {
                if (repositories == null)
                    repositories = new RepositoryDetail[0];
                return repositories;
            }
            set
            {
                repositories = value;
            }
        }
    }

    [DataServiceKeyAttribute("RepositoryId")]
    public class RepositoryDetail
    {
        public RepositoryDetail()
        {
        }

        public RepositoryDetail(int repositoryId, string repositoryName, string identifierLink, string postFileLink, string repositoryType, bool isPasswordRequired)
        {
            this.RepositoryId = repositoryId;
            this.RepositoryName = repositoryName;
            this.IdentifierLink = identifierLink;
            this.PostFileLink = postFileLink;
            this.Type = repositoryType;
            this.IsPasswordRequired = isPasswordRequired;
        }

        public int RepositoryId { get; set; }

        public string RepositoryName { get; set; }

        public string IdentifierLink { get; set; }

        public string PostFileLink { get; set; }

        public string Type { get; set; }

        public bool IsPasswordRequired { get; set; }
    }
}