예제 #1
0
        /// <summary>
        /// get list of notes metadata changed since given time
        /// </summary>
        public static List <NoteMeta> getIndex(double since)
        {
            var result = new List <NoteMeta>();
            var js     = new JavaScriptSerializer();
            var meta   = new NotesMeta();

            do
            {
                var s = RequestRetry("/api2/index?length=100&since=" + since.ToString("R").Replace(',', '.') + "&mark=" + meta.mark);
                meta = js.Deserialize <NotesMeta>(s);
                result.AddRange(meta.data);
            }while (!String.IsNullOrEmpty(meta.mark));

            return(result);
        }
예제 #2
0
        /// <summary>
        /// get list of notes metadata changed since given time
        /// </summary>
        public static List<NoteMeta> getIndex(double since)
        {
            var result = new List<NoteMeta>();
              var js = new JavaScriptSerializer();
              var meta = new NotesMeta();

              do {
            var s = RequestRetry("/api2/index?length=100&since=" + since.ToString("R").Replace(',', '.') + "&mark=" + meta.mark);
            meta = js.Deserialize<NotesMeta>(s);
            result.AddRange(meta.data);
              }
              while (!String.IsNullOrEmpty(meta.mark));

              return result;
        }