Package com.google.gdata.data.finance

Examples of com.google.gdata.data.finance.TransactionEntry


          String commission = sc.nextLine();
          System.out.print("Enter currency (optional, e.g. USD, EUR, JPY): ");
          String currency = sc.nextLine();
          System.out.print("Enter any notes: ");
          String notes = sc.nextLine();
          TransactionEntry entry = FinanceUtilities.makeTransactionEntry(
              type, date, shares, price, commission, currency, notes);
          insertTransactionEntry(service, requestUrl, entry);
          break;
        case UPDATE:
          System.out.println("Enter portfolio ID");
View Full Code Here


      System.out.println("********** Beginning of inline feed ***************");
      printBasicFeedDetails(positionEntry.getFeedLink().getFeed());
      TransactionFeed inlinedFeed = positionEntry.getFeedLink().getFeed();
      printBasicFeedDetails(inlinedFeed);
      for (int i = 0; i < inlinedFeed.getEntries().size(); i++) {
        TransactionEntry transactionEntry = inlinedFeed.getEntries().get(i);
        printTransactionEntry(transactionEntry);
      }
      System.out.println("************* End of inlined feed *****************");
    }
    System.out.println("\tTicker:");
View Full Code Here

    System.out.println("Requesting Feed at location " + feedUrl);
    TransactionFeed transactionFeed = service.getFeed(new URL(feedUrl), TransactionFeed.class);
    System.out.println("\nTransaction Feed\n================");
    printBasicFeedDetails(transactionFeed);
    for (int i = 0; i < transactionFeed.getEntries().size(); i++) {
      TransactionEntry transactionEntry = transactionFeed.getEntries().get(i);
      printTransactionEntry(transactionEntry);
    }
  }
View Full Code Here

   * @throws ServiceException If the service is unable to handle the request.
   */
  private static void queryTransactionEntry(FinanceService service, String entryUrl)
      throws IOException, MalformedURLException, ServiceException {
    System.out.println("Requesting Entry at location: " + entryUrl);
    TransactionEntry transactionEntry =
        service.getEntry(new URL(entryUrl), TransactionEntry.class);
    printTransactionEntry(transactionEntry);
  }
View Full Code Here

  private static void insertTransactionEntry(FinanceService service,
                                             String feedUrl,
                                             TransactionEntry entry)
      throws IOException, MalformedURLException, ServiceException {
    System.out.println("Inserting Entry at location: " + feedUrl);
    TransactionEntry insertedEntry = service.insert(new URL(feedUrl), entry);
    printTransactionEntry(insertedEntry);
  }
View Full Code Here

  private static void updateTransactionEntry(FinanceService service,
                                             String entryUrl,
                                             TransactionEntry entry)
      throws IOException, MalformedURLException, ServiceException {
    System.out.println("Updating Entry at location: " + entryUrl);
    TransactionEntry updatedEntry = service.update(new URL(entryUrl), entry);
    printTransactionEntry(updatedEntry);
  }
View Full Code Here

TOP

Related Classes of com.google.gdata.data.finance.TransactionEntry

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.