|
All of the parameters are optional and you do not have to send them.
|
Feed RF = new Feed();
FeedParameters Params = new FeedParameters();
RF.Login("UserName", "Password");
RF.Url = RF.Url.Replace("https",
"http");
Params.SearchType = SearchTypes.WHITE;
Params.ColorFrom = Colors.F;
Params.ColorTo = Colors.J;
Params.ClarityFrom = Clarities.IF;
Params.ClarityTo = Clarities.I1;
Params.SizeFrom = 0.3m;
Params.SizeTo = 0.7m;
Params.CutFrom = Cuts.VERY_GOOD;
Params.CutTo = Cuts.FAIR;
Params.GirdleSizeMin = GirdleSizes.EXTR_THICK;
Params.GirdleSizeMax = GirdleSizes.SLIGHTLY_THICK;
Params.TablePercentFrom = 48.2m;
Params.TablePercentTo = 73.4m;
Params.DepthPercentFrom = 33.86m;
Params.DepthPercentTo = 73.8m;
Params.MeasLengthFrom = 3.7m;
Params.MeasLengthTo = 6.4m;
Params.MeasWidthFrom = 2.8m;
Params.MeasWidthTo = 7.9m;
Params.MeasDepthFrom = 2.7m;
Params.MeasDepthTo = 3.86m;
Params.PriceFrom = 0;
Params.PriceTo = 150000;
Params.SortDirection = SortDirections.DESC;
Params.SortBy = SortByField.CLARITY;
List<Shapes> MyShapes
= new List<Shapes>();
MyShapes.Add(Shapes.ROUND);
Params.ShapeCollection = MyShapes.ToArray();
List<Labs> MyLabs
= new List<Labs>();
MyLabs.Add(Labs.GIA);
MyLabs.Add(Labs.HRD);
Params.LabCollection = MyLabs.ToArray();
List<FluorescenceColors>
MyFluorescenceColors = new List<FluorescenceColors>();
MyFluorescenceColors.Add(FluorescenceColors.BLUE);
MyFluorescenceColors.Add(FluorescenceColors.GREEN);
Params.FluorescenceColorsCollection = MyFluorescenceColors.ToArray();
List<FluorescenceIntensities>
MyFluorescenceIntensities = new List<FluorescenceIntensities>();
MyFluorescenceIntensities.Add(FluorescenceIntensities.FAINT);
MyFluorescenceIntensities.Add(FluorescenceIntensities.MEDIUM);
Params.FluorescenceIntensityCollection = MyFluorescenceIntensities.ToArray();
List<CuletSizes>
MyCuletSizes = new List<CuletSizes>();
MyCuletSizes.Add(CuletSizes.LARGE);
MyCuletSizes.Add(CuletSizes.MEDIUM);
Params.CuletSizesCollection = MyCuletSizes.ToArray();
List<FancyColors>
MyFancyColors = new List<FancyColors>();
MyFancyColors.Add(FancyColors.YELLOW);
MyFancyColors.Add(FancyColors.BROWN);
Params.FancyColorCollection = MyFancyColors.ToArray();
Params.FancyColorIntensityFrom = FancyColorIntensities.FAINT;
Params.FancyColorIntensityTo = FancyColorIntensities.VERY_LIGHT;
Params.PageSize = 25;
int DiamondsCount=0;
DataSet ds = RF.GetDiamonds(Params,
ref DiamondsCount);
|
|