|
Hagglehaul
1.0
Hagglehaul - book and bid on rides
|
See IBidService. More...
Public Member Functions | |
| BidService (IMongoDatabase database) | |
| async Task< List< Bid > > | GetDriverBidsAsync (string email) |
| Get all bids for a driver. | |
| async Task< List< Bid > > | GetTripBidsAsync (string tripId) |
| Get all bids for a trip. | |
| async Task< Bid > | CreateAsync (Bid bid) |
| Create a new bid on a trip. | |
| async Task | UpdateAsync (string id, Bid bidIn) |
| Update a bid. | |
| async Task | DeleteAsync (string id) |
| Delete a bid. | |
| async Task | DeleteByTripIdAsync (string tripId) |
| Delete all bids for a given trip. Useful when a trip is deleted. | |
Public Attributes | |
| readonly IMongoCollection< Bid > | _bidCollection |
See IBidService.
Create a new bid on a trip.
| bid | A Bid object to be inserted. Note that we do not check for correctness of the inserted object. |
Implements hagglehaul.Server.Services.IBidService.
| async Task hagglehaul.Server.Services.BidService.DeleteAsync | ( | string | id | ) |
Delete a bid.
| id | The Bid ID of the bid |
Implements hagglehaul.Server.Services.IBidService.
| async Task hagglehaul.Server.Services.BidService.DeleteByTripIdAsync | ( | string | tripId | ) |
Delete all bids for a given trip. Useful when a trip is deleted.
| tripId | The Trip ID for which all bids will be deleted. |
Implements hagglehaul.Server.Services.IBidService.
| async Task< List< Bid > > hagglehaul.Server.Services.BidService.GetDriverBidsAsync | ( | string | ) |
Get all bids for a driver.
| The email (username) of the driver |
Implements hagglehaul.Server.Services.IBidService.
| async Task< List< Bid > > hagglehaul.Server.Services.BidService.GetTripBidsAsync | ( | string | tripId | ) |
Get all bids for a trip.
| tripId | The Trip ID of the trip |
Implements hagglehaul.Server.Services.IBidService.
| async Task hagglehaul.Server.Services.BidService.UpdateAsync | ( | string | id, |
| Bid | bidIn ) |
Update a bid.
| id | The Bid ID of the bid |
| bidIn | The new Bid object. Note that we do not check for correctness of the inserted object. |
Implements hagglehaul.Server.Services.IBidService.