C# Class VideoRentalService.RentalService

Inheritance: IRentalService
Exibir arquivo Open project: Ecetera/appdynamics-sandpit

Public Methods

Method Description
GetCustomer ( int id ) : SCustomer
GetCustomers ( ) : VideoRentalService.SCustomer[]
GetCustomersByText ( string searchtext ) : VideoRentalService.SCustomer[]
GetPayment ( int id ) : SPayment
GetPayments ( int customerid ) : VideoRentalService.SPayment[]
GetPaymentsByRental ( int rentalid ) : VideoRentalService.SPayment[]
GetRentalByPayment ( int id ) : SRental
GetRentals ( int customerid ) : VideoRentalService.SRental[]
GetRewardsReport ( Nullable min_monthly_purchases, Nullable min_dollar_amount_purchased, int count_rewardees ) : VideoRentalService.SCustomer[]
GetSalesByCategory ( ) : VideoRentalService.CategorySale[]
HireMovie ( int staffid, int customerid, int rentalid, double paymentAmount, string creditcardno, string expiry, string cvv ) : int
Logon ( string user, string password, int &userID ) : bool
Refund ( int staffid, int customerid, double paymentAmount, string creditcardno, string expiry, string cvv ) : int
RefundPayment ( int paymentid ) : bool
RefundT ( int staffid, int customerid, double paymentAmount, string creditcardno, string expiry, string cvv ) : int
RentalService ( ) : System
ServiceCheck ( ) : int

Method Details

GetCustomer() public method

public GetCustomer ( int id ) : SCustomer
id int
return SCustomer

GetCustomers() public method

public GetCustomers ( ) : VideoRentalService.SCustomer[]
return VideoRentalService.SCustomer[]

GetCustomersByText() public method

public GetCustomersByText ( string searchtext ) : VideoRentalService.SCustomer[]
searchtext string
return VideoRentalService.SCustomer[]

GetPayment() public method

public GetPayment ( int id ) : SPayment
id int
return SPayment

GetPayments() public method

public GetPayments ( int customerid ) : VideoRentalService.SPayment[]
customerid int
return VideoRentalService.SPayment[]

GetPaymentsByRental() public method

public GetPaymentsByRental ( int rentalid ) : VideoRentalService.SPayment[]
rentalid int
return VideoRentalService.SPayment[]

GetRentalByPayment() public method

public GetRentalByPayment ( int id ) : SRental
id int
return SRental

GetRentals() public method

public GetRentals ( int customerid ) : VideoRentalService.SRental[]
customerid int
return VideoRentalService.SRental[]

GetRewardsReport() public method

public GetRewardsReport ( Nullable min_monthly_purchases, Nullable min_dollar_amount_purchased, int count_rewardees ) : VideoRentalService.SCustomer[]
min_monthly_purchases Nullable
min_dollar_amount_purchased Nullable
count_rewardees int
return VideoRentalService.SCustomer[]

GetSalesByCategory() public method

public GetSalesByCategory ( ) : VideoRentalService.CategorySale[]
return VideoRentalService.CategorySale[]

HireMovie() public method

public HireMovie ( int staffid, int customerid, int rentalid, double paymentAmount, string creditcardno, string expiry, string cvv ) : int
staffid int
customerid int
rentalid int
paymentAmount double
creditcardno string
expiry string
cvv string
return int

Logon() public method

public Logon ( string user, string password, int &userID ) : bool
user string
password string
userID int
return bool

Refund() public method

public Refund ( int staffid, int customerid, double paymentAmount, string creditcardno, string expiry, string cvv ) : int
staffid int
customerid int
paymentAmount double
creditcardno string
expiry string
cvv string
return int

RefundPayment() public method

public RefundPayment ( int paymentid ) : bool
paymentid int
return bool

RefundT() public method

public RefundT ( int staffid, int customerid, double paymentAmount, string creditcardno, string expiry, string cvv ) : int
staffid int
customerid int
paymentAmount double
creditcardno string
expiry string
cvv string
return int

RentalService() public method

public RentalService ( ) : System
return System

ServiceCheck() public method

public ServiceCheck ( ) : int
return int