Thanks for the reply. This is our code snippet.
private void SetSelectedCut(int selectedCut, ref FeedParameters Params)
if (!(selectedCut > 0)) return;
switch (selectedCut)
{
case 1:
Params.CutFrom = Cuts.FAIR;
Params.CutTo = Cuts.FAIR;
break;
case 2:
Params.CutFrom = Cuts.GOOD;
Params.CutTo = Cuts.GOOD;
break;
case 3:
Params.CutFrom = Cuts.VERY_GOOD;
Params.CutTo = Cuts.VERY_GOOD;
break;
case 4:
Params.CutFrom = Cuts.EXCELLENT;
Params.CutTo = Cuts.EXCELLENT;
break;
var rf = new Feed();
var Params = new FeedParameters();
rf.Url = rf.Url.Replace("http", "https");
//This must be done in HTTPS protocol
rf.Login(rapnetId, rapNetPassword);
//After log in you will receive a encrypted ticket with your credentials. This will be used to authenticate your session.
//Now you can choose to change the protocol to HTTP so it works faster.
rf.Url = rf.Url.Replace("https", "http");
// Get Prameter For Shapes
List<Shapes> myShapes = SetSelectedShapes(selectedShapes);
Params.ShapeCollection = myShapes.ToArray();
//Get Parameter For Fluorescences
List<FluorescenceIntensities> myFluorescenceIntensities = SetSelectedFluorescense(selectedFluorescense);
Params.FluorescenceIntensityCollection = myFluorescenceIntensities.ToArray();
//Get Parameter For Certificates
List<Labs> myLabs = SetSelectedCertiFicates(selectedCertificate);
Params.LabCollection = myLabs.ToArray();
// set Parameter For Cuts
SetSelectedCut(selectedCut, ref Params);
// Set Parameter for Clarity
SetSelectedClarity(selectedClarity, ref Params);
//Set Parameter For Color
SetSelectedColor(selectedColor, ref Params);
// set Parameters for Polish
SetSelectedPolish(selectedPolish, ref Params);
// Set Parameter for Symmetry
SetSelectedSymmetry(selectedSymmetry, ref Params);
Params.PriceFrom = priceStart;
Params.PriceTo = priceEnd;
Params.SizeFrom = caratStart;
Params.SizeTo = caratEnd;
Params.TablePercentFrom = tableStart;
Params.TablePercentTo = tableEnd;
Params.DepthPercentFrom = depthStart;
Params.DepthPercentTo = depthEnd;
Params.PageSize = pageSize; //Max Page size is 50
Params.PageNumber = pageNumber;
DataSet ds = rf.GetDiamonds(Params, ref diamondsCount);
return ds;