/* * Box Social™ * http://boxsocial.net/ * Copyright © 2007, David Lachlan Smith * * $Id:$ * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3 as * published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ using System; using System.Collections.Generic; using System.Text; namespace BoxSocial.Internals { [AttributeUsage(AttributeTargets.Class)] public sealed class AccountSubModuleAttribute : Attribute { private string moduleName; private string subModuleName; private bool isDefault; private AppPrimitives primitives; public string ModuleName { get { return moduleName; } } public string Name { get { return subModuleName; } } public bool IsDefault { get { return isDefault; } } public AppPrimitives Primitives { get { return primitives; } } public AccountSubModuleAttribute(string moduleName, string subModuleName) : this(moduleName, subModuleName, false) { } public AccountSubModuleAttribute(AppPrimitives primitives, string moduleName, string subModuleName) : this(primitives, moduleName, subModuleName, false) { } public AccountSubModuleAttribute(string moduleName, string subModuleName, bool isDefault) : this (AppPrimitives.Member, moduleName, subModuleName, isDefault) { } public AccountSubModuleAttribute(AppPrimitives primitives, string moduleName, string subModuleName, bool isDefault) { this.moduleName = moduleName; this.subModuleName = subModuleName; this.isDefault = isDefault; this.primitives = primitives; } } }