seperated todoist and habitica api calls into services
This commit is contained in:
12
Habitica.Todoist.Integration.Model/Storage/HabitTodoLink.cs
Normal file
12
Habitica.Todoist.Integration.Model/Storage/HabitTodoLink.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
14
Habitica.Todoist.Integration.Model/Storage/TodoAction.cs
Normal file
14
Habitica.Todoist.Integration.Model/Storage/TodoAction.cs
Normal 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
|
||||
}
|
||||
}
|
||||
12
Habitica.Todoist.Integration.Model/Storage/TodoApp.cs
Normal file
12
Habitica.Todoist.Integration.Model/Storage/TodoApp.cs
Normal 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
|
||||
}
|
||||
}
|
||||
15
Habitica.Todoist.Integration.Model/Storage/TodoChange.cs
Normal file
15
Habitica.Todoist.Integration.Model/Storage/TodoChange.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
12
Habitica.Todoist.Integration.Model/Storage/TodoHabitLink.cs
Normal file
12
Habitica.Todoist.Integration.Model/Storage/TodoHabitLink.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
11
Habitica.Todoist.Integration.Model/Storage/TodoistSync.cs
Normal file
11
Habitica.Todoist.Integration.Model/Storage/TodoistSync.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user