private void WriteNoteList(NotesMetadataList notes) { Console.WriteLine("該当件数:" + notes.TotalNotes); foreach (NoteMetadata note in notes.Notes) { Console.WriteLine(" * " + note.Title + ", " + note.Guid); } }
public void Read (TProtocol iprot) { TField field; iprot.ReadStructBegin(); while (true) { field = iprot.ReadFieldBegin(); if (field.Type == TType.Stop) { break; } switch (field.ID) { case 0: if (field.Type == TType.Struct) { Success = new NotesMetadataList(); Success.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 1: if (field.Type == TType.Struct) { UserException = new Evernote.EDAM.Error.EDAMUserException(); UserException.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: if (field.Type == TType.Struct) { SystemException = new Evernote.EDAM.Error.EDAMSystemException(); SystemException.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 3: if (field.Type == TType.Struct) { NotFoundException = new Evernote.EDAM.Error.EDAMNotFoundException(); NotFoundException.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); }