예제 #1
0
 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);
 }
예제 #2
0
 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
     });
 }
예제 #3
0
 public void EndServiceDelivery(string clientId, ServiceDeliveryToken serviceDeliveryToken, int unitsReceived)
 {
     _client.endServiceDelivery(clientId, ServiceDeliveryTokenAdapter.Create(serviceDeliveryToken), unitsReceived);
 }
예제 #4
0
 public void BeginServiceDelivery(string clientId, ServiceDeliveryToken serviceDeliveryToken, int unitsToSupply)
 {
     _client.beginServiceDelivery(clientId, ServiceDeliveryTokenAdapter.Create(serviceDeliveryToken), unitsToSupply);
 }