UploadMapFileCommand.cs
1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
namespace Rcs.Application.MessageBus.Commands;
/// <summary>
/// 上传地图文件命令
/// @author zzy
/// </summary>
public class UploadMapFileCommand : MessageBase
{
/// <summary>
/// 地图ID
/// </summary>
public string MapId { get; set; } = string.Empty;
/// <summary>
/// 文件流
/// </summary>
public Stream FileStream { get; set; } = null!;
/// <summary>
/// 文件名
/// </summary>
public string FileName { get; set; } = string.Empty;
/// <summary>
/// 文件大小(字节)
/// </summary>
public long FileSize { get; set; }
/// <summary>
/// 透明度(0-1)
/// </summary>
public decimal Opacity { get; set; } = 1.00m;
/// <summary>
/// 缩放比例
/// </summary>
public decimal Scale { get; set; } = 1.00m;
/// <summary>
/// 旋转角度
/// </summary>
public decimal Rotation { get; set; } = 0.00m;
/// <summary>
/// 地图左下角偏移量X
/// </summary>
public decimal OffsetX { get; set; } = 0.00m;
/// <summary>
/// 地图左下角偏移量Y
/// </summary>
public decimal OffsetY { get; set; } = 0.00m;
}