public static bool NotebookList(int notebookid, string notebookpass, ref List<int> notelist) { var input = new NotebookListInput() { NotebookId = notebookid, NotebookPass = notebookpass, }; var json = JsonConvert.SerializeObject(input); string output = null; try { output = HttpReader.HttpPost(ApiDef.NotebookList, json); } catch (AggregateException) { return false; } var result = JsonConvert.DeserializeObject<NotebookListOutput>(output); var issuccess = ResultStatus.IsSuccess(result.ResultStatus); if (issuccess) { notelist = result.NoteList; } return issuccess; }
public static List<int> GetNotebookNoteList(int notebookid, string notebookpass) { var notebooklistinput = new NotebookListInput() { NotebookId = notebookid, NotebookPass = notebookpass, }; var output = notebookmodule.OnNotebookList(JsonConvert.SerializeObject(notebooklistinput)); var notebooklistoutput = JsonConvert.DeserializeObject<NotebookListOutput>(output); return notebooklistoutput.NoteList; }