Skip to content

Commit

Permalink
added IOutlookCalendarService and move interop and netoffice to inher…
Browse files Browse the repository at this point in the history
…it it.
  • Loading branch information
JaySmith committed Feb 16, 2015
1 parent 2711413 commit 593efa2
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
9 changes: 7 additions & 2 deletions Marble/Core/CalendarSync.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace Marble
/// </summary>
public class CalendarSync
{
readonly OutlookCalendarService outlookCalendarService;
readonly IOutlookCalendarService outlookCalendarService;

readonly GoogleClient googleClient;
readonly GoogleCalendarService googleCalendarService;
Expand All @@ -24,7 +24,12 @@ public CalendarSync()
googleClient = new GoogleClient(Settings.DataStoreFolderNameCalendar);
googleCalendarService = new GoogleCalendarService(googleClient);

outlookCalendarService = new OutlookCalendarService();
if ( Settings.OutlookCalendarServiceProvider == "Interop")
{
outlookCalendarService = new OulookCalendarService_Introp();
} else {
outlookCalendarService = new OutlookCalendarService();
}
}

public void Sync()
Expand Down
1 change: 0 additions & 1 deletion Marble/Outlook/OulookCalendarService_Introp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -100,5 +100,4 @@ static List<string> GetAttendees(string attendees)
}
}


}
5 changes: 2 additions & 3 deletions Marble/Outlook/OutlookCalendarService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@
using NetOffice.OutlookApi;
using NetOffice.OutlookApi.Enums;
using Marble.Data;
using System.Globalization;

namespace Marble.Outlook
namespace Marble
{
/// <summary>
/// Description of OutlookClient.
/// </summary>
public class OutlookCalendarService
public class OutlookCalendarService : IOutlookCalendarService
{
public MAPIFolder outlookCalendar;

Expand Down
2 changes: 1 addition & 1 deletion Marble/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
[assembly: ComVisible(false)]

// Following Symantic Version http://semver.org/
[assembly: AssemblyVersion("0.0.1.7")]
[assembly: AssemblyVersion("0.0.1.8")]

public class AssemblyInfo
{
Expand Down

0 comments on commit 593efa2

Please sign in to comment.