/// <summary> /// Duplicates a universal message from the provided source, returning the duplicate /// </summary> /// <param name="source">The source to be duplicated</param> /// <returns></returns> public virtual UniversalMessage Duplicate(UniversalMessage source) { var result = new UniversalMessage { Sender = source.Sender, Header = source.Header, Content = source.Content }; return(result); }
/// <summary> /// Updates the current Universal Message with one from source /// </summary> /// <param name="source"></param> public virtual void Update(UniversalMessage source) { Sender = source.Sender; Header = source.Header; Content = source.Content; }