/// <summary>
 /// Gets a list of updated actions between a timeinterval and a list of wanted data types.
 /// </summary>
 /// <param name="filter">The filter for the search.</param>
 /// <returns>A list of <see cref="ActionEx"/>s. There is an upper limit on the number of actions that can be returned.</returns>
 public List <ActionEx> GetUpdatedActions(UpdatedActionsSearchFilter filter)
 {
     try
     {
         List <ActionEx> actions = WebApi.GetUpdatedActions(ResourceServerBaseAddress, filter, Token, RemoteHostId, ClientId, DeviceId, ModuleId, Timeout);
         return(actions);
     }
     catch (Exception e)
     {
         Log.ErrorFormat("Himsa.Noah.MobileAccessLayer.AccessLayer::GetUpdatedActions: {0}", e);
         throw;
     }
 }
Exemple #2
0
        public static List <ActionEx> GetUpdatedActions(Uri resourceServerBaseAddress, UpdatedActionsSearchFilter filter, Token token, string remoteHostId, string clientId, string deviceId, int moduleId, TimeSpan timeout)
        {
            try
            {
                Log.DebugFormat("Himsa.Noah.MobileAccessLayer.WebApi::GetUpdatedActions called.");
                string path    = String.Format("api/patients/actions/updates");
                var    actions = Helpers.Execute <UpdatedActionsSearchFilter, ActionSearch>(Helpers.HttpVerb.Post, resourceServerBaseAddress, path, token, remoteHostId, clientId, deviceId, moduleId, filter, timeout);
                Log.DebugFormat("Himsa.Noah.MobileAccessLayer.WebApi::GetUpdatedActions: {0} found.", actions == null ? 0 : actions.ActionExs.Count());
                if (actions == null)
                {
                    return(null);
                }

                return(actions.ActionExs);
            }
            catch (Exception e)
            {
                Log.ErrorFormat("Himsa.Noah.MobileAccessLayer.WebApi::GetUpdatedActions: {0}", e);
                throw;
            }
        }