Fleshed out the table storage service and started syncing logic

This commit is contained in:
2020-03-19 19:09:03 -04:00
parent 59377a7749
commit 0bfab99f1b
22 changed files with 630 additions and 131 deletions

View File

@@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Habitica.Todoist.Integration.Model.Habitica.Enums
{
public enum ScoreAction
{
Up = 0,
Down = 1
}
}

View File

@@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Habitica.Todoist.Integration.Model.Habitica.Enums
{
public enum TaskType
{
Habit = 0,
Daily = 1,
Todo = 2,
Reward = 3
}
}

View File

@@ -0,0 +1,17 @@
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Text;
namespace Habitica.Todoist.Integration.Model.Habitica.Responses
{
public class HabiticaReponse<T>
{
[JsonProperty("success")]
public bool Success { get; set; }
[JsonProperty("data")]
public T Data { get; set; }
[JsonProperty("notifications")]
public object Notifications { get; set; }
}
}

View File

@@ -1,14 +0,0 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Habitica.Todoist.Integration.Model.Habitica
{
public static class TaskType
{
public static string Habit = "habit";
public static string Daily = "daily";
public static string Todo = "todo";
public static string Reward = "reward";
}
}