Skip to content

Commit fb19adf

Browse files
author
Sicos1977
committed
Implementing tasks
1 parent 51f6502 commit fb19adf

2 files changed

Lines changed: 32 additions & 5 deletions

File tree

‎MsgReader/Outlook/Consts.cs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,9 +267,9 @@ internal static class Consts
267267
public const string TaskStartDate = "8008";
268268

269269
/// <summary>
270-
/// End date of the task
270+
/// Due date of the task
271271
/// </summary>
272-
public const string TaskEndDate = "8009";
272+
public const string TaskDueDate = "8009";
273273

274274
/// <summary>
275275
/// True when the task is complete

‎MsgReader/Outlook/Storage.cs‎

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace DocumentServices.Modules.Readers.MsgReader.Outlook
1515
{
1616
public class Storage : IDisposable
1717
{
18-
#region Enum RecipientType
18+
#region Public enum RecipientType
1919
public enum RecipientType
2020
{
2121
/// <summary>
@@ -914,11 +914,38 @@ public Recipient(Storage message) : base(message._storage)
914914
/// </summary>
915915
public class Task : Storage
916916
{
917-
#region Properties
918-
public string FollowUp
917+
#region Properties
918+
/// <summary>
919+
/// Returns text when there is a task set, null is returned when there is nothing set
920+
/// </summary>
921+
public string FlagRequest
919922
{
920923
get { return GetMapiPropertyString(Consts.FlagRequest); }
921924
}
925+
926+
/// <summary>
927+
/// Returns the start datetime of the task, null when <see cref="FlagRequest"/> has not been set
928+
/// </summary>
929+
public DateTime? StartDate
930+
{
931+
get { return GetMapiPropertyDateTime(Consts.TaskStartDate); }
932+
}
933+
934+
/// <summary>
935+
/// Returns the due datetime of the task, null when <see cref="FlagRequest"/> has not been set
936+
/// </summary>
937+
public DateTime? DueDate
938+
{
939+
get { return GetMapiPropertyDateTime(Consts.TaskDueDate); }
940+
}
941+
942+
/// <summary>
943+
/// Return true when the task has been completed, null when <see cref="FlagRequest"/> has not been set
944+
/// </summary>
945+
public bool? Complete
946+
{
947+
get { return GetMapiPropertyBool(Consts.TaskComplete); }
948+
}
922949
#endregion
923950

924951
#region Constructor

0 commit comments

Comments
 (0)