add chat and users
This commit is contained in:
@@ -1,5 +1,23 @@
|
||||
namespace GreenHome.Domain;
|
||||
|
||||
/// <summary>
|
||||
/// نوع پیام در گروه مجازی دستگاه
|
||||
/// </summary>
|
||||
public enum DevicePostType
|
||||
{
|
||||
/// <summary>متن</summary>
|
||||
Text = 0,
|
||||
|
||||
/// <summary>تصویر</summary>
|
||||
Image = 1,
|
||||
|
||||
/// <summary>ویس</summary>
|
||||
Voice = 2,
|
||||
|
||||
/// <summary>اسنپشات وضعیت سنسورها و رلهها</summary>
|
||||
SensorSnapshot = 3
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// پستهای گروه مجازی دستگاه (تایملاین مشترک)
|
||||
/// </summary>
|
||||
@@ -23,6 +41,21 @@ public sealed class DevicePost
|
||||
/// متن پست
|
||||
/// </summary>
|
||||
public string Content { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// نوع پیام
|
||||
/// </summary>
|
||||
public DevicePostType PostType { get; set; } = DevicePostType.Text;
|
||||
|
||||
/// <summary>
|
||||
/// مسیر نسبی فایل صوتی (برای پیام ویس)
|
||||
/// </summary>
|
||||
public string? VoiceFilePath { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// مدتزمان ویس (ثانیه)
|
||||
/// </summary>
|
||||
public int? VoiceDurationSeconds { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// تصاویر پیوست
|
||||
|
||||
Reference in New Issue
Block a user