Ejemplo n.º 1
0
        public static string GetPluralName(this Weenie weenie)
        {
            var pluralName = weenie.GetProperty(PropertyString.PluralName);

            if (pluralName == null)
            {
                pluralName = weenie.GetProperty(PropertyString.Name).Pluralize();
            }

            return(pluralName);
        }
Ejemplo n.º 2
0
        public static bool IsVendorService(this Weenie weenie)
        {
            var vendorService = weenie.GetProperty(PropertyBool.VendorService) ?? false;

            return(vendorService);
        }
Ejemplo n.º 3
0
        public static bool RequiresBackpackSlotOrIsContainer(this Weenie weenie)
        {
            var requiresBackPackSlot = weenie.GetProperty(PropertyBool.RequiresBackpackSlot) ?? false;

            return(requiresBackPackSlot || weenie.Type == (int)WeenieType.Container);
        }