コード例 #1
0
ファイル: WebSyncServer.cs プロジェクト: j-4/tomboy-library
        public void UploadNotes(IList<Note> notes)
        {
            var restClient = GetJsonClient ();

            var request = new PutNotesRequest ();
            //request.LatestSyncRevision = this.LatestRevision;
            request.Notes = notes.ToDTONotes ();

            restClient.Put<GetNotesResponse> (notesServiceUrl, request);

            // TODO if conflicts arise, this may be different
            UploadedNotes = notes;
        }