コード例 #1
0
        public static Dispensary GetDispensary(string state, string city, string slug)
        {
            var urlGenerator = new UrlGenerator();

            urlGenerator.GenerateCannabisReportsUrl(state, city, slug);

            Dispensary dispensary = DataRequester.GetObject <Dispensary>(urlGenerator.URL);

            return(dispensary);
        }
コード例 #2
0
        public static Strain GetExtractStrain(string ucpc)
        {
            var urlGenerator = new UrlGenerator();
            var ucpcObject   = new UCPC(ucpc, PrimaryObjectType.Extract);

            urlGenerator.GenerateCannabisReportsUrl(ucpcObject, SecondaryObjectType.Strain);

            Strain strain = DataRequester.GetObject <Strain>(urlGenerator.URL);

            return(strain);
        }
コード例 #3
0
        public static Producer GetExtractProducer(string ucpc)
        {
            var urlGenerator = new UrlGenerator();
            var ucpcObject   = new UCPC(ucpc, PrimaryObjectType.Extract);

            urlGenerator.GenerateCannabisReportsUrl(ucpcObject, SecondaryObjectType.Producer);

            Producer producer = DataRequester.GetObject <Producer>(urlGenerator.URL);

            return(producer);
        }
コード例 #4
0
        public static EffectsAndFlavors GetExtractEffectsFlavors(string ucpc)
        {
            var urlGenerator = new UrlGenerator();
            var ucpcObject   = new UCPC(ucpc, PrimaryObjectType.Extract);

            urlGenerator.GenerateCannabisReportsUrl(ucpcObject, SecondaryObjectType.EffectsAndFlavors);

            EffectsAndFlavors effectsAndFlavors = DataRequester.GetObject <EffectsAndFlavors>(urlGenerator.URL);

            return(effectsAndFlavors);
        }
コード例 #5
0
        public static Extract GetExtract(string ucpc)
        {
            var urlGenerator = new UrlGenerator();
            var ucpcObject   = new UCPC(ucpc, PrimaryObjectType.Extract);

            urlGenerator.GenerateCannabisReportsUrl(ucpcObject);

            Extract extract = DataRequester.GetObject <Extract>(urlGenerator.URL);

            return(extract);
        }
コード例 #6
0
        public static User GetFlowerUser(string ucpc)
        {
            var urlGenerator = new UrlGenerator();
            var ucpcObject   = new UCPC(ucpc, PrimaryObjectType.Flower);

            urlGenerator.GenerateCannabisReportsUrl(ucpcObject, SecondaryObjectType.User);

            User user = DataRequester.GetObject <User>(urlGenerator.URL);

            return(user);
        }
コード例 #7
0
        public static Flower GetFlower(string ucpc)
        {
            var urlGenerator = new UrlGenerator();
            var ucpcObject   = new UCPC(ucpc, PrimaryObjectType.Flower);

            urlGenerator.GenerateCannabisReportsUrl(ucpcObject);

            Flower flower = DataRequester.GetObject <Flower>(urlGenerator.URL);

            return(flower);
        }
コード例 #8
0
        public static SeedCompany GetStrainSeedCompany(string ucpc)
        {
            var urlGenerator = new UrlGenerator();
            var ucpcObject   = new UCPC(ucpc, PrimaryObjectType.Strain);

            urlGenerator.GenerateCannabisReportsUrl(ucpcObject, SecondaryObjectType.SeedCompany);

            SeedCompany seedCompany = DataRequester.GetObject <SeedCompany>(urlGenerator.URL);

            return(seedCompany);
        }
コード例 #9
0
        public static Edible GetEdible(string ucpc)
        {
            var urlGenerator = new UrlGenerator();
            var ucpcObject   = new UCPC(ucpc, PrimaryObjectType.Edible);

            urlGenerator.GenerateCannabisReportsUrl(ucpcObject);

            Edible edible = DataRequester.GetObject <Edible>(urlGenerator.URL);

            return(edible);
        }
コード例 #10
0
        public static Product GetProduct(string ucpc)
        {
            var urlGenerator = new UrlGenerator();
            var ucpcObject   = new UCPC(ucpc, PrimaryObjectType.Product);

            urlGenerator.GenerateCannabisReportsUrl(ucpcObject);

            Product product = DataRequester.GetObject <Product>(urlGenerator.URL);

            return(product);
        }