pleroma: more implicit usings

This commit is contained in:
uwaa 2024-12-13 12:25:20 +00:00
parent 39bf03ae95
commit b133228ed6
12 changed files with 14 additions and 35 deletions

View file

@ -1,7 +1,4 @@
using System.Text.Json;
using System.Text.Json.Serialization;
namespace Uwaa.Pleroma.API;
namespace Uwaa.Pleroma.API;
[JsonConverter(typeof(PublishStatusConverter))]
public class PublishStatus

View file

@ -1,7 +1,4 @@
using System.Text.Json;
using System.Text.Json.Serialization;
namespace Uwaa.Pleroma;
namespace Uwaa.Pleroma;
/// <summary>
/// Converts to and from enum values in lowercase.

View file

@ -1,6 +1,4 @@
using System.Text.Json.Serialization;
namespace Uwaa.Pleroma;
namespace Uwaa.Pleroma;
public class Account
{

View file

@ -1,6 +1,4 @@
using System.Text.Json.Serialization;
namespace Uwaa.Pleroma;
namespace Uwaa.Pleroma;
public class Context
{

View file

@ -1,6 +1,4 @@
using System.Text.Json.Serialization;
namespace Uwaa.Pleroma;
namespace Uwaa.Pleroma;
public class Hashtag
{

View file

@ -1,6 +1,4 @@
using System.Text.Json.Serialization;
namespace Uwaa.Pleroma;
namespace Uwaa.Pleroma;
public class PleromaException : Exception
{

View file

@ -1,6 +1,4 @@
using System.Text.Json.Serialization;
namespace Uwaa.Pleroma;
namespace Uwaa.Pleroma;
public class PleromaObject
{

View file

@ -1,6 +1,4 @@
using System.Text.Json.Serialization;
namespace Uwaa.Pleroma;
namespace Uwaa.Pleroma;
public class SearchResults
{

View file

@ -1,6 +1,4 @@
using System.Text.Json.Serialization;
namespace Uwaa.Pleroma;
namespace Uwaa.Pleroma;
public class Status
{

View file

@ -1,6 +1,4 @@
using System.Text.Json;
using System.Threading.Tasks;
using Uwaa.HTTP;
using Uwaa.HTTP;
using Uwaa.Pleroma.API;
namespace Uwaa.Pleroma;

View file

@ -16,5 +16,8 @@
<Using Include="System.Collections.Generic" />
<Using Include="System.IO" />
<Using Include="System.Linq" />
<Using Include="System.Threading.Tasks" />
<Using Include="System.Text.Json" />
<Using Include="System.Text.Json.Serialization" />
</ItemGroup>
</Project>

View file

@ -1,6 +1,4 @@
using System.Text.Json.Serialization;
namespace Uwaa.Pleroma;
namespace Uwaa.Pleroma;
[JsonConverter(typeof(EnumLowerCaseConverter<StatusVisibility>))]
public enum StatusVisibility