refactoring
This commit is contained in:
parent
36d80be7cf
commit
93110d9972
4 changed files with 24 additions and 23 deletions
|
@ -7,6 +7,7 @@ using Npgsql.TypeHandlers;
|
|||
using BirdsiteLive.Domain;
|
||||
using BirdsiteLive.Domain.Enum;
|
||||
using BirdsiteLive.DAL.Contracts;
|
||||
using BirdsiteLive.Models;
|
||||
|
||||
namespace BirdsiteLive.Controllers
|
||||
{
|
||||
|
@ -213,25 +214,4 @@ namespace BirdsiteLive.Controllers
|
|||
return StatusCode(400);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
public class MigrationData
|
||||
{
|
||||
public string Acct { get; set; }
|
||||
|
||||
public string FediverseAccount { get; set; }
|
||||
public string TweetId { get; set; }
|
||||
|
||||
public string MigrationCode { get; set; }
|
||||
|
||||
public bool IsTweetProvided { get; set; }
|
||||
public bool IsAcctProvided { get; set; }
|
||||
|
||||
public bool IsTweetValid { get; set; }
|
||||
public bool IsAcctValid { get; set; }
|
||||
|
||||
public string ErrorMessage { get; set; }
|
||||
public bool MigrationSuccess { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
21
src/BirdsiteLive/Models/MigrationData.cs
Normal file
21
src/BirdsiteLive/Models/MigrationData.cs
Normal file
|
@ -0,0 +1,21 @@
|
|||
namespace BirdsiteLive.Models
|
||||
{
|
||||
public class MigrationData
|
||||
{
|
||||
public string Acct { get; set; }
|
||||
|
||||
public string FediverseAccount { get; set; }
|
||||
public string TweetId { get; set; }
|
||||
|
||||
public string MigrationCode { get; set; }
|
||||
|
||||
public bool IsTweetProvided { get; set; }
|
||||
public bool IsAcctProvided { get; set; }
|
||||
|
||||
public bool IsTweetValid { get; set; }
|
||||
public bool IsAcctValid { get; set; }
|
||||
|
||||
public string ErrorMessage { get; set; }
|
||||
public bool MigrationSuccess { get; set; }
|
||||
}
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
@model BirdsiteLive.Controllers.MigrationData
|
||||
@model MigrationData
|
||||
@{
|
||||
ViewData["Title"] = "Migration";
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
@model BirdsiteLive.Controllers.MigrationData
|
||||
@model MigrationData
|
||||
@{
|
||||
ViewData["Title"] = "Migration";
|
||||
}
|
||||
|
|
Reference in a new issue