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; }
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); }