Click or drag to resize

IOperationService.ChangeRideStatus Method

Changes ride current status to a new one and sets status details if any.

Namespace:  Resto.Front.Api
Assembly:  Resto.Front.Api.V9 (in Resto.Front.Api.V9.dll)
Syntax
C#
void ChangeRideStatus(
	Guid rideId,
	RideStatus newStatus,
	string statusDetails,
	ICredentials credentials
)

Parameters

rideId
Type: System.Guid
Identifier of a ride whose status's to be changed.
newStatus
Type: Resto.Front.Api.Data.Brd.RideStatus
New status of a ride.
statusDetails
Type: System.String
Some additional status info received from an external courier service. Maximum length is 1000 chars.
credentials
Type: Resto.Front.Api.Data.Security.ICredentials
The credentials returned by AuthenticateByPin(String) method.
Exceptions
ExceptionCondition
EntityNotFoundExceptionRide not found.
InvalidOperationExceptionWhen delivery status is not OnWay.
See Also