001package edu.pdx.cs410J.di; 002 003import com.google.inject.Inject; 004import com.google.inject.name.Named; 005 006/** 007 * A {@link CreditCardService} that makes REST calls to access the First Bank of Portland State. 008 */ 009public class FirstBankOfPSU implements CreditCardService 010{ 011 private final String serverHost; 012 013 private final int serverPort; 014 015 @Inject 016 public FirstBankOfPSU( @Named("ServerHost") String serverHost, @Named("ServerPort") int serverPort ) 017 { 018 this.serverHost = serverHost; 019 this.serverPort = serverPort; 020 } 021 022 public CreditTransactionCode debit( CreditCard card, double amount ) 023 { 024 throw new UnsupportedOperationException( "This method is not implemented yet" ); 025 } 026}