Inheritance: Gwupe.Cloud.Messaging.API.Response
Example #1
0
 public Response process(Request req)
 {
     var request = (PresenceChangeRq) req;
     var response = new PresenceChangeRs();
     try
     {
         _appContext.RosterManager.ProcessPresenceChange(request);
     }
     catch (Exception e)
     {
         Logger.Error("Failed to process presence change : " + e.Message,e);
         response.error = "UNKNOWN_ERROR";
         response.errorMessage = "Failed to process presence change";
     }
     return response;
 }
Example #2
0
 private void HandlePresenceUpdateResponse(PresenceChangeRq presenceChangeRq, PresenceChangeRs presenceChangeRs, Exception ex)
 {
     if(ex == null)
     {
         Logger.Debug("Successfully updated presence : " + _currentUserPresence);
     } else
     {
         Logger.Error("Failed to update presence : " + ex.Message, ex);
     }
 }