Esempio n. 1
0
        private static Note GenerateNote(eBriefing.com.metrostarsystems.eb13.Note ta)
        {
            Note note = new Note();

            note.BookID      = ta.BookId;
            note.BookVersion = ta.BookVersion;
            note.PageID      = ta.PageId;
            note.ModifiedUtc = ta.Modified;
            note.Removed     = ta.IsDeleted;
            note.CreatedUtc  = ta.Created;
            note.NoteID      = ta.NoteId;
            note.Text        = ta.NoteText;

            return(note);
        }
Esempio n. 2
0
        private static eBriefing.com.metrostarsystems.eb13.Note GenerateNoteObj(Note note)
        {
            eBriefing.com.metrostarsystems.eb13.Note noteObj = new eBriefing.com.metrostarsystems.eb13.Note();

            noteObj.BookId      = note.BookID;
            noteObj.BookVersion = note.BookVersion;
            noteObj.PageId      = note.PageID;
            noteObj.Modified    = note.ModifiedUtc;
            noteObj.IsDeleted   = note.Removed;
            noteObj.Created     = note.CreatedUtc;
            noteObj.NoteId      = note.NoteID;
            noteObj.NoteText    = note.Text;

            return(noteObj);
        }
Esempio n. 3
0
        public static void SetMyNotes(List <Note> noteList)
        {
            try
            {
                if (noteList != null)
                {
                    eBriefing.com.metrostarsystems.eb13.Note[] notes = new eBriefing.com.metrostarsystems.eb13.Note[noteList.Count];

                    for (int i = 0; i < noteList.Count; i++)
                    {
                        notes[i] = GenerateNoteObj(noteList[i]);
                    }

                    eBriefingService.SetMyNotesToCloud(notes);
                }
            }
            catch (Exception ex)
            {
                Logger.WriteLineDebugging("SaveMyStuff - SetMyNote: {0}", ex.ToString());
            }
        }