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; namespace Uwaa.Pleroma.API;
using System.Text.Json.Serialization;
namespace Uwaa.Pleroma.API;
[JsonConverter(typeof(PublishStatusConverter))] [JsonConverter(typeof(PublishStatusConverter))]
public class PublishStatus public class PublishStatus

View file

@ -1,7 +1,4 @@
using System.Text.Json; namespace Uwaa.Pleroma;
using System.Text.Json.Serialization;
namespace Uwaa.Pleroma;
/// <summary> /// <summary>
/// Converts to and from enum values in lowercase. /// 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 public class Account
{ {

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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