seperated todoist and habitica api calls into services

This commit is contained in:
2020-03-19 00:10:12 -04:00
parent b45b2d80b0
commit 59377a7749
19 changed files with 246 additions and 38 deletions

View File

@@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Habitica.Todoist.Integration.Model.Storage
{
public class HabitTodoLink
{
public string HabiticaId { get; set; }
public string TodoistId { get; set; }
}
}

View File

@@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Habitica.Todoist.Integration.Model.Storage
{
public enum TodoAction
{
Add = 1,
Update = 2,
Complete = 3,
Delete = 4
}
}

View File

@@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Habitica.Todoist.Integration.Model.Storage
{
public enum TodoApp
{
Habitica = 1,
Todoist = 2
}
}

View File

@@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Habitica.Todoist.Integration.Model.Storage
{
public class TodoChange
{
public string Id { get; set; }
public TodoApp Application { get; set; }
public TodoAction Action { get; set; }
public bool Applied { get; set; }
public string JsonTodo { get; set; }
}
}

View File

@@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Habitica.Todoist.Integration.Model.Storage
{
public class TodoHabitLink
{
public string TodoistId { get; set; }
public string HabiticaId { get; set; }
}
}

View File

@@ -0,0 +1,11 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Habitica.Todoist.Integration.Model.Storage
{
public class TodoistSync
{
public string SyncToken { get; set; }
}
}