Inheritance: IBackend
Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
 public IceNote(IceBackend iceBackend,
                IceTask iceTask)
 {
     backend = iceBackend;
     task    = iceTask;
 }
Esempio n. 4
0
        public IceNote(IceBackend iceBackend,
						IceTask iceTask)
        {
            backend = iceBackend;
            task = iceTask;
        }