Class TodoBuilder
Builder for constructing Todo instances.
Inherited Members
Namespace: DRIT.Mail.Rfc.ICal
Assembly: DRIT.Mail.dll
Syntax
public sealed class TodoBuilder
Methods
View SourceAlarm(Action<AlarmBuilder>)
Adds an alarm (VALARM) configured by the specified callback.
Declaration
public TodoBuilder Alarm(Action<AlarmBuilder> configure)
Parameters
| Type | Name | Description |
|---|---|---|
| Action<AlarmBuilder> | configure | Specifies the configure value. |
Returns
| Type | Description |
|---|---|
| TodoBuilder |
Attendee(string, string?, ParticipationRole?, ParticipationStatus?)
Adds an attendee (ATTENDEE).
Declaration
public TodoBuilder Attendee(string email, string? name = null, ParticipationRole? role = null, ParticipationStatus? status = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | Specifies the email value. |
|
| string | name | Specifies the name value. |
| ParticipationRole? | role | Specifies the role value. |
| ParticipationStatus? | status | Specifies the status value. |
Returns
| Type | Description |
|---|---|
| TodoBuilder |
Build()
Builds the Todo.
Declaration
public Todo Build()
Returns
| Type | Description |
|---|---|
| Todo |
Classification(Classification)
Sets the classification (CLASS).
Declaration
public TodoBuilder Classification(Classification classification)
Parameters
| Type | Name | Description |
|---|---|---|
| Classification | classification | Specifies the classification value. |
Returns
| Type | Description |
|---|---|
| TodoBuilder |
Completed(ICalDateTime?)
Sets the completion date-time (COMPLETED).
Declaration
public TodoBuilder Completed(ICalDateTime? completed)
Parameters
| Type | Name | Description |
|---|---|---|
| ICalDateTime | completed | Specifies the completed value. |
Returns
| Type | Description |
|---|---|
| TodoBuilder |
Description(string)
Sets the description (DESCRIPTION).
Declaration
public TodoBuilder Description(string description)
Parameters
| Type | Name | Description |
|---|---|---|
| string | description | Specifies the description value. |
Returns
| Type | Description |
|---|---|
| TodoBuilder |
Due(ICalDateTime)
Sets the due date-time (DUE).
Declaration
public TodoBuilder Due(ICalDateTime due)
Parameters
| Type | Name | Description |
|---|---|---|
| ICalDateTime | due | Specifies the due value. |
Returns
| Type | Description |
|---|---|
| TodoBuilder |
Duration(ICalDuration?)
Sets the duration (DURATION).
Declaration
public TodoBuilder Duration(ICalDuration? duration)
Parameters
| Type | Name | Description |
|---|---|---|
| ICalDuration | duration | Specifies the duration value. |
Returns
| Type | Description |
|---|---|
| TodoBuilder |
ExtendedProperty(string, string)
Adds an X-* extension property.
Declaration
public TodoBuilder ExtendedProperty(string name, string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Specifies the name value. |
| string | value | The value to process. |
Returns
| Type | Description |
|---|---|
| TodoBuilder |
Organizer(string, string?)
Sets the organizer (ORGANIZER).
Declaration
public TodoBuilder Organizer(string email, string? name = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | Specifies the email value. |
|
| string | name | Specifies the name value. |
Returns
| Type | Description |
|---|---|
| TodoBuilder |
PercentComplete(int)
Sets the percent complete (PERCENT-COMPLETE, 0-100).
Declaration
public TodoBuilder PercentComplete(int percent)
Parameters
| Type | Name | Description |
|---|---|---|
| int | percent | Specifies the percent value. |
Returns
| Type | Description |
|---|---|
| TodoBuilder |
Priority(int)
Sets the priority (PRIORITY, 0-9).
Declaration
public TodoBuilder Priority(int priority)
Parameters
| Type | Name | Description |
|---|---|---|
| int | priority | Specifies the priority value. |
Returns
| Type | Description |
|---|---|
| TodoBuilder |
RecurrenceRule(RecurrenceRule?)
Sets the recurrence rule (RRULE).
Declaration
public TodoBuilder RecurrenceRule(RecurrenceRule? rule)
Parameters
| Type | Name | Description |
|---|---|---|
| RecurrenceRule | rule | Specifies the rule value. |
Returns
| Type | Description |
|---|---|
| TodoBuilder |
Start(ICalDateTime)
Sets the start date-time (DTSTART).
Declaration
public TodoBuilder Start(ICalDateTime start)
Parameters
| Type | Name | Description |
|---|---|---|
| ICalDateTime | start | Specifies the start value. |
Returns
| Type | Description |
|---|---|
| TodoBuilder |
Status(TodoStatus)
Sets the status (STATUS).
Declaration
public TodoBuilder Status(TodoStatus status)
Parameters
| Type | Name | Description |
|---|---|---|
| TodoStatus | status | Specifies the status value. |
Returns
| Type | Description |
|---|---|
| TodoBuilder |
Summary(string)
Sets the summary (SUMMARY).
Declaration
public TodoBuilder Summary(string summary)
Parameters
| Type | Name | Description |
|---|---|---|
| string | summary | Specifies the summary value. |
Returns
| Type | Description |
|---|---|
| TodoBuilder |
Uid(string)
Sets the unique identifier (UID).
Declaration
public TodoBuilder Uid(string uid)
Parameters
| Type | Name | Description |
|---|---|---|
| string | uid | The uid identifier. |
Returns
| Type | Description |
|---|---|
| TodoBuilder |