Constructor EventProposalBlock
- Namespace
- MailFathom.Application.Discovery.Presentation.Blocks
- Assembly
- MailFathom.Application.dll
EventProposalBlock(PresentationEvidence, PresentationText, DateTimeOffset, DateTimeOffset?, bool)
Initializes a date to be put on the calendar.
public EventProposalBlock(PresentationEvidence evidence, PresentationText title, DateTimeOffset start, DateTimeOffset? end, bool isAllDay)
Parameters
evidencePresentationEvidenceWhat the correspondence does for the proposal.
titlePresentationTextWhat the event would be called.
startDateTimeOffsetWhen it would begin.
endDateTimeOffset?When it would end, or null where the proposal states no end.
isAllDayboolWhether it is proposed as a day rather than as a clock time.
Exceptions
- ArgumentNullException
Thrown when
evidenceis null.- ArgumentException
Thrown when
titleis the unspecified default, or when an end is stated that is not after the start.