private Dictionary <string, object> GetUrlParameters(Enums.ResourceType resourceType, ItemState itemState, string parameter, ReadInvalidInput invalidInput)
        {
            var parameters = new Dictionary <string, object>()
            {
                { DeletedDataFields.ItemState, itemState.ToLowerString() },
                { DeletedDataFields.Partition, AuthenticationInfoProvider.Current.DefaultPartition },
            };

            parameters[parameter] = ReadInvalidInputItemStateMapper.InvalidItemStateMapper[invalidInput];

            switch (invalidInput)
            {
            case ReadInvalidInput.Missing:
                parameters.Remove(DeletedDataFields.Partition);
                break;

            case ReadInvalidInput.EqualsTotal:
                parameters[DeletedDataFields.Start] = GetTotalByResource(resourceType);
                break;

            case ReadInvalidInput.GreaterThanTotal:
                parameters[DeletedDataFields.Start] = GetTotalByResource(resourceType) + 1;
                break;
            }

            return(parameters);
        }
 private Dictionary <string, object> RequestParams(ItemState state, Enums.ResourceType resource, string fieldName, PropertyType propType)
 {
     return(new Dictionary <string, object>()
     {
         [PropertyType.ItemState.ToLowerString()] = state.ToLowerString(),
         [PropertyType.Partition.ToLowerString()] = AuthenticationInfoProvider.Current.DefaultPartition,
         [propType.ToLowerString()] = propType == PropertyType.Condition ? $"{ resource.ToResourceName() }.{fieldName}:eq=1" : $"{ resource.ToResourceName() }.{fieldName}"
     });
 }
        private Dictionary <string, object> RequestCustomParams(ItemState state, Enums.ResourceType resource, FieldTypes type)
        {
            var customRequest = new Dictionary <string, object>()
            {
                [PropertyType.ItemState.ToLowerString()] = state.ToLowerString(),
                [PropertyType.Partition.ToLowerString()] = AuthenticationInfoProvider.Current.DefaultPartition
            };

            ConditionMapper[type](resource, customRequest);
            return(customRequest);
        }
        private Dictionary <string, object> RequestParams(ItemState state, string field, Enums.ResourceType resourceType)
        {
            var resourceName = resourceType.ToResourceName();
            var parameters   = new Dictionary <string, object>()
            {
                ["itemstate"] = state.ToLowerString(),
                ["partition"] = AuthenticationInfoProvider.Current.DefaultPartition,
                ["field"]     = $"{field},{resourceName}.P_UpdateDate",
            };

            return(parameters);
        }