74 lines
1.7 KiB
C#
74 lines
1.7 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using ReactiveUI;
|
|
|
|
namespace Presence.Desktop.Models
|
|
{
|
|
public class UserPresenter : ReactiveObject
|
|
{
|
|
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);
|
|
}
|
|
}
|
|
}
|