C# Class Restbucks.Client.Console.RestbucksClient

Show file Open project: SzymonPobiega/restbucks-wcf Class Usage Examples

Public Methods

Method Description
CreateOrder ( OrderRepresentation order ) : OrderRepresentation
GetOrder ( string orderUri ) : OrderRepresentation
GetReceipt ( string receiptUri ) : ReceiptRepresentation
PayForOrder ( string paymentUri, PaymentRepresentation payment ) : PaymentRepresentation
RestbucksClient ( string baseUri ) : System.Net.Http
TakeCoffee ( string receiptUri ) : void

Private Methods

Method Description
GetHttpClient ( ) : HttpClient
GetHttpClient ( string baseUri ) : HttpClient

Method Details

CreateOrder() public method

public CreateOrder ( OrderRepresentation order ) : OrderRepresentation
order Restbucks.Service.Representations.OrderRepresentation
return Restbucks.Service.Representations.OrderRepresentation

GetOrder() public method

public GetOrder ( string orderUri ) : OrderRepresentation
orderUri string
return Restbucks.Service.Representations.OrderRepresentation

GetReceipt() public method

public GetReceipt ( string receiptUri ) : ReceiptRepresentation
receiptUri string
return Restbucks.Service.Representations.ReceiptRepresentation

PayForOrder() public method

public PayForOrder ( string paymentUri, PaymentRepresentation payment ) : PaymentRepresentation
paymentUri string
payment Restbucks.Service.Representations.PaymentRepresentation
return Restbucks.Service.Representations.PaymentRepresentation

RestbucksClient() public method

public RestbucksClient ( string baseUri ) : System.Net.Http
baseUri string
return System.Net.Http

TakeCoffee() public method

public TakeCoffee ( string receiptUri ) : void
receiptUri string
return void