presence/Presence.Desktop/Models/UserPresenter.cs

74 lines
1.7 KiB
C#
Raw Normal View History

2024-11-29 15:14:56 +00:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
2025-04-30 01:13:44 +00:00
using ReactiveUI;
2024-11-29 15:14:56 +00:00
namespace Presence.Desktop.Models
{
2025-04-30 01:13:44 +00:00
public class UserPresenter : ReactiveObject
2024-11-29 15:14:56 +00:00
{
2025-04-30 01:13:44 +00:00
private Guid _guid;
private string _name;
private GroupPresenter _group;
public Guid Guid
{
get => _guid;
set => this.RaiseAndSetIfChanged(ref _guid, value);
}
public string Name
{
get => _name;
set => this.RaiseAndSetIfChanged(ref _name, value);
}
public GroupPresenter Group
{
get => _group;
set => this.RaiseAndSetIfChanged(ref _group, value);
}
}
public class UserPresencePresenter : ReactiveObject
{
private Guid _guidUser;
private string _fio;
private int _lessonNumber;
private DateOnly _date;
private bool _isAttendance;
public Guid GuidUser
{
get => _guidUser;
set => this.RaiseAndSetIfChanged(ref _guidUser, value);
}
public string FIO
{
get => _fio;
set => this.RaiseAndSetIfChanged(ref _fio, value);
}
public int LessonNumber
{
get => _lessonNumber;
set => this.RaiseAndSetIfChanged(ref _lessonNumber, value);
}
public DateOnly Date
{
get => _date;
set => this.RaiseAndSetIfChanged(ref _date, value);
}
public bool IsAttendance
{
get => _isAttendance;
set => this.RaiseAndSetIfChanged(ref _isAttendance, value);
}
2024-11-29 15:14:56 +00:00
}
2024-12-05 08:26:58 +00:00
}