ignore tsFile

This commit is contained in:
Mossimo
2021-11-05 19:00:21 +08:00
parent d491c15a61
commit fd42381410
13 changed files with 244 additions and 0 deletions
+1
View File
@@ -361,3 +361,4 @@ launchSettings.json
# Android KeyStore
*.jks
/Xamarin.Android.KeyStore.props
*.ts
+12
View File
@@ -21,6 +21,10 @@
</ItemGroup>
<ItemGroup>
<Compile Update="Platform.cs">
<Generator>DtsGenerator</Generator>
<LastGenOutput>Platform.cs.d.ts</LastGenOutput>
</Compile>
<Compile Update="Properties\SR.Designer.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
@@ -35,4 +39,12 @@
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<None Update="Platform.cs.d.ts">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>Platform.cs</DependentUpon>
</None>
</ItemGroup>
</Project>
@@ -0,0 +1,24 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace System.Application.Models
{
public enum FontAlign:byte
{
/// <summary>
/// 左对其
/// </summary>
Left = 1,
/// <summary>
/// 右对其
/// </summary>
Right = 2,
/// <summary>
/// 居中对其
/// </summary>
Center =4
}
}
@@ -0,0 +1,23 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace System.Application.Models
{
public enum FontDecoration : byte
{
/// <summary>
/// 无
/// </summary>
None=1,
/// <summary>
/// 下划线
/// </summary>
Underline=4,
/// <summary>
/// 删除线
/// </summary>
LineThrough=8
}
}
@@ -0,0 +1,45 @@
using System.Collections.Generic;
using MPKey = MessagePack.KeyAttribute;
using MPObj = MessagePack.MessagePackObjectAttribute;
using N_JsonProperty = Newtonsoft.Json.JsonPropertyAttribute;
using S_JsonProperty = System.Text.Json.Serialization.JsonPropertyNameAttribute;
namespace System.Application.Models
{
[MPObj]
public class NoticeExtendedPropeInfo
{
/// <summary>
/// 字体粗细
/// </summary>
[MPKey(0)]
[N_JsonProperty("0")]
[S_JsonProperty("0")]
public FontWeight FontWeight { get; set; }
/// <summary>
/// 字体颜色
/// </summary>
[MPKey(1)]
[N_JsonProperty("1")]
[S_JsonProperty("1")]
public uint FontColor { get; set; }
/// <summary>
/// 对其方式
/// </summary>
[MPKey(2)]
[N_JsonProperty("2")]
[S_JsonProperty("2")]
public FontAlign FontAlign { get; set; } = FontAlign.Left;
/// <summary>
/// 下划线or删除线
/// </summary>
[MPKey(3)]
[N_JsonProperty("3")]
[S_JsonProperty("3")]
public FontDecoration FontDecoration { get; set; } = FontDecoration.None;
}
}
@@ -0,0 +1,33 @@
using System.Collections.Generic;
using MPKey = MessagePack.KeyAttribute;
using MPObj = MessagePack.MessagePackObjectAttribute;
using N_JsonProperty = Newtonsoft.Json.JsonPropertyAttribute;
using S_JsonProperty = System.Text.Json.Serialization.JsonPropertyNameAttribute;
namespace System.Application.Models
{
[MPObj]
public class NoticeContentResponse
{
[MPKey(0)]
[N_JsonProperty("0")]
[S_JsonProperty("0")]
public string Content { get; set; } = string.Empty;
[MPKey(1)]
[N_JsonProperty("1")]
[S_JsonProperty("1")]
public NoticeTypeEnum NoticeType { get; set; } = NoticeTypeEnum.Text;
[MPKey(2)]
[N_JsonProperty("2")]
[S_JsonProperty("2")]
public string Url { get; set; } = string.Empty;
[MPKey(3)]
[N_JsonProperty("3")]
[S_JsonProperty("3")]
public IList<NoticeExtendedPropeInfo>? ExtendedPropes { get; set; }
}
}
@@ -0,0 +1,23 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace System.Application.Models
{
public enum NoticeTypeEnum : byte
{
/// <summary>
/// url
/// </summary>
URL = 1,
/// <summary>
/// 文本
/// </summary>
Text = 4,
/// <summary>
/// 图片
/// </summary>
Picture = 8,
}
}
@@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace System.Application.Models
{
public class SelectItemResponse
{
public Guid Value { get; set; }
public string Label { get; set; } = string.Empty;
}
}
@@ -24,6 +24,34 @@
</ItemGroup>
<ItemGroup>
<Compile Update="Models\Font\FontAlign.cs">
<Generator>DtsGenerator</Generator>
<LastGenOutput>FontAlign.cs.d.ts</LastGenOutput>
</Compile>
<Compile Update="Models\Font\FontDecoration.cs">
<Generator>DtsGenerator</Generator>
<LastGenOutput>FontDecoration.cs.d.ts</LastGenOutput>
</Compile>
<Compile Update="Models\Font\FontWeight.cs">
<Generator>DtsGenerator</Generator>
<LastGenOutput>FontWeight.cs.d.ts</LastGenOutput>
</Compile>
<Compile Update="Models\Notice\ExtendedPropeInfo.cs">
<Generator>DtsGenerator</Generator>
<LastGenOutput>ExtendedPropeInfo.cs.d.ts</LastGenOutput>
</Compile>
<Compile Update="Models\Notice\NoticeContentResponse.cs">
<Generator>DtsGenerator</Generator>
<LastGenOutput>NoticeContentResponse.cs.d.ts</LastGenOutput>
</Compile>
<Compile Update="Models\Notice\NoticeTypeEnum.cs">
<Generator>DtsGenerator</Generator>
<LastGenOutput>NoticeTypeEnum.cs.d.ts</LastGenOutput>
</Compile>
<Compile Update="Models\SelectItemResponse.cs">
<Generator>DtsGenerator</Generator>
<LastGenOutput>SelectItemResponse.cs.d.ts</LastGenOutput>
</Compile>
<Compile Update="Properties\SR.Designer.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
@@ -38,4 +66,42 @@
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<None Update="Models\Font\FontAlign.cs.d.ts">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>FontAlign.cs</DependentUpon>
</None>
<None Update="Models\Font\FontDecoration.cs.d.ts">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>FontDecoration.cs</DependentUpon>
</None>
<None Update="Models\Font\FontWeight.cs.d.ts">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>FontWeight.cs</DependentUpon>
</None>
<None Update="Models\Notice\ExtendedPropeInfo.cs.d.ts">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>ExtendedPropeInfo.cs</DependentUpon>
</None>
<None Update="Models\Notice\NoticeContentResponse.cs.d.ts">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>NoticeContentResponse.cs</DependentUpon>
</None>
<None Update="Models\Notice\NoticeTypeEnum.cs.d.ts">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>NoticeTypeEnum.cs</DependentUpon>
</None>
<None Update="Models\SelectItemResponse.cs.d.ts">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>SelectItemResponse.cs</DependentUpon>
</None>
</ItemGroup>
</Project>
+5
View File
@@ -11,6 +11,11 @@ namespace System.Application
/// </summary>
Avatar = 0x1,
/// <summary>
/// 通知封面,内容图片
/// </summary>
Notice = 0x4,
//占位符1 = 0x2,
//占位符2 = 0x4,
//占位符3 = 0x8,