﻿using Ets.Mobile.Entities.Signets;
using ReactiveUI;
using System;
using System.Runtime.Serialization;

namespace Ets.Mobile.ViewModel.Content.Schedule
{
    public class ScheduleViewModelItem : ReactiveObject, IDisposable
    {
        #region IDisposable

        public void Dispose()
        {
            Schedule = null;
        }

        #endregion

        public ScheduleViewModelItem(ScheduleVm vm)
        {
            Schedule = vm;
        }

        #region Properties

        private ScheduleVm _schedule;
        [DataMember]
        public ScheduleVm Schedule
        {
            get { return _schedule; }
            set { this.RaiseAndSetIfChanged(ref _schedule, value); }
        }

        #endregion
    }
}