Exemplo n.º 1
0
        public string OnNoteUpdate(string args)
        {
            var Input   = JsonConvert.DeserializeObject<NoteUpdateInput>(args);
            var Result  = new NoteUpdateOutput();

            var note    = ModuleHelper.GetNote(Input.NotebookId, Input.NotebookPass, Input.NoteId);
            if (note != null)
            {
                note.name           = Input.NewName;
                note.type           = Input.NewType;
                note.data           = Input.NewData;
                Result.ResultStatus = ResultStatus.SuccessStatus;
            }

            var Output = JsonConvert.SerializeObject(Result);
            return Output;
        }
Exemplo n.º 2
0
        public string OnNoteUpdate(string args)
        {
            var Input  = JsonConvert.DeserializeObject <NoteUpdateInput>(args);
            var Result = new NoteUpdateOutput();

            var note = ModuleHelper.GetNote(Input.NotebookId, Input.NotebookPass, Input.NoteId);

            if (note != null)
            {
                note.name           = Input.NewName;
                note.type           = Input.NewType;
                note.data           = Input.NewData;
                Result.ResultStatus = ResultStatus.SuccessStatus;
            }

            var Output = JsonConvert.SerializeObject(Result);

            return(Output);
        }