public MessageMetadata(IShowRoomMessage message, ICommentOptions options, IShowRoomSiteOptions siteOptions, IUser user, ICommentProvider cp, bool isFirstComment)
        {
            Debug.Assert(user != null);
            _message        = message;
            _options        = options;
            _siteOptions    = siteOptions;
            IsFirstComment  = isFirstComment;
            User            = user;
            CommentProvider = cp;

            //TODO:siteOptionsのpropertyChangedが発生したら関係するプロパティの変更通知を出したい

            options.PropertyChanged     += Options_PropertyChanged;
            siteOptions.PropertyChanged += SiteOptions_PropertyChanged;
            user.PropertyChanged        += User_PropertyChanged;
        }
Beispiel #2
0
 public MessageContext(IShowRoomMessage message, MessageMetadata metadata, IMessageMethods methods)
 {
     Message  = message;
     Metadata = metadata;
     Methods  = methods;
 }