public UserStatusMetadata(CloudsdaleModel model) { Model = model; CorrectController(); if (Model is Session) { Model.PropertyChanged += ControllerOnPropertyChanged; } }
public IMetadataObject CreateNew(CloudsdaleModel model) { return new BooleanMetadata(model); }
public BooleanMetadata(CloudsdaleModel model) { Model = model; }
public UIMetadata(CloudsdaleModel model) { this.model = model; }
public IMetadataObject CreateNew(CloudsdaleModel model) { return new CloudControllerMetadata(model); }
public CloudControllerMetadata(CloudsdaleModel model) { Model = model; }
public UserOnlineMetadata(CloudsdaleModel model) { Model = model; CorrectController(); }
public IMetadataObject CreateNew(CloudsdaleModel model) { return new UserOnlineMetadata(model); }
public DefaultMetadataObject(CloudsdaleModel model) { Model = model; }
public IMetadataObject CreateNew(CloudsdaleModel model) { return new DefaultMetadataObject(model); }
public bool CanMerge(CloudsdaleModel other) { var otherMessage = (Message) other; return User.Id == otherMessage.User.Id && !SlashMeFormat.IsMatch(Content) && !SlashMeFormat.IsMatch(otherMessage.Content); }
public void Merge(CloudsdaleModel other) { _messages.Add((Message)other); OnPropertyChanged("Messages"); OnPropertyChanged("AllDrops"); OnPropertyChanged("FinalTimestamp"); other.PropertyChanged += (sender, args) => OnPropertyChanged(args.PropertyName); }