Inheritance: API.Request
Esempio n. 1
0
 private void ProcessRateResponse(RateRq request, Response response, Exception e)
 {
     if (e != null)
     {
         Logger.Error("Failed to send the rating request : " + e.Message, e);
     }
     else
     {
         Logger.Debug("Successfully rated " + SecondParty.Party.Username + " " + request.rating + " for " +
                      request.ratingName + " for interaction " + request.interactionId);
     }
 }
Esempio n. 2
0
 public void SetRating(string interactionId, string ratingName, int rating)
 {
     var request = new RateRq { username = SecondParty.Party.Username, interactionId = interactionId, ratingName = ratingName, rating = rating };
     try
     {
         _appContext.ConnectionManager.Connection.RequestAsync<RateRq, RateRs>(request, ProcessRateResponse);
     }
     catch (Exception e)
     {
         Logger.Error("Failed to send rate rq " + request + " : " + e.Message,e);
     }
 }