refactoring

This commit is contained in:
Nicolas Constant 2022-12-28 15:00:14 -05:00
parent 36d80be7cf
commit 93110d9972
No known key found for this signature in database
GPG key ID: 1E9F677FB01A5688
4 changed files with 24 additions and 23 deletions

View file

@ -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; }
}
}

View 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; }
}
}

View file

@ -1,4 +1,4 @@
@model BirdsiteLive.Controllers.MigrationData
@model MigrationData
@{
ViewData["Title"] = "Migration";
}

View file

@ -1,4 +1,4 @@
@model BirdsiteLive.Controllers.MigrationData
@model MigrationData
@{
ViewData["Title"] = "Migration";
}