Пример #1
0
 public PlaceAttribute(PlaceAttributeType type, bool defaultValue)
 {
     Type         = type;
     DefaultValue = defaultValue;
 }
Пример #2
0
        public bool GetAttributeValue(PlaceAttributeType type)
        {
            var attribute = GetAttribute(type);

            return(attribute != null && attribute.Value);
        }
Пример #3
0
 public ProfilePlaceAttribute(PlaceAttributeType type, bool value)
 {
     Type  = type;
     Value = value;
 }
Пример #4
0
 public ProfilePlaceAttribute GetAttribute(PlaceAttributeType type)
 {
     return(Attributes.FirstOrDefault(attr => attr.Type.Equals(type)));
 }