public void endServiceDelivery(int serviceId, Rpc.Types.ServiceDeliveryToken serviceDeliveryToken, int unitsReceived) { Log.DebugFormat("EndServiceDelivery invoked (serviceId={0}, serviceDeliveryToken={1}, unitsToSupply={2})", serviceId, serviceDeliveryToken, unitsReceived); EndServiceDelivery?.Invoke(serviceId, ServiceDeliveryTokenAdapter.Create(serviceDeliveryToken), unitsReceived); }
public static PaymentResponse Create(Rpc.Types.PaymentResponse makePayment) { return(new PaymentResponse() { ClientId = makePayment.ClientId, ClientUuid = makePayment.ClientUUID, ServerId = makePayment.ServerId, ServiceDeliveryToken = ServiceDeliveryTokenAdapter.Create(makePayment.ServiceDeliveryToken), TotalPaid = makePayment.TotalPaid }); }
public void EndServiceDelivery(string clientId, ServiceDeliveryToken serviceDeliveryToken, int unitsReceived) { _client.endServiceDelivery(clientId, ServiceDeliveryTokenAdapter.Create(serviceDeliveryToken), unitsReceived); }
public void BeginServiceDelivery(string clientId, ServiceDeliveryToken serviceDeliveryToken, int unitsToSupply) { _client.beginServiceDelivery(clientId, ServiceDeliveryTokenAdapter.Create(serviceDeliveryToken), unitsToSupply); }