add chat and users

This commit is contained in:
2026-09-10 19:09:36 +03:30
parent 91ad61bdee
commit 8eb465c0e7
40 changed files with 4888 additions and 148 deletions

View File

@@ -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>
/// تصاویر پیوست