/// <summary> /// Creates a new <see cref="MessageContainerRecord"/> instance /// </summary> /// <param name="report"><see cref="MessageContainer"/> to store</param> public MessageContainerRecord(MessageContainer report) { this.Size = PayloadSizeHelper.GetSize(report); this.Value = report; this.Version = CURRENT_RECORD_VERSION; }
/// <summary> /// Creates a new <see cref="MatchMessageRecord"/> instance /// </summary> /// <param name="message"><see cref="MatchMessage"/> to store</param> public MatchMessageRecord(MatchMessage message) { this.Size = PayloadSizeHelper.GetSize(message); this.Value = message; this.Version = CURRENT_RECORD_VERSION; }
/// <summary> /// Creates a new <see cref="InfectionReportRecord"/> instance /// </summary> /// <param name="report"><see cref="InfectionReport"/> to store</param> public InfectionReportRecord(InfectionReport report) { this.Size = PayloadSizeHelper.GetSize(report); this.Value = report; this.Version = CURRENT_RECORD_VERSION; }