コード例 #1
0
 public UserEvent(User user, Event @event)
 {
     UserId  = user?.Id ?? throw new ArgumentNullException(nameof(user));
     User    = user;
     EventId = @event?.Id ?? throw new ArgumentNullException(nameof(@event));
     Event   = @event;
     Status  = UserEventStatus.Invited;
 }
コード例 #2
0
 public void SetStatus(UserEventStatus status)
 {
     Status = status;
 }