예제 #1
0
 static string GetText(Note note)
 {
     if (note.Title != null && note.Title.Length > 0)
         note.Text = note.Title + note.Text;
     note.Title = string.Empty;
     return note.Text;
 }
예제 #2
0
        public RtmNote CreateNote(RtmTask rtmTask, string text)
        {
            RtmNet.Note note    = null;
            RtmNote     rtmNote = null;

            if (rtm != null)
            {
                try {
                    note    = rtm.NotesAdd(timeline, rtmTask.ListID, rtmTask.SeriesTaskID, rtmTask.TaskTaskID, String.Empty, text);
                    rtmNote = new RtmNote(note);
                } catch (Exception e) {
                    Logger.Debug("RtmBackend.CreateNote: Unable to create a new note");
                    Logger.Debug(e.ToString());
                }
            }
            else
            {
                throw new Exception("Unable to communicate with Remember The Milk");
            }

            return(rtmNote);
        }
예제 #3
0
 public RtmNote(Note note)
     : base(note.Text)
 {
     this.note = note;
 }