mirror of
https://github.com/rjNemo/ticket_manager
synced 2026-06-06 08:46:39 +00:00
27 lines
731 B
C#
27 lines
731 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace TicketManager.Models
|
|
{
|
|
// public interface ITask
|
|
public abstract class ITask
|
|
{
|
|
int Id { get; set; }
|
|
string Title { get; set; }
|
|
string Description { get; set; }
|
|
DateTime CreatedAt { get; }
|
|
DateTime PlannedEnding { get; set; }
|
|
List<Activity> Activities { get; set; }
|
|
|
|
public virtual void AddLogEntry(string description)//, User user)
|
|
{
|
|
Activity Activity = new Activity()
|
|
{
|
|
Description = description,
|
|
ActivityType = ActivityType.Undefined,
|
|
// User = user,
|
|
};
|
|
Activities.Add(Activity);
|
|
}
|
|
}
|
|
}
|