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