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 }); }
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}); }
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}); }
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}); }
public static void setSessionLevel(SessionLevel level) { Implementation.setSessionLevel(level); }