wip: finish converting some more projects
This commit is contained in:
25
Habittodo.Model/Storage/HabitTodoLink.cs
Normal file
25
Habittodo.Model/Storage/HabitTodoLink.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using Microsoft.Azure.Cosmos.Table;
|
||||
|
||||
namespace Habittodo.Model.Storage
|
||||
{
|
||||
public class HabitTodoLink : TableEntity
|
||||
{
|
||||
public HabitTodoLink() { }
|
||||
|
||||
public HabitTodoLink(string userId, string habiticaId, string todoistId, string habiticaParentId = null)
|
||||
{
|
||||
PartitionKey = userId;
|
||||
RowKey = habiticaId;
|
||||
HabiticaParentId = habiticaParentId;
|
||||
TodoistId = todoistId;
|
||||
}
|
||||
|
||||
public string HabiticaParentId { get; set; }
|
||||
public string TodoistId { get; set; }
|
||||
|
||||
public TodoHabitLink Reverse()
|
||||
{
|
||||
return new TodoHabitLink(PartitionKey, TodoistId, RowKey);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user