/// <summary> /// Returns the level of details in this object. /// 0: no details at all /// 1: title /// 2: instructor & descriptions /// </summary> /// <returns>A byte with the level of details.</returns> public byte GetDetailLevel() { if (Sessions.Any()) { return(3); } if (Instructor != null && Descriptions.Any()) { return(2); } if (Title.IsNotNullOrWhiteSpace()) { return(1); } return(0); }