Example #1
0
        internal static Session Create(Event @event, Track track, SessionLevel level, string description)
        {
            if (@event == null)
            {
                throw new ArgumentNullException(nameof(@event));
            }
            if (track == null)
            {
                throw new ArgumentNullException(nameof(track));
            }
            if (String.IsNullOrWhiteSpace(description))
            {
                throw new ArgumentNullException(nameof(description));
            }

            return(new Session {
                Type = @event.Type,
                Title = @event.Title,
                Start = @event.Start,
                End = @event.End,
                Room = @event.Room,
                Description = description,
                Track = track,
                Level = level
            });
        }
Example #2
0
        public void Update(string title, string description, SessionLevel level, SessionCategory category, string track, string timeSlot, string room, int day)
        {
            Title = title;
            Description = description;
            Level = level;
            Category = category;
            Track = string.IsNullOrEmpty(track) ? "None" : track;
            Slot = string.IsNullOrEmpty(timeSlot) ? "None" : timeSlot;
            Room = string.IsNullOrEmpty(room) ? "None" : room;
            Day = day == 0 ? 1 : day;

            Raise(new PresentationChanged {PresentationId = Id});
        }
Example #3
0
        public Session(UserProfile user, string title, string description, SessionLevel level, SessionCategory category)
        {
            User = user;
            UserId = user.Id;
            Title = title;
            Description = description;
            Level = level;
            Category = category;
            Track = "None";
            Slot = "None";
            Day = 1;

            Status = SessionStatus.Pending;

            Raise(new SessionCreated {PresentationId = Id});
        }
Example #4
0
        public Session(UserProfile user, string title, string description, SessionLevel level, SessionCategory category)
        {
            User = user;
            UserId = user.Id;
            Title = title;
            Description = description;
            Level = level;
            Category = category;
            Track = "None";
            Slot = "None";
            Room = "None";
            Day = 1;

            Status = SessionStatus.Pending;

            Raise(new SessionCreated {PresentationId = Id});
        }
Example #5
0
        public void Update(string title, string description, SessionLevel level, SessionCategory category, string track, string timeSlot, string room, int day)
        {
            Title = title;
            Description = description;
            Level = level;
            Category = category;
            Track = string.IsNullOrEmpty(track) ? "None" : track;
            Slot = string.IsNullOrEmpty(timeSlot) ? "None" : timeSlot;
            Room = string.IsNullOrEmpty(room) ? "None" : room;
            Day = day == 0 ? 1 : day;

            Raise(new PresentationChanged {PresentationId = Id});
        }
Example #6
0
 public static void setSessionLevel(SessionLevel level)
 {
     Implementation.setSessionLevel(level);
 }