public IceTask(IceBackend iceBackend, IceCategory iceCategory, TaskEntry taskEntry) { this.backend = iceBackend; this.category = iceCategory; this.entry = taskEntry; if (entry.Status == TaskStatus.Completed) { this.state = TaskState.Completed; } else if (entry.Status == TaskStatus.Cancelled) { this.state = TaskState.Inactive; // TODO: Is this the right thing to do? } else { this.state = TaskState.Active; } // Construct a unique id in the format of // <team-id>-<team-folder-id>-<task-entry-id> id = string.Format("{0}-{1}-{2}", iceCategory.Team.ID, iceCategory.Folder.ID, taskEntry.ID); }
public IceTask(IceBackend iceBackend, IceCategory iceCategory, TaskEntry taskEntry) { this.backend = iceBackend; this.category = iceCategory; this.entry = taskEntry; if (entry.Status == TaskStatus.Completed) this.state = TaskState.Completed; else if (entry.Status == TaskStatus.Cancelled) this.state = TaskState.Inactive; // TODO: Is this the right thing to do? else this.state = TaskState.Active; // Construct a unique id in the format of // <team-id>-<team-folder-id>-<task-entry-id> id = string.Format ("{0}-{1}-{2}", iceCategory.Team.ID, iceCategory.Folder.ID, taskEntry.ID); }
public IceNote(IceBackend iceBackend, IceTask iceTask) { backend = iceBackend; task = iceTask; }